Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
feat: add support for Kubernetes 1.19.0-alpha.2 (#3122)
Browse files Browse the repository at this point in the history
* feat: add support for Kubernetes 1.19.0-alpha.2

See https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.19.md#changelog-since-v1190-alpha1

* chore: drop "beta" from kubernetes.io/os label for 1.19

* fix: add to supported versions list
  • Loading branch information
mboersma committed Apr 22, 2020
1 parent 6e2cc66 commit 17f9646
Show file tree
Hide file tree
Showing 23 changed files with 44 additions and 41 deletions.
2 changes: 1 addition & 1 deletion parts/k8s/addons/1.19/azure-cni-networkmonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
- operator: "Exists"
effect: NoSchedule
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
containers:
- name: azure-cnms
image: {{ContainerImage "azure-cni-networkmonitor"}}
Expand Down
2 changes: 1 addition & 1 deletion parts/k8s/addons/1.19/ip-masq-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
priorityClassName: system-node-critical
hostNetwork: true
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
tolerations:
- key: CriticalAddonsOnly
operator: Exists
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ spec:
add:
- NET_ADMIN
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
---
apiVersion: v1
kind: ServiceAccount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
spec:
serviceAccountName: aci-connector
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
containers:
- name: aci-connector
image: {{ContainerImage "aci-connector"}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ spec:
- key: CriticalAddonsOnly
operator: Exists
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
containers:
- name: azure-npm
image: {{ContainerImage "azure-npm-daemonset"}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ spec:
hostPath:
path: /etc/kubernetes/volumeplugins/
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ spec:
spec:
priorityClassName: system-cluster-critical
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
hostNetwork: true
tolerations:
{{- /* Mark the pod as a critical add-on for rescheduling. */}}
Expand Down Expand Up @@ -442,7 +442,7 @@ spec:
spec:
priorityClassName: system-cluster-critical
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
hostNetwork: true
tolerations:
{{- /* Make sure calico-node gets scheduled on all nodes. */}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ spec:
key: node-role.kubernetes.io/master
nodeSelector:
kubernetes.io/role: master
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
containers:
- image: {{ContainerImage "cluster-autoscaler"}}
imagePullPolicy: IfNotPresent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ spec:
hostNetwork: true
nodeSelector:
beta.kubernetes.io/arch: amd64
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
priorityClassName: system-node-critical
tolerations:
- key: node.kubernetes.io/not-ready
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,4 @@ spec:
- key: CriticalAddonsOnly
operator: Exists
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ spec:
path: /etc/kubernetes/volumeplugins
name: volplugins
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,4 @@ spec:
dnsPolicy: Default
serviceAccountName: kube-dns
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ spec:
name: kube-proxy-config
name: kube-proxy-config-volume
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
spec:
priorityClassName: system-node-critical
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
containers:
- image: {{ContainerImage "rescheduler"}}
imagePullPolicy: IfNotPresent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,4 @@ spec:
emptyDir: {}
serviceAccountName: kubernetes-dashboard
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ spec:
- /metrics-server
- --kubelet-insecure-tls
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
---
apiVersion: apiregistration.k8s.io/v1beta1
kind: APIService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ spec:
hostPath:
path: /var/lib/kubelet/device-plugins
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
accelerator: nvidia
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ spec:
path: /etc/kubernetes/volumeplugins/
type: DirectoryOrCreate
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ spec:
cpu: {{ContainerCPULimits "tiller"}}
memory: {{ContainerMemLimits "tiller"}}
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
1 change: 1 addition & 0 deletions pkg/api/common/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ var AllKubernetesSupportedVersions = map[string]bool{
"1.18.1": true,
"1.18.2": true,
"1.19.0-alpha.1": true,
"1.19.0-alpha.2": true,
}

// GetDefaultKubernetesVersion returns the default Kubernetes version, that is the latest patch of the default release
Expand Down
40 changes: 20 additions & 20 deletions pkg/engine/templates_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion vhd/packer/configure-windows-vhd.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ function Get-FilesToCacheOnVHD
"https://kubernetesartifacts.azureedge.net/kubernetes/v1.17.5/windowszip/v1.17.5-1int.zip",
"https://kubernetesartifacts.azureedge.net/kubernetes/v1.18.0/windowszip/v1.18.0-1int.zip",
"https://kubernetesartifacts.azureedge.net/kubernetes/v1.18.1/windowszip/v1.18.1-1int.zip",
"https://kubernetesartifacts.azureedge.net/kubernetes/v1.18.2/windowszip/v1.18.2-1int.zip"
"https://kubernetesartifacts.azureedge.net/kubernetes/v1.18.2/windowszip/v1.18.2-1int.zip",
"https://kubernetesartifacts.azureedge.net/kubernetes/v1.19.0-alpha.2/windowszip/v1.19.0-alpha.2-1int.zip"
);
"c:\akse-cache\win-vnet-cni\" = @(
"https://kubernetesartifacts.azureedge.net/azure-cni/v1.0.30/binaries/azure-vnet-cni-windows-amd64-v1.0.30.zip",
Expand Down
1 change: 1 addition & 0 deletions vhd/packer/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ pullContainerImage "docker" "busybox"
echo " - busybox" >> ${VHD_LOGS_FILEPATH}

K8S_VERSIONS="
1.19.0-alpha.2
1.18.2
1.18.1
1.17.5
Expand Down

0 comments on commit 17f9646

Please sign in to comment.