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

feat(cluster.tf): add support to set initial release channel version #1625

Merged
merged 19 commits into from
Jun 2, 2023

Conversation

slimatic
Copy link
Contributor

@slimatic slimatic commented May 1, 2023

This change adds support for specifying an initial version to use when a release channel is being used. The new logic sets the min_master_version variable to the value of the locally defined master_version when release_channel is null or "UNSPECIFIED". When a release channel is specified, min_master_version is set to the value of kubernetes_version if it is defined, and falls back to the value of master_version otherwise.

Fixes #1460

…release channel

This change adds support for specifying an initial version to use when a release channel is being used.
The new logic sets the `min_master_version` variable to the value of the
locally defined `master_version` when `release_channel` is `null` or `"UNSPECIFIED"`.
When a release channel is specified, `min_master_version` is set to the value of `initial_version`
if it is defined, and falls back to the value of `master_version` otherwise.
@slimatic slimatic requested review from a team, Jberlinsky and ericyz as code owners May 1, 2023 18:54
@google-cla
Copy link

google-cla bot commented May 1, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@apeabody
Copy link
Collaborator

apeabody commented May 1, 2023

/gcbrun

@apeabody
Copy link
Collaborator

apeabody commented May 9, 2023

/gcbrun

Copy link
Collaborator

@apeabody apeabody left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution @slimatic!

If we don't have one already, please include one of the test fixtures setting kubernetes_version = "latest" so this new functionally is covered by the Integration tests.

https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/tree/master/test/fixtures

cluster.tf Outdated Show resolved Hide resolved
@slimatic slimatic requested a review from apeabody May 12, 2023 18:20
@apeabody
Copy link
Collaborator

/gcbrun

@apeabody
Copy link
Collaborator

/gcbrun

@slimatic
Copy link
Contributor Author

/gcbrun

@apeabody fixed the tests and addressed the lint failures.

@apeabody
Copy link
Collaborator

/gcbrun

@slimatic
Copy link
Contributor Author

/gcbrun

@apeabody applied make build changes to README.md

@apeabody
Copy link
Collaborator

/gcbrun

@apeabody
Copy link
Collaborator

/gcbrun

@apeabody
Copy link
Collaborator

/gcbrun

@slimatic
Copy link
Contributor Author

@apeabody I noticed the cicd build is failing. Is my attention required on the failure? Please advise.

@apeabody
Copy link
Collaborator

/gcbrun

@slimatic
Copy link
Contributor Author

Thanks for the contribution @slimatic!

If we don't have one already, please include one of the test fixtures setting kubernetes_version = "latest" so this new functionally is covered by the Integration tests.

https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/tree/master/test/fixtures

@apeabody the requested change has been added.

@slimatic slimatic closed this May 19, 2023
@slimatic slimatic reopened this May 19, 2023
@slimatic
Copy link
Contributor Author

Thanks for the contribution @slimatic!
If we don't have one already, please include one of the test fixtures setting kubernetes_version = "latest" so this new functionally is covered by the Integration tests.
https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/tree/master/test/fixtures

@apeabody the requested change has been added.

@apeabody apologies, I accidentally closed the PR when I was commenting.

@apeabody
Copy link
Collaborator

/gcbrun

@slimatic
Copy link
Contributor Author

@apeabody just triggered a new merge of the master branch.
could you also advise on what is needed to successfully merge the pull request?

@apeabody
Copy link
Collaborator

@apeabody just triggered a new merge of the master branch. could you also advise on what is needed to successfully merge the pull request?

Thanks @slimatic, I'll re-run the CI. Per merge timeline, what are the potential impacts to existing clusters? Just need to determine if this is OK for immediate minor release now, or if it will need to be a major release with migration documentation.

@apeabody
Copy link
Collaborator

/gcbrun

@slimatic
Copy link
Contributor Author

@apeabody just triggered a new merge of the master branch. could you also advise on what is needed to successfully merge the pull request?

Thanks @slimatic, I'll re-run the CI. Per merge timeline, what are the potential impacts to existing clusters? Just need to determine if this is OK for immediate minor release now, or if it will need to be a major release with migration documentation.

@apeabody Thanks for providing some insight on the merge timelines.

@slimatic
Copy link
Contributor Author

@apeabody just triggered a new merge of the master branch. could you also advise on what is needed to successfully merge the pull request?

Thanks @slimatic, I'll re-run the CI. Per merge timeline, what are the potential impacts to existing clusters? Just need to determine if this is OK for immediate minor release now, or if it will need to be a major release with migration documentation.

@apeabody were the following questions were directed to me?

  • "Per merge timeline, what are the potential impacts to existing clusters? "
  • "OK for immediate minor release now, or if it will need to be a major release "

@apeabody
Copy link
Collaborator

Hi @slimatic - Thanks, yes, do you have any insight on the potential impacts to existing clusters?

@apeabody
Copy link
Collaborator

/gcbrun

@slimatic
Copy link
Contributor Author

Hi @slimatic - Thanks, yes, do you have any insight on the potential impacts to existing clusters?

Yes, based on my tests, making this change will have minimal impact on existing clusters. If the Kubernetes version is modified and applied to an existing cluster, Terraform will upgrade the cluster only if the specified version is greater than the current version. If the version is smaller than the existing version, the terraform apply command will complete successfully without upgrading the cluster version.

Copy link
Member

@bharathkkb bharathkkb left a comment

Choose a reason for hiding this comment

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

Thanks @slimatic and @apeabody. I did a quick test to validate and observed similar behavior as noted by @slimatic so it looks okay to release as minor.

@apeabody
Copy link
Collaborator

apeabody commented Jun 2, 2023

Thanks @slimatic and @apeabody. I did a quick test to validate and observed similar behavior as noted by @slimatic so it looks okay to release as minor.

Thanks @bharathkkb - That was above and beyond!

@apeabody
Copy link
Collaborator

apeabody commented Jun 2, 2023

/gcbrun

@apeabody
Copy link
Collaborator

apeabody commented Jun 2, 2023

Will merge once the CI is all green.

@apeabody apeabody merged commit e522073 into terraform-google-modules:master Jun 2, 2023
CPL-markus pushed a commit to WALTER-GROUP/terraform-google-kubernetes-engine that referenced this pull request Jul 15, 2024
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.

Module doesnt honor specified GKE master version
3 participants