feat: replace ansible templating with makejinja (#1156)

This commit is contained in:
Devin Buhl authored and GitHub committed 2024-01-14 23:03:02 -05:00
1 parent a4731906d9
commit f9481d6202
114 files changed
+555 -906

No files matched your search

@@ -0,0 +1,20 @@
{% if bootstrap_distribution == "k3s" and system_upgrade_controller.enabled | default(false) %}
---
apiVersion: upgrade.cattle.io/v1
kind: Plan
metadata:
name: agent
spec:
# renovate: datasource=github-releases depName=k3s-io/k3s
version: "v1.29.0+k3s1"
serviceAccountName: system-upgrade
concurrency: 1
nodeSelector:
matchExpressions:
- {key: node-role.kubernetes.io/control-plane, operator: DoesNotExist}
prepare:
image: rancher/k3s-upgrade
args: ["prepare", "server"]
upgrade:
image: rancher/k3s-upgrade
{% endif %}
@@ -0,0 +1,8 @@
{% if bootstrap_distribution == "k3s" and system_upgrade_controller.enabled | default(false) %}
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./server.yaml
- ./agent.yaml
{% endif %}
@@ -0,0 +1,25 @@
{% if bootstrap_distribution == "k3s" and system_upgrade_controller.enabled | default(false) %}
---
apiVersion: upgrade.cattle.io/v1
kind: Plan
metadata:
name: server
spec:
# renovate: datasource=github-releases depName=k3s-io/k3s
version: "v1.29.0+k3s1"
serviceAccountName: system-upgrade
concurrency: 1
cordon: true
nodeSelector:
matchExpressions:
- {key: node-role.kubernetes.io/control-plane, operator: Exists}
tolerations:
- {effect: NoSchedule, operator: Exists}
- {effect: NoExecute, operator: Exists}
- {key: node-role.kubernetes.io/control-plane, effect: NoSchedule, operator: Exists}
- {key: node-role.kubernetes.io/master, effect: NoSchedule, operator: Exists}
- {key: node-role.kubernetes.io/etcd, effect: NoExecute, operator: Exists}
- {key: CriticalAddonsOnly, operator: Exists}
upgrade:
image: rancher/k3s-upgrade
{% endif %}