-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix: move deprecated to versioned resources #2521
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
Open
HarisDotParis
wants to merge
6
commits into
terraform-google-modules:main
Choose a base branch
from
HarisDotParis:move_configmap_to_versioned_res
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
3bf68c8
fix: move depr kubernetes_config_map to versioned resource
HarisDotParis a787e25
fix: move depr kubernetes_service_account to versioned resource
HarisDotParis 92cc557
fix: make example for workload_identity valid & syntax-correct
HarisDotParis bc63355
fix: change depr kubernetes_pod to versioned resource
HarisDotParis 93f1407
terraform fmt
HarisDotParis 0151eef
docker_generate_docs
HarisDotParis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,14 +60,15 @@ module "workload_identity" { | |
| source = "terraform-google-modules/kubernetes-engine/google//modules/workload-identity" | ||
| version = "~> 43.0" | ||
|
|
||
| project_id = var.project_id | ||
| name = "iden-${module.gke.name}" | ||
| namespace = "default" | ||
| use_existing_k8s_sa = false | ||
| project_id = var.project_id | ||
| name = "iden-${module.gke.name}" | ||
| network = var.network | ||
| subnetwork = var.subnetwork | ||
| ip_range_pods = var.ip_range_pods | ||
| } | ||
|
|
||
| # example with existing KSA | ||
| resource "kubernetes_service_account" "test" { | ||
| resource "kubernetes_service_account_v1" "test" { | ||
| metadata { | ||
| name = "foo-ksa" | ||
| } | ||
|
|
@@ -80,13 +81,11 @@ module "workload_identity_existing_ksa" { | |
| source = "terraform-google-modules/kubernetes-engine/google//modules/workload-identity" | ||
| version = "~> 43.0" | ||
|
|
||
| project_id = var.project_id | ||
| name = "existing-${module.gke.name}" | ||
| cluster_name = module.gke.name | ||
| location = module.gke.location | ||
| namespace = "default" | ||
| use_existing_k8s_sa = true | ||
| k8s_sa_name = kubernetes_service_account.test.metadata[0].name | ||
| project_id = var.project_id | ||
| name = "existing-${module.gke.name}" | ||
| network = var.network | ||
| subnetwork = var.subnetwork | ||
| ip_range_pods = var.ip_range_pods | ||
| } | ||
|
|
||
| # example with existing GSA | ||
|
|
@@ -99,9 +98,11 @@ module "workload_identity_existing_gsa" { | |
| source = "terraform-google-modules/kubernetes-engine/google//modules/workload-identity" | ||
| version = "~> 43.0" | ||
|
|
||
| project_id = var.project_id | ||
| name = google_service_account.custom.account_id | ||
| use_existing_gcp_sa = true | ||
| project_id = var.project_id | ||
| name = google_service_account.custom.account_id | ||
| network = var.network | ||
| subnetwork = var.subnetwork | ||
| ip_range_pods = var.ip_range_pods | ||
|
Comment on lines
+103
to
+105
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, irrelevant fields, but |
||
| # wait till custom GSA is created to force module data source read during apply | ||
| # https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/issues/1059 | ||
| depends_on = [google_service_account.custom] | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| /** | ||
| * Copyright 2026 Google LLC | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| moved { | ||
| from = kubernetes_service_account.main | ||
| to = kubernetes_service_account_v1.main | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think those are irrelevant here, but the deleted ones should remain.