- Notifications
You must be signed in to change notification settings - Fork 70
Add Tagging to lattice target group resource #59
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
Changes from 5 commits
0dd8599 6857488 bc90562 072c1d8 3c8a0ad 240182e File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| | @@ -4,6 +4,16 @@ import ( | |||||||||
| "github.com/aws/aws-application-networking-k8s/pkg/model/core" | ||||||||||
| ) | ||||||||||
| | ||||||||||
| const ( | ||||||||||
| K8SServiceNameKey = "K8SServiceName" | ||||||||||
| K8SServiceNamespaceKey = "K8SServiceNamespace" | ||||||||||
| K8SIsServiceExportKey = "K8SIsServiceExport" | ||||||||||
| K8SHTTPRouteNameKey = "K8SHTTPRouteName" | ||||||||||
| K8SHTTPRouteNamespaceKey = "K8SHTTPRouteNamespace" | ||||||||||
| K8SIsServiceExport = "true" | ||||||||||
| K8SIsNotServiceExport = "false" | ||||||||||
| ||||||||||
| K8SIsServiceExport = "true" | |
| K8SIsNotServiceExport = "false" | |
| TrueString = "true" | |
| FalseString = "false" |
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.
Am I correct in thinking that this is a user facing API?
- We shouldn't be using
k8sin the api field name - The field should use camelcase
- Instead of hardcoding name and namespace, we should use something like this
ref: kind: HTTPRoute name: myname namespace: mynamespace 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.
these fields are internal.
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.
nit: i prefer string types instead of bool types for extensibility(in case targetGroup needed for other resources)
e.g. Tags[resourceType] = "serviceExport"
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.
Further, you can use a library to pointer-ify these for you inline: lo.ToPtr(string) or aws.String(string)