-
Notifications
You must be signed in to change notification settings - Fork 17
Conversation
Replaces waiter-cluster label. See #721.
:waiter-cluster cluster-name | ||
:waiter/cluster cluster-name | ||
:waiter/service-hash service-hash | ||
:waiter/user run-as-user} |
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.
In a separate PR, we should perform a length check on the run-as-user
label and trim accordingly.
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.
The OS ensures that isn't a problem: user names already have a length limit of 32 chars on posix systems.
:labels {:app k8s-name | ||
;; TODO - remove waiter-cluster | ||
;; after waiter/cluster is exclusively in use | ||
;; (see GitHub issue #721) | ||
:waiter-cluster cluster-name |
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.
Are we preserving the waiter-cluster
label for backwards compatibility? Or is there a plan to remove it in a subsequent PR?
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.
We're going to remove it in the near future, but we need to allow time for all the current services to be restarted. We probably won't remove it until after the ReplicaSet → Pod refactoring.
@shamsimam - RTM |
Changes proposed in this PR
service-id->k8s-app-name
docstringwaiter/cluster
Kubernetes labelwaiter/service-hash
Kubernetes labelWhy are we making these changes?
waiter/cluster
label helps address Rename waiter-cluster K8s label to waiter/cluster for consistency #721.waiter/service-hash
label will make it easier to search for Kubernetes objects corresponding to a specific Waiter service. Since the existingwaiter/service-id
is an annotation (due to label length limitations), it can't be used in Kubernetes selectors when searching.