mirror of
https://github.com/rancher/rke.git
synced 2025-09-16 06:59:25 +00:00
Add compatibility with k8s v1.22
This commit is contained in:
@@ -4,6 +4,7 @@ const AddonJobTemplate = `
|
||||
{{- $addonName := .AddonName }}
|
||||
{{- $nodeName := .NodeName }}
|
||||
{{- $image := .Image }}
|
||||
{{- $OSLabel := .OSLabel }}
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
@@ -24,7 +25,7 @@ spec:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: beta.kubernetes.io/os
|
||||
- key: {{$OSLabel}}
|
||||
operator: NotIn
|
||||
values:
|
||||
- windows
|
||||
|
Reference in New Issue
Block a user