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

Commit

Permalink
chore: use storage.k8s.io/v1 apiVersion for 1.22+ (#4550)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfrancis authored Jun 30, 2021
1 parent 29213a4 commit 1b8a29f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions parts/k8s/addons/azure-cloud-provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ volumeBindingMode: Immediate
{{else}}
{{- if NeedsStorageAccountStorageClasses}}
---
apiVersion: storage.k8s.io/v1beta1
apiVersion: storage.k8s.io/v1{{- if not (IsKubernetesVersionGe "1.22.0-alpha.2")}}beta1{{end}}
kind: StorageClass
metadata:
name: default
Expand All @@ -180,7 +180,7 @@ provisioner: kubernetes.io/azure-disk
parameters:
cachingmode: ReadOnly
---
apiVersion: storage.k8s.io/v1beta1
apiVersion: storage.k8s.io/v1{{- if not (IsKubernetesVersionGe "1.22.0-alpha.2")}}beta1{{end}}
kind: StorageClass
metadata:
name: unmanaged-premium
Expand All @@ -193,7 +193,7 @@ parameters:
storageaccounttype: Premium_LRS
cachingmode: ReadOnly
---
apiVersion: storage.k8s.io/v1beta1
apiVersion: storage.k8s.io/v1{{- if not (IsKubernetesVersionGe "1.22.0-alpha.2")}}beta1{{end}}
kind: StorageClass
metadata:
name: unmanaged-standard
Expand Down Expand Up @@ -221,7 +221,7 @@ parameters:
{{- end}}
{{- if NeedsManagedDiskStorageClasses}}
---
apiVersion: storage.k8s.io/v1beta1
apiVersion: storage.k8s.io/v1{{- if not (IsKubernetesVersionGe "1.22.0-alpha.2")}}beta1{{end}}
kind: StorageClass
metadata:
name: default
Expand All @@ -235,7 +235,7 @@ parameters:
storageaccounttype: Standard_LRS
cachingmode: ReadOnly
---
apiVersion: storage.k8s.io/v1beta1
apiVersion: storage.k8s.io/v1{{- if not (IsKubernetesVersionGe "1.22.0-alpha.2")}}beta1{{end}}
kind: StorageClass
metadata:
name: managed-premium
Expand All @@ -248,7 +248,7 @@ parameters:
storageaccounttype: Premium_LRS
cachingmode: ReadOnly
---
apiVersion: storage.k8s.io/v1beta1
apiVersion: storage.k8s.io/v1{{- if not (IsKubernetesVersionGe "1.22.0-alpha.2")}}beta1{{end}}
kind: StorageClass
metadata:
name: managed-standard
Expand Down
12 changes: 6 additions & 6 deletions pkg/engine/templates_generated.go

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

0 comments on commit 1b8a29f

Please sign in to comment.