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

Check for existing GCP service account using TF state #539

Merged
merged 1 commit into from
Dec 14, 2022

Conversation

MartinWeindel
Copy link
Member

How to categorize this PR?

/area control-plane
/kind enhancement
/platform gcp

What this PR does / why we need it:
The decision if a GCP service account needs to be created is changed to rely on the terraformer state.
If there is already a service account, it is kept.
For new clusters one is only created if the feature gate DisableGardenerServiceAccountCreation is set to false.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

Check for existing GCP service account using TF state

@MartinWeindel MartinWeindel requested review from a team as code owners December 14, 2022 10:09
@gardener-robot gardener-robot added area/control-plane Control plane related kind/enhancement Enhancement, improvement, extension platform/gcp Google cloud platform/infrastructure needs/review Needs review size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) labels Dec 14, 2022
@MartinWeindel
Copy link
Member Author

/invite @kon-angelo

@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Dec 14, 2022
@gardener-robot-ci-3 gardener-robot-ci-3 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Dec 14, 2022
@kon-angelo kon-angelo added this to the v1.27 milestone Dec 14, 2022
"github.com/gardener/gardener-extension-provider-gcp/pkg/internal"
"github.com/gardener/gardener-extension-provider-gcp/pkg/internal/infrastructure"

"k8s.io/apimachinery/pkg/runtime"
Copy link
Contributor

@kon-angelo kon-angelo Dec 14, 2022

Choose a reason for hiding this comment

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

I think this needs reformating, otherwise lgtm

@MartinWeindel MartinWeindel force-pushed the tf-service-accout-check branch from c6102bc to f1f4144 Compare December 14, 2022 12:06
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Dec 14, 2022
@gardener-robot-ci-3 gardener-robot-ci-3 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Dec 14, 2022
Copy link
Contributor

@kon-angelo kon-angelo left a comment

Choose a reason for hiding this comment

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

/lgtm

@gardener-robot gardener-robot added reviewed/lgtm Has approval for merging and removed needs/review Needs review labels Dec 14, 2022
@kon-angelo kon-angelo merged commit 031c476 into master Dec 14, 2022
@kon-angelo kon-angelo deleted the tf-service-accout-check branch December 14, 2022 12:15
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Dec 14, 2022
@kon-angelo
Copy link
Contributor

/test

@testmachinery
Copy link

testmachinery bot commented Dec 14, 2022

Testrun: e2e-58x8b
Workflow: e2e-58x8b-wf
Phase: Succeeded

+---------------------+---------------------+-----------+----------+
|        NAME         |        STEP         |   PHASE   | DURATION |
+---------------------+---------------------+-----------+----------+
| infrastructure-test | infrastructure-test | Succeeded | 9m39s    |
| bastion-test        | bastion-test        | Succeeded | 8m39s    |
+---------------------+---------------------+-----------+----------+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/control-plane Control plane related kind/enhancement Enhancement, improvement, extension needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) platform/gcp Google cloud platform/infrastructure reviewed/lgtm Has approval for merging size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants