switch kubernetes provider for annotation patching

This commit is contained in:
2024-04-13 18:34:04 +02:00
parent 7d28114157
commit f45d0657c8
3 changed files with 13 additions and 5 deletions

View File

@@ -14,10 +14,10 @@ resource "helm_release" "longhorn" {
}
resource "kubernetes_annotations" "patch_oci-bv" {
count = var.install_longhorn ? 1 : 0
depends_on = [helm_release.longhorn]
api_version = "storage.k8s.io/v1"
kind = "StorageClass"
force = true
metadata {
name = "oci-bv"

View File

@@ -2,15 +2,15 @@ terraform {
required_providers {
oci = {
source = "oracle/oci"
version = ">= 5.36.0"
version = ">= 5.3.0"
}
helm = {
source = "hashicorp/helm"
version = ">= 2.12.1"
}
kubectl = {
source = "gavinbunney/kubectl"
version = ">= 1.14.0"
kubernetes = {
source = "hashicorp/kubernetes"
version = ">= 2.28.0"
}
}
}