The credential is used to store user credentials, like password, token, app secret, etc.
password:
valueFrom:
secretKeyRef:
key: secret
name: global-receiver-secret
namespace: kubesphere-monitoring-system password:
value: 123456A credential allows the user to define:
value- The value saved in plaintext, not recommended for storing confidential information.valueFrom- The object used to store user credentials, now only supportsecret.valueFrom.secretKeyRef- The secret used to store user credentials.valueFrom.secretKeyRef.name- The name of secret used to store user credentials.valueFrom.secretKeyRef.namespace- The namespace of secret used to store user credentials.valueFrom.secretKeyRef.key- The key of secret used to store user credentials.
If the
valueFrom.secretKeyRef.namespaceis not specified, Notification Manager will get the secret in thedefaultSecretNamespace. If thedefaultSecretNamespaceis not set, Notification Manager will get the secret in the namespace where the notification manager webhook is located.