File tree Expand file tree Collapse file tree 5 files changed +28
-13
lines changed Expand file tree Collapse file tree 5 files changed +28
-13
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ const (
53
53
// EnvKubeflowNamespace is an environment variable for namespace when deployed on kubernetes
54
54
EnvKubeflowNamespace = "KUBEFLOW_NAMESPACE"
55
55
56
- webhookConfigurationName = "validator.training-operator.kubeflow.org"
56
+ webhookConfigurationName = "kubeflow- validator.training-operator.kubeflow.org"
57
57
)
58
58
59
59
var (
Original file line number Diff line number Diff line change 1
1
- op : replace
2
2
path : /webhooks/0/clientConfig/service/name
3
- value : training-operator
3
+ value : kubeflow- training-operator
4
4
- op : replace
5
5
path : /webhooks/1/clientConfig/service/name
6
- value : training-operator
6
+ value : kubeflow- training-operator
7
7
- op : replace
8
8
path : /webhooks/2/clientConfig/service/name
9
- value : training-operator
9
+ value : kubeflow- training-operator
10
10
- op : replace
11
11
path : /webhooks/3/clientConfig/service/name
12
- value : training-operator
12
+ value : kubeflow- training-operator
13
13
- op : replace
14
14
path : /webhooks/4/clientConfig/service/name
15
- value : training-operator
15
+ value : kubeflow- training-operator
16
16
- op : replace
17
17
path : /metadata/name
18
18
value : validator.training-operator.kubeflow.org
Original file line number Diff line number Diff line change @@ -44,9 +44,21 @@ resources:
44
44
- kubeflow-training-roles.yaml
45
45
- monitor.yaml
46
46
47
+ secretGenerator :
48
+ - name : training-operator-webhook-cert
49
+ options :
50
+ disableNameSuffixHash : true
51
+
47
52
patches :
48
53
# Mount the controller config file for loading manager configurations
49
54
# through a ComponentConfig type
50
55
- path : manager_config_patch.yaml
51
56
- path : manager_metrics_patch.yaml
52
- - path : manager_delete_metrics_service_patch.yaml
57
+ - patch : |-
58
+ - op: remove
59
+ path: /spec/ports/0
60
+ target :
61
+ group : " "
62
+ version : v1
63
+ kind : Service
64
+ name : training-operator
Original file line number Diff line number Diff line change 12
12
- " --zap-log-level=2"
13
13
- --pytorch-init-container-image
14
14
- $(image)
15
+ - " --webhook-secret-name"
16
+ - " kubeflow-training-operator-webhook-cert"
17
+ - " --webhook-service-name"
18
+ - " kubeflow-training-operator"
19
+ volumes :
20
+ - name : cert
21
+ secret :
22
+ defaultMode : 420
23
+ secretName : kubeflow-training-operator-webhook-cert
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments