mirror of
https://github.com/hahow/common-chart.git
synced 2026-02-14 09:39:57 +00:00
Merge pull request #12 from hahow/chore/update-k8s-api-1.25-.26
update(api): update api version to 1.25 / 1.26
This commit is contained in:
@@ -14,4 +14,4 @@ type: library
|
|||||||
|
|
||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
version: 1.4.0
|
version: 1.4.1
|
||||||
|
|||||||
@@ -275,7 +275,7 @@ Example use:
|
|||||||
Output:
|
Output:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: autoscaling/v2beta2
|
apiVersion: autoscaling/v2
|
||||||
kind: HorizontalPodAutoscaler
|
kind: HorizontalPodAutoscaler
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
@@ -422,7 +422,7 @@ Example use:
|
|||||||
Output:
|
Output:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: policy/v1beta1
|
apiVersion: policy/v1
|
||||||
kind: PodDisruptionBudget
|
kind: PodDisruptionBudget
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ spec:
|
|||||||
{{- if semverCompare ">=1.21-0" $top.Capabilities.KubeVersion.GitVersion -}}
|
{{- if semverCompare ">=1.21-0" $top.Capabilities.KubeVersion.GitVersion -}}
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
apiVersion: batch/v1beta1
|
apiVersion: batch/v1
|
||||||
{{- end }}
|
{{- end }}
|
||||||
kind: CronJob
|
kind: CronJob
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
{{- if semverCompare ">=1.23-0" $top.Capabilities.KubeVersion.GitVersion -}}
|
{{- if semverCompare ">=1.23-0" $top.Capabilities.KubeVersion.GitVersion -}}
|
||||||
apiVersion: autoscaling/v2
|
apiVersion: autoscaling/v2
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
apiVersion: autoscaling/v2beta2
|
apiVersion: autoscaling/v2
|
||||||
{{- end }}
|
{{- end }}
|
||||||
kind: HorizontalPodAutoscaler
|
kind: HorizontalPodAutoscaler
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
{{- if semverCompare ">=1.21-0" $top.Capabilities.KubeVersion.GitVersion -}}
|
{{- if semverCompare ">=1.21-0" $top.Capabilities.KubeVersion.GitVersion -}}
|
||||||
apiVersion: policy/v1
|
apiVersion: policy/v1
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
apiVersion: policy/v1beta1
|
apiVersion: policy/v1
|
||||||
{{- end }}
|
{{- end }}
|
||||||
kind: PodDisruptionBudget
|
kind: PodDisruptionBudget
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
Reference in New Issue
Block a user