Skip to content

Commit

Permalink
Merge pull request #1120 from kube-hetzner/upgrade-kustomization
Browse files Browse the repository at this point in the history
  • Loading branch information
mnencia authored Dec 15, 2023
2 parents 6d0ac86 + 51e0822 commit ae11c4e
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ locals {
"https://github.com/kubereboot/kured/releases/download/${local.kured_version}/kured-${local.kured_version}-dockerhub.yaml",
"https://raw.githubusercontent.com/rancher/system-upgrade-controller/master/manifests/system-upgrade-controller.yaml",
],
var.disable_hetzner_csi ? [] : [
"hcloud-csi.yml"
],
var.disable_hetzner_csi ? [] : ["hcloud-csi.yml"],
lookup(local.ingress_controller_install_resources, local.ingress_controller, []),
lookup(local.cni_install_resources, var.cni_plugin, []),
var.enable_longhorn ? ["longhorn.yaml"] : [],
Expand All @@ -90,14 +88,24 @@ locals {
var.enable_rancher ? ["rancher.yaml"] : [],
var.rancher_registration_manifest_url != "" ? [var.rancher_registration_manifest_url] : []
),
patchesStrategicMerge = concat(
[
file("${path.module}/kustomize/system-upgrade-controller.yaml"),
"kured.yaml",
"ccm.yaml",
],
lookup(local.cni_install_resource_patches, var.cni_plugin, [])
)
patches = [
{
target = {
group = "apps"
version = "v1"
kind = "Deployment"
name = "system-upgrade-controller"
namespace = "system-upgrade"
}
patch = file("${path.module}/kustomize/system-upgrade-controller.yaml")
},
{
path = "kured.yaml"
},
{
path = "ccm.yaml"
}
]
})

apply_k3s_selinux = ["/sbin/semodule -v -i /usr/share/selinux/packages/k3s.pp"]
Expand Down

0 comments on commit ae11c4e

Please sign in to comment.