I want to create MonitoringNotificationChannel in GCP to send alerts on opsgenie so we are using web-hook provided by opsgenie channel
apiVersion: monitoring.cnrm.cloud.google.com/v1beta1
kind: MonitoringNotificationChannel
metadata:
name: monitoringnotificationchannel-webhook_tokenauth
spec:
type: webhook_tokenauth
# The spec.labels field below is for configuring the desired behaviour of the notification channel
# It does not apply labels to the resource in the cluster
labels:
description: Sends notifications to indicated webhook URL using HTTP-standard basic authentication. Should be used in conjunction with SSL/TLS to reduce the risk of attackers snooping the credentials.
sensitiveLabels:
authToken:
valueFrom:
secretKeyRef:
key: url
name: quota
enabled: true
After applying this we are getting labels as Null
we want to reference Opsgenie URL from sensitiveLabels
Format of opsgenie URL=https://api.opsgenie.com/v1/json/googlestackdriver?apiKey=xxxxxxxxxxx