Skip to content

Commit cdd51b3

Browse files
committed
add: address feedback
1 parent 8ccd414 commit cdd51b3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

raycluster_webhook/src/patches.go

+16
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,21 @@ func createPatch(rayCluster *rayv1api.RayCluster) ([]patchOperation, error) {
7979
Value: newOAuthSidecar,
8080
})
8181

82+
tlsSecretVolume := corev1.Volume{
83+
Name: "proxy-tls-secret",
84+
VolumeSource: corev1.VolumeSource{
85+
Secret: &corev1.SecretVolumeSource{
86+
SecretName: rayclusterName + "-proxy-tls-secret",
87+
},
88+
},
89+
}
90+
91+
// Patch to add new volume
92+
patches = append(patches, patchOperation{
93+
Op: "add",
94+
Path: "/spec/headGroupSpec/template/spec/volumes/-",
95+
Value: tlsSecretVolume,
96+
})
97+
8298
return patches, nil
8399
}

0 commit comments

Comments
 (0)