-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix local SE generation. Fix related bugs. #59
Fix local SE generation. Fix related bugs. #59
Conversation
Signed-off-by: aattuluri <anil_attuluri@intuit.com>
Signed-off-by: aattuluri <anil_attuluri@intuit.com>
Signed-off-by: aattuluri <anil_attuluri@intuit.com>
Signed-off-by: aattuluri <anil_attuluri@intuit.com>
This reverts commit a9fa409.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor point, otherwise looks good
@@ -66,6 +64,18 @@ func GetCname(deployment *k8sAppsV1.Deployment, identifier string, nameSuffix st | |||
return environment + Sep + alias + Sep + nameSuffix | |||
} | |||
|
|||
func GetEnv(deployment *k8sAppsV1.Deployment) string { | |||
var environment = deployment.Spec.Template.Labels[Env] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to also check annotations before falling back on ns splitting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Good suggestion, keeping it consistent with identifier
. At some point we will move to selector which will be based of labels, so we should still encourage labels over annotations.
No description provided.