Skip to content

Commit

Permalink
beta.kubernetes.io is deprecated, use kubernetes.io instead (#969)
Browse files Browse the repository at this point in the history
* beta.kubernetes.io is deprecated, use kubernetes.io instead

  Warning: spec.template.spec.nodeSelector[beta.kubernetes.io/arch]: deprecated since v1.14; use "kubernetes.io/arch" instead
  Warning: spec.template.spec.nodeSelector[beta.kubernetes.io/os]: deprecated since v1.14; use "kubernetes.io/os" instead

Signed-off-by: Tomoya Fujita <[email protected]>
  • Loading branch information
fujitatomoya authored Aug 30, 2022
1 parent 63b64c2 commit 991cce5
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion charts/openyurt/templates/yurt-tunnel-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
k8s-app: yurt-tunnel-agent
spec:
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
openyurt.io/is-edge-worker: "true"
containers:
- command:
Expand Down
4 changes: 2 additions & 2 deletions charts/openyurt/templates/yurt-tunnel-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ spec:
tolerations:
- operator: "Exists"
nodeSelector:
beta.kubernetes.io/arch: amd64
beta.kubernetes.io/os: linux
kubernetes.io/arch: amd64
kubernetes.io/os: linux
openyurt.io/is-edge-worker: "false"
containers:
- name: yurt-tunnel-server
Expand Down
2 changes: 1 addition & 1 deletion config/setup/yurt-tunnel-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
k8s-app: yurt-tunnel-agent
spec:
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
openyurt.io/is-edge-worker: "true"
containers:
- command:
Expand Down
4 changes: 2 additions & 2 deletions config/setup/yurt-tunnel-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ spec:
tolerations:
- operator: "Exists"
nodeSelector:
beta.kubernetes.io/arch: amd64
beta.kubernetes.io/os: linux
kubernetes.io/arch: amd64
kubernetes.io/os: linux
openyurt.io/is-edge-worker: "false"
containers:
- name: yurt-tunnel-server
Expand Down
2 changes: 1 addition & 1 deletion config/yaml-template/yurt-tunnel-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
k8s-app: __project_prefix__-tunnel-agent
spec:
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
__label_prefix__/is-edge-worker: "true"
containers:
- command:
Expand Down
4 changes: 2 additions & 2 deletions config/yaml-template/yurt-tunnel-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ spec:
tolerations:
- operator: "Exists"
nodeSelector:
beta.kubernetes.io/arch: amd64
beta.kubernetes.io/os: linux
kubernetes.io/arch: amd64
kubernetes.io/os: linux
__label_prefix__/is-edge-worker: "false"
containers:
- name: __project_prefix__-tunnel-server
Expand Down
2 changes: 1 addition & 1 deletion pkg/yurtctl/constants/yurt-app-manager-tmpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ spec:
readOnly: true
nodeSelector:
openyurt.io/is-edge-worker: "false"
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
priorityClassName: system-node-critical
terminationGracePeriodSeconds: 10
tolerations:
Expand Down
2 changes: 1 addition & 1 deletion pkg/yurtctl/constants/yurt-tunnel-agent-tmpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
k8s-app: yurt-tunnel-agent
spec:
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
{{.edgeWorkerLabel}}: "true"
containers:
- command:
Expand Down
2 changes: 1 addition & 1 deletion pkg/yurtctl/constants/yurt-tunnel-server-tmpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ spec:
tolerations:
- operator: "Exists"
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
{{.edgeWorkerLabel}}: "false"
containers:
- name: yurt-tunnel-server
Expand Down

0 comments on commit 991cce5

Please sign in to comment.