@@ -33,9 +33,14 @@ type FaultToleranceConfig struct {
3333}
3434
3535type CertManagementConfig struct {
36- WebhookServiceName string `json:"webhookServiceName,omitempty"`
37- WebhookSecretName string `json:"webhookSecretName,omitempty"`
38- Namespace string `json:"namespace,omitempty"`
36+ Namespace string `json:"namespace,omitempty"`
37+ CertificateDir string `json:"certificateDir,omitempty"`
38+ CertificateName string `json:"certificateName,omitempty"`
39+ CertificateOrg string `json:"certificateOrg,omitempty"`
40+ MutatingWebhookConfigName string `json:"mutatingWebhookConfigName,omitempty"`
41+ ValidatingWebhookConfigName string `json:"validatingWebhookConfigName,omitempty"`
42+ WebhookServiceName string `json:"webhookServiceName,omitempty"`
43+ WebhookSecretName string `json:"webhookSecretName,omitempty"`
3944}
4045
4146// NewConfig constructs an AppWrapperConfig and fills in default values
@@ -50,9 +55,14 @@ func NewConfig(namespace string) *AppWrapperConfig {
5055 RetryLimit : 3 ,
5156 },
5257 CertManagement : CertManagementConfig {
53- WebhookServiceName : "appwrapper-webhook-service" ,
54- WebhookSecretName : "appwrapper-webhook-server-cert" ,
55- Namespace : namespace ,
58+ Namespace : namespace ,
59+ CertificateDir : "/tmp/k8s-webhook-server/serving-certs" ,
60+ CertificateName : "appwrapper-ca" ,
61+ CertificateOrg : "appwrapper" ,
62+ MutatingWebhookConfigName : "appwrapper-mutating-webhook-configuration" ,
63+ ValidatingWebhookConfigName : "appwrapper-validating-webhook-configuration" ,
64+ WebhookServiceName : "appwrapper-webhook-service" ,
65+ WebhookSecretName : "appwrapper-webhook-server-cert" ,
5666 },
5767 }
5868}
0 commit comments