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

Restrict .providerSpecific.location value to enum #144

Merged
merged 2 commits into from
Jun 19, 2023
Merged

Conversation

marians
Copy link
Member

@marians marians commented Jun 14, 2023

Towards giantswarm/roadmap#2573

To avoid bad values (especially unsupported regions), this PR restricts the location value to a set of defined values, taken from https://github.com/giantswarm/capi-image-builder/blob/v1.6.10/helm/capi-image-builder/values.yaml#L48-L52

This also means that when the list in capi-image-builder gets changed, it should be changed here accordingly.

Please check if PR meets these requirements

  • Results of the diffs have been examined and no unintended changes are being introduced.

Helper

  • to disable the GH Action generating manifests diffs for installations, between target and source branches, comment the /no_diffs_printing on the PR.

Trigger e2e tests

/run cluster-test-suites

@marians marians self-assigned this Jun 14, 2023
@marians marians changed the title Restricted .providerSpecific.location value to enum Restrict .providerSpecific.location value to enum Jun 14, 2023
@marians marians marked this pull request as ready for review June 14, 2023 13:27
@marians marians requested review from a team June 14, 2023 13:27
@fiunchinho
Copy link
Member

/run cluster-test-suites

@@ -102,6 +102,8 @@ Properties within the `.metadata` top-level object
| **Property** | **Description** | **More Details** |
| :----------- | :-------------- | :--------------- |
| `metadata.description` | **Cluster description** - User-friendly description of the cluster's purpose.|**Type:** `string`<br/>|
| `metadata.labels` | **Labels** - These labels are added to the Kubernetes resourses defining this cluster.|**Type:** `object`<br/>|
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is unrelated to the PR.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True. I just updated the docs automatically, and this was added, too.

@@ -514,6 +514,14 @@
"location": {
"type": "string",
"title": "Location",
"$comment": "Valid options from https://github.com/giantswarm/capi-image-builder/blob/v1.6.10/helm/capi-image-builder/values.yaml#L48-L52",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you maybe add a comment in that capi-image-builder file regarding updating cluster-azure when adding a new region?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marians
Copy link
Member Author

marians commented Jun 19, 2023

@fiunchinho Heimdall is the last thing pending here. How does this work? Do I wait until that's green?

@fiunchinho
Copy link
Member

heimdall waits until this check is green /run cluster-test-suites, but every time a new commit is added, those checks are gone.

@marians marians enabled auto-merge (squash) June 19, 2023 09:44
@fiunchinho
Copy link
Member

/run cluster-test-suites

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