Add Proxy field to Provider API
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
5f7a8da8a9
commit
2f14e4b74b
|
@ -42,6 +42,10 @@ type ProviderSpec struct {
|
||||||
// +optional
|
// +optional
|
||||||
Address string `json:"address,omitempty"`
|
Address string `json:"address,omitempty"`
|
||||||
|
|
||||||
|
// HTTP(S) address of the proxy
|
||||||
|
// +optional
|
||||||
|
Proxy string `json:"proxy,omitempty"`
|
||||||
|
|
||||||
// Secret reference containing the provider webhook URL
|
// Secret reference containing the provider webhook URL
|
||||||
// +optional
|
// +optional
|
||||||
SecretRef *corev1.LocalObjectReference `json:"secretRef,omitempty"`
|
SecretRef *corev1.LocalObjectReference `json:"secretRef,omitempty"`
|
||||||
|
|
|
@ -52,6 +52,9 @@ spec:
|
||||||
channel:
|
channel:
|
||||||
description: Alert channel for this provider
|
description: Alert channel for this provider
|
||||||
type: string
|
type: string
|
||||||
|
proxy:
|
||||||
|
description: HTTP(S) address of the proxy
|
||||||
|
type: string
|
||||||
secretRef:
|
secretRef:
|
||||||
description: Secret reference containing the provider webhook URL
|
description: Secret reference containing the provider webhook URL
|
||||||
properties:
|
properties:
|
||||||
|
|
|
@ -249,6 +249,18 @@ string
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
<code>proxy</code><br>
|
||||||
|
<em>
|
||||||
|
string
|
||||||
|
</em>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<em>(Optional)</em>
|
||||||
|
<p>HTTP(S) address of the proxy</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
<code>secretRef</code><br>
|
<code>secretRef</code><br>
|
||||||
<em>
|
<em>
|
||||||
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#localobjectreference-v1-core">
|
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#localobjectreference-v1-core">
|
||||||
|
@ -663,6 +675,18 @@ string
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
<code>proxy</code><br>
|
||||||
|
<em>
|
||||||
|
string
|
||||||
|
</em>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<em>(Optional)</em>
|
||||||
|
<p>HTTP(S) address of the proxy</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
<code>secretRef</code><br>
|
<code>secretRef</code><br>
|
||||||
<em>
|
<em>
|
||||||
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#localobjectreference-v1-core">
|
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#localobjectreference-v1-core">
|
||||||
|
|
|
@ -25,6 +25,10 @@ type ProviderSpec struct {
|
||||||
// +optional
|
// +optional
|
||||||
Address string `json:"address,omitempty"`
|
Address string `json:"address,omitempty"`
|
||||||
|
|
||||||
|
// HTTP(S) address of the proxy
|
||||||
|
// +optional
|
||||||
|
Proxy string `json:"proxy,omitempty"`
|
||||||
|
|
||||||
// Secret reference containing the provider webhook URL
|
// Secret reference containing the provider webhook URL
|
||||||
// +optional
|
// +optional
|
||||||
SecretRef *corev1.LocalObjectReference `json:"secretRef,omitempty"`
|
SecretRef *corev1.LocalObjectReference `json:"secretRef,omitempty"`
|
||||||
|
@ -79,6 +83,8 @@ spec:
|
||||||
channel: general
|
channel: general
|
||||||
# webhook address (ignored if secretRef is specified)
|
# webhook address (ignored if secretRef is specified)
|
||||||
address: https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK
|
address: https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK
|
||||||
|
# HTTP(S) proxy (optional)
|
||||||
|
proxy: https://proxy.corp:8080
|
||||||
# secret containing the webhook address (optional)
|
# secret containing the webhook address (optional)
|
||||||
secretRef:
|
secretRef:
|
||||||
name: webhook-url
|
name: webhook-url
|
||||||
|
|
Loading…
Reference in New Issue