You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 3, 2022. It is now read-only.
GKE clusters typically have underscore in them (ie. gke_ACCOUNT_ZONE_CLUSTERNAME), and that causes the apply to fail
Workaround is to rename contexts - context - name in ~/.kube/config
shipperctl admin clusters apply -f
...
Joining management cluster gke_account_us-central1-a_somename to application cluster gke_account_us-central1-a_somename:
Creating or updating the cluster object for cluster gke_account_us-central1-a_somename on the management cluster... Error! Cluster.shipper.booking.com "gke_account_us-central1-a_somename" is invalid: metadata.name: Invalid value: "gke_account_us-central1-a_somename": a DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
The text was updated successfully, but these errors were encountered:
This way Shipper will use name to create the Cluster object, based on the context named in the context key.
In terms of making this obvious going forward, I think the easiest thing would be for us to put that regex in shipperctl, and it if fails to match, give a hint to add a distinct context: gke_ACCOUNT_ZONE_CLUSTERNAME from name: my-cluster in the clusters.yaml.
shipperctl's usage of the context name for the Cluster object fails if that context name is not an acceptable Kubernetes object name, as is the case in GKE clusters and their underscores.
This helps people work around the issue in #61, but a better fix will be for shipperctl to give immediate feedback when it detects that issue.
GKE clusters typically have underscore in them (ie.
gke_ACCOUNT_ZONE_CLUSTERNAME
), and that causes the apply to failWorkaround is to rename contexts - context - name in
~/.kube/config
The text was updated successfully, but these errors were encountered: