@@ -120,10 +120,14 @@ type Webhook struct {
120120 // ServiceName is the service that exposes the Webhook server.
121121 ServiceName string
122122
123- // CASecretNamespace is the namespace that the
124- // cert-manager-approver-policy-tls Secret is stored.
123+ // CASecretName is the namespace that the approver-policy
124+ // webhook CA certificate Secret is stored.
125125 CASecretNamespace string
126126
127+ // CASecretName is the name of the Secret use to store
128+ // the approver-policy webhook CA certificate.
129+ CASecretName string
130+
127131 // CADuration for webhook server DynamicSource CA.
128132 // DynamicSource is upstream cert-manager's CA Provider.
129133 // Defaults to 1 year.
@@ -237,7 +241,11 @@ func (o *Options) addWebhookFlags(fs *pflag.FlagSet) {
237241
238242 fs .StringVar (& o .Webhook .CASecretNamespace ,
239243 "webhook-ca-secret-namespace" , "cert-manager" ,
240- "Namespace that the cert-manager-approver-policy-tls Secret is stored." )
244+ "Namespace that the approver-policy webhook CA certificate Secret is stored." )
245+
246+ fs .StringVar (& o .Webhook .CASecretName ,
247+ "webhook-ca-secret-name" , "cert-manager-approver-policy-tls" ,
248+ "Name of Secret used to store the approver-policy webhook CA certificate Secret." )
241249
242250 fs .DurationVar (& o .Webhook .CADuration ,
243251 "webhook-ca-duration" , time .Hour * 24 * 365 ,
0 commit comments