Skip to content
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

Merged
merged 30 commits into from
Jan 22, 2020

Conversation

aattuluri
Copy link
Contributor

No description provided.

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>
Copy link
Collaborator

@josephpeacock josephpeacock left a 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]
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

@aattuluri aattuluri merged commit 73888f7 into istio-ecosystem:master Jan 22, 2020
@aattuluri aattuluri deleted the Fix-local-SE-generation branch January 22, 2020 21:34
Mengying-Li pushed a commit that referenced this pull request Apr 20, 2020
Fixes #56
Fixes #53

Signed-off-by: Madeline <madeline_li@intuit.com>
itsLucario pushed a commit to itsLucario/admiral that referenced this pull request Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants