Skip to content

Commit a58e6b4

Browse files
committed
feat: allow disabling beta node affinity term for GKE AP
1 parent 761ac68 commit a58e6b4

File tree

7 files changed

+30
-0
lines changed

7 files changed

+30
-0
lines changed

snyk-monitor/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ spec:
3939
- key: "kubernetes.io/arch"
4040
operator: In
4141
values: ["amd64"]
42+
{{- if not .Values.nodeAffinity.disableBetaArchNodeSelector }}
4243
- key: "beta.kubernetes.io/arch"
4344
operator: In
4445
values: ["amd64"]
46+
{{- end }}
4547
serviceAccountName: {{ include "snyk-monitor.name" . }}
4648
restartPolicy: Always
4749
initContainers:

snyk-monitor/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ log_level:
9898

9999
nodeSelector: {}
100100

101+
nodeAffinity:
102+
disableBetaArchNodeSelector: false
103+
101104
# Additional annotations for the snyk-monitor Deployment's Pod
102105
metadata:
103106
annotations: {}

snyk-operator-certified/bundle/manifests/charts.snyk.io_snykmonitors.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ spec:
7070
pullPolicy:
7171
type: string
7272
type: object
73+
nodeAffinity:
74+
properties:
75+
disableBetaArchNodeSelector:
76+
type: boolean
77+
type: object
7378
status:
7479
description: Status defines the observed state of SnykMonitor
7580
type: object

snyk-operator-certified/bundle/manifests/snyk-monitor.clusterserviceversion.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ metadata:
4141
},
4242
"limits": {
4343
"memory": "2Gi"
44+
},
45+
"nodeAffinity": {
46+
"disableBetaArchNodeSelector": false
4447
}
4548
}
4649
}

snyk-operator-certified/config/manifests/bases/snyk-monitor.clusterserviceversion.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ metadata:
3434
},
3535
"limits": {
3636
"memory": "2Gi"
37+
},
38+
"nodeAffinity": {
39+
"disableBetaArchNodeSelector": false
3740
}
3841
}
3942
}

snyk-operator/deploy/olm-catalog/snyk-operator/0.0.0/snyk-operator.v0.0.0.clusterserviceversion.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ metadata:
3636
},
3737
"limits": {
3838
"memory": "2Gi"
39+
},
40+
"nodeAffinity": {
41+
"disableBetaArchNodeSelector": false
3942
}
4043
}
4144
}
@@ -171,6 +174,12 @@ spec:
171174
path: limits.memory
172175
x-descriptors:
173176
- "urn:alm:descriptor:text"
177+
- description: >-
178+
True to disable the beta.kubernetes.io/arch node affinity term.
179+
displayName: Disable beta.kubernetes.io/arch node affinity
180+
path: nodeAffinity.disableBetaArchNodeSelector
181+
x-descriptors:
182+
- "urn:alm:descriptor:com.tectonic.ui:booleanSwitch"
174183
description: |-
175184
A Kubernetes Operator for creating and managing Snyk Kubernetes controller instances.
176185

snyk-operator/deploy/olm-catalog/snyk-operator/0.0.0/snykmonitors.charts.helm.k8s.io.crd.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,8 @@ spec:
8181
memory:
8282
type: string
8383
type: object
84+
nodeAffinity:
85+
properties:
86+
disableBetaArchNodeSelector:
87+
type: boolean
88+
type: object

0 commit comments

Comments
 (0)