kubernetes / kops

Kubernetes Operations (kOps) - Production Grade k8s Installation, Upgrades and Management
https://kops.sigs.k8s.io/
Apache License 2.0
15.87k stars 4.64k forks source link

Enforce GCP limit of 64 chars for cluster name in kubetest2 deployer #16787

Closed dims closed 1 month ago

dims commented 1 month ago

Ran into this https://storage.googleapis.com/kubernetes-jenkins/pr-logs/pull/127005/pull-kubernetes-e2e-gce-disruptive-canary/1829211781348724736/build-log.txt

I0829 17:57:21.198213   74468 new_cluster.go:1454] Cloud Provider ID: "gce"
Error: error populating configuration: error fetching network "e2e-pr127005-pull-kubernetes-e2e-gce-disruptive-canary-k8s-local": googleapi: Error 400: Invalid value for field 'network': 'e2e-pr127005-pull-kubernetes-e2e-gce-disruptive-canary-k8s-local'. Must be a match of regex '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}', invalid
W0829 17:57:21.625216   15003 state.go:46] failed to run /home/prow/go/src/k8s.io/kubernetes/_rundir/d5760245-a280-4b20-9469-c66a140b00dc/kops get cluster e2e-pr127005.pull-kubernetes-e2e-gce-disruptive-canary.k8s.local -ojson; stderr=Error: cluster not found "e2e-pr127005.pull-kubernetes-e2e-gce-disruptive-canary.k8s.local"
Error: exit status 1
dims commented 1 month ago

/assign @rifelpet @hakman

k8s-ci-robot commented 1 month ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/kubernetes/kops/blob/master/OWNERS)~~ [hakman] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment