We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3a735b commit 7e2da27Copy full SHA for 7e2da27
pkg/mutation/mutation_deploy.go
@@ -87,6 +87,9 @@ func injectionDeploy(request *admissionv1.AdmissionRequest) (*admissionv1.Admiss
87
// Get the application environment variables
88
labels := deploy.GetLabels()
89
serviceSpace, application := labels[config.ServiceSpaceLabel], labels[config.ApplicationLabel]
90
+ if len(serviceSpace) == 0 || len(application) == 0 {
91
+ serviceSpace, application = labels["jmsf.jd.com/service-space"], labels["app.jdap.io/name"]
92
+ }
93
if len(serviceSpace) > 0 && len(application) > 0 {
94
envs, err := resource.GetApplicationEnvironments(serviceSpace, application)
95
if err != nil {
0 commit comments