Skip to content

Commit

Permalink
tolerate arm64 in tools deployments and jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
cfryanr committed Oct 9, 2023
1 parent 5852a9e commit bbf4412
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
11 changes: 10 additions & 1 deletion test/deploy/tools/cert-issuer.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! Copyright 2020-2021 the Pinniped contributors. All Rights Reserved.
#! Copyright 2020-2023 the Pinniped contributors. All Rights Reserved.
#! SPDX-License-Identifier: Apache-2.0

#@ load("@ytt:data", "data")
Expand Down Expand Up @@ -126,3 +126,12 @@ spec:
- name: certs
emptyDir: {}
restartPolicy: Never
tolerations:
- key: kubernetes.io/arch
effect: NoSchedule
operator: Equal
value: amd64 #! Allow running on amd64 nodes.
- key: kubernetes.io/arch
effect: NoSchedule
operator: Equal
value: arm64 #! Also allow running on arm64 nodes.
11 changes: 10 additions & 1 deletion test/deploy/tools/dex.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! Copyright 2020-2022 the Pinniped contributors. All Rights Reserved.
#! Copyright 2020-2023 the Pinniped contributors. All Rights Reserved.
#! SPDX-License-Identifier: Apache-2.0

#@ load("@ytt:data", "data")
Expand Down Expand Up @@ -94,6 +94,15 @@ spec:
- name: certs
secret:
secretName: certs
tolerations:
- key: kubernetes.io/arch
effect: NoSchedule
operator: Equal
value: amd64 #! Allow running on amd64 nodes.
- key: kubernetes.io/arch
effect: NoSchedule
operator: Equal
value: arm64 #! Also allow running on arm64 nodes.
---
apiVersion: v1
kind: Service
Expand Down
9 changes: 9 additions & 0 deletions test/deploy/tools/ldap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,15 @@ spec:
- name: additional-schema
secret:
secretName: ldap-server-additional-schema-ldif-files
tolerations:
- key: kubernetes.io/arch
effect: NoSchedule
operator: Equal
value: amd64 #! Allow running on amd64 nodes.
- key: kubernetes.io/arch
effect: NoSchedule
operator: Equal
value: arm64 #! Also allow running on arm64 nodes.
---
apiVersion: v1
kind: Service
Expand Down
9 changes: 9 additions & 0 deletions test/deploy/tools/proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ spec:
volumeMounts:
- name: log-dir
mountPath: "/var/log/squid/"
tolerations:
- key: kubernetes.io/arch
effect: NoSchedule
operator: Equal
value: amd64 #! Allow running on amd64 nodes.
- key: kubernetes.io/arch
effect: NoSchedule
operator: Equal
value: arm64 #! Also allow running on arm64 nodes.
---
apiVersion: v1
kind: Service
Expand Down

0 comments on commit bbf4412

Please sign in to comment.