@@ -33,9 +33,14 @@ type FaultToleranceConfig struct {
33
33
}
34
34
35
35
type 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"`
39
44
}
40
45
41
46
// NewConfig constructs an AppWrapperConfig and fills in default values
@@ -50,9 +55,14 @@ func NewConfig(namespace string) *AppWrapperConfig {
50
55
RetryLimit : 3 ,
51
56
},
52
57
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" ,
56
66
},
57
67
}
58
68
}
0 commit comments