Skip to content

Commit

Permalink
Fix tutorial error.
Browse files Browse the repository at this point in the history
Without versions override it fails with:
 Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hashicorp/kubectl: provider registry registry.terraform.io does not have a provider named registry.terraform.io/hashicorp/kubectl
│
│ All modules should specify their required_providers so that external consumers will get the correct providers when using a module. To see which modules are currently depending on hashicorp/kubectl, run the following command:
│     terraform providers
  • Loading branch information
wiktorn committed Jun 29, 2024
1 parent 4e8adc9 commit 22684f4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion blueprints/gke/patterns/batch/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ cluster_name = "gke-patterns-cluster"
cluster_create = {
deletion_protection = false
labels = {
pattern = "kafka"
pattern = "batch"
}
}
region = "europe-west1"
Expand Down
22 changes: 22 additions & 0 deletions blueprints/gke/patterns/batch/versions_override.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2024 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
#
# https://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.

terraform {
required_providers {
kubectl = {
source = "gavinbunney/kubectl"
version = ">= 1.7.0"
}
}
}

0 comments on commit 22684f4

Please sign in to comment.