From a5ddd3cf3351dc8a1bfd659619048ec7b2838728 Mon Sep 17 00:00:00 2001 From: Cindy Bang Date: Thu, 12 Dec 2024 09:12:31 -0500 Subject: [PATCH] fixup! fixup! templates: add cluster object store configuration --- .../flavors/k3s/full-vpcless/kustomization.yaml | 14 ++++++++++++++ templates/flavors/k3s/full/kustomization.yaml | 14 ++++++++++++++ .../kubeadm/full-vpcless/kustomization.yaml | 14 ++++++++++++++ templates/flavors/kubeadm/full/kustomization.yaml | 14 ++++++++++++++ .../flavors/rke2/full-vpcless/kustomization.yaml | 14 ++++++++++++++ templates/flavors/rke2/full/kustomization.yaml | 14 ++++++++++++++ 6 files changed, 84 insertions(+) diff --git a/templates/flavors/k3s/full-vpcless/kustomization.yaml b/templates/flavors/k3s/full-vpcless/kustomization.yaml index 853eb1b4..d098479c 100644 --- a/templates/flavors/k3s/full-vpcless/kustomization.yaml +++ b/templates/flavors/k3s/full-vpcless/kustomization.yaml @@ -199,3 +199,17 @@ patches: apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 kind: LinodePlacementGroup name: ${CLUSTER_NAME} + - target: + group: infrastructure.cluster.x-k8s.io + version: v1alpha2 + kind: LinodeCluster + patch: |- + apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 + kind: LinodeCluster + metadata: + name: ${CLUSTER_NAME} + spec: + objectStore: + presignedURLDuration: "24h" + credentialsRef: + name: ${CLUSTER_NAME}-object-store-obj-key diff --git a/templates/flavors/k3s/full/kustomization.yaml b/templates/flavors/k3s/full/kustomization.yaml index 95675a63..e6f77e01 100644 --- a/templates/flavors/k3s/full/kustomization.yaml +++ b/templates/flavors/k3s/full/kustomization.yaml @@ -51,3 +51,17 @@ patches: apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 kind: LinodePlacementGroup name: ${CLUSTER_NAME} + - target: + group: infrastructure.cluster.x-k8s.io + version: v1alpha2 + kind: LinodeCluster + patch: |- + apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 + kind: LinodeCluster + metadata: + name: ${CLUSTER_NAME} + spec: + objectStore: + presignedURLDuration: "24h" + credentialsRef: + name: ${CLUSTER_NAME}-object-store-obj-key diff --git a/templates/flavors/kubeadm/full-vpcless/kustomization.yaml b/templates/flavors/kubeadm/full-vpcless/kustomization.yaml index 9a28253b..a5ea5ac2 100644 --- a/templates/flavors/kubeadm/full-vpcless/kustomization.yaml +++ b/templates/flavors/kubeadm/full-vpcless/kustomization.yaml @@ -225,3 +225,17 @@ patches: apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 kind: LinodePlacementGroup name: ${CLUSTER_NAME} + - target: + group: infrastructure.cluster.x-k8s.io + version: v1alpha2 + kind: LinodeCluster + patch: |- + apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 + kind: LinodeCluster + metadata: + name: ${CLUSTER_NAME} + spec: + objectStore: + presignedURLDuration: "24h" + credentialsRef: + name: ${CLUSTER_NAME}-object-store-obj-key diff --git a/templates/flavors/kubeadm/full/kustomization.yaml b/templates/flavors/kubeadm/full/kustomization.yaml index 49a2e53d..cd5a8d46 100644 --- a/templates/flavors/kubeadm/full/kustomization.yaml +++ b/templates/flavors/kubeadm/full/kustomization.yaml @@ -104,3 +104,17 @@ patches: apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 kind: LinodePlacementGroup name: ${CLUSTER_NAME} + - target: + group: infrastructure.cluster.x-k8s.io + version: v1alpha2 + kind: LinodeCluster + patch: |- + apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 + kind: LinodeCluster + metadata: + name: ${CLUSTER_NAME} + spec: + objectStore: + presignedURLDuration: "24h" + credentialsRef: + name: ${CLUSTER_NAME}-object-store-obj-key diff --git a/templates/flavors/rke2/full-vpcless/kustomization.yaml b/templates/flavors/rke2/full-vpcless/kustomization.yaml index fa7452bc..ff86f19e 100644 --- a/templates/flavors/rke2/full-vpcless/kustomization.yaml +++ b/templates/flavors/rke2/full-vpcless/kustomization.yaml @@ -98,3 +98,17 @@ patches: apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 kind: LinodePlacementGroup name: ${CLUSTER_NAME} + - target: + group: infrastructure.cluster.x-k8s.io + version: v1alpha2 + kind: LinodeCluster + patch: |- + apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 + kind: LinodeCluster + metadata: + name: ${CLUSTER_NAME} + spec: + objectStore: + presignedURLDuration: "24h" + credentialsRef: + name: ${CLUSTER_NAME}-object-store-obj-key diff --git a/templates/flavors/rke2/full/kustomization.yaml b/templates/flavors/rke2/full/kustomization.yaml index 8ef21b61..140fba39 100644 --- a/templates/flavors/rke2/full/kustomization.yaml +++ b/templates/flavors/rke2/full/kustomization.yaml @@ -90,3 +90,17 @@ patches: apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 kind: LinodePlacementGroup name: ${CLUSTER_NAME} + - target: + group: infrastructure.cluster.x-k8s.io + version: v1alpha2 + kind: LinodeCluster + patch: |- + apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 + kind: LinodeCluster + metadata: + name: ${CLUSTER_NAME} + spec: + objectStore: + presignedURLDuration: "24h" + credentialsRef: + name: ${CLUSTER_NAME}-object-store-obj-key