add secret reference
@@ -1051,6 +1051,12 @@ type BuildConfigStatus struct {
LastVersion int64
}
+// SecretLocalReference contains information that points to the local secret being used
+type SecretLocalReference struct {
+ // Name is the name of the resource in the same namespace being referenced
+ Name string
+}
+
// WebHookTrigger is a trigger that gets invoked using a webhook type of post
type WebHookTrigger struct {
// Secret used to validate requests.
@@ -1059,6 +1065,12 @@ type WebHookTrigger struct {
// AllowEnv determines whether the webhook can set environment variables; can only
// be set to true for GenericWebHook
AllowEnv bool
+
+ // SecretReference is a reference to a secret in the same namespace,
+ // containing the value to be validated when the webhook is invoked.
+ // The secret being referenced must contain a key named "WebHookSecretKey", the value
+ // of which will be checked against the value supplied in the webhook invocation.
+ SecretReference *SecretLocalReference
}
// ImageChangeTrigger allows builds to be triggered when an ImageStream changes
