Skip to content

Commit 42cd030

Browse files
authored
Merge pull request #50 from dnvgl/support3
Update apiVersions to support KubeIT 3.0
2 parents 26e94ef + 07612fd commit 42cd030

12 files changed

Lines changed: 30 additions & 10 deletions

charts/flux-bootstrap/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: library
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.2.0
18+
version: 0.3.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/flux-bootstrap/templates/_gitRepository.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{- define "bootstrap.gitRepository" }}
22

33
---
4-
apiVersion: source.toolkit.fluxcd.io/v1beta1
4+
apiVersion: source.toolkit.fluxcd.io/v1
55
kind: GitRepository
66
metadata:
77
name: {{ include "bootstrap.gitRepoName" . }}

charts/flux-bootstrap/templates/_image-automation.tpl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{{- define "bootstrap.imageAutomation" }}
22

33
---
4-
apiVersion: image.toolkit.fluxcd.io/v1beta1
4+
{{- if $.Capabilities.APIVersions.Has "image.toolkit.fluxcd.io/v1" }}
5+
apiVersion: image.toolkit.fluxcd.io/v1
6+
{{- else }}
7+
apiVersion: image.toolkit.fluxcd.io/v1beta2
8+
{{- end }}
59
kind: ImageUpdateAutomation
610
metadata:
711
name: image-update-automation

charts/flux-bootstrap/templates/_kustomization.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{{- define "bootstrap.kustomization" }}
22
---
3+
{{- if $.Capabilities.APIVersions.Has "kustomize.toolkit.fluxcd.io/v1" }}
4+
apiVersion: kustomize.toolkit.fluxcd.io/v1
5+
{{- else }}
36
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
7+
{{- end }}
48
kind: Kustomization
59
metadata:
610
name: {{ include "bootstrap.kustomizationName" . }}

charts/flux-bootstrap/templates/_service-mesh-chart-helm-repository.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{{- define "bootstrap.serviceMeshChartHelmRepository" }}
22
---
3+
{{- if $.Capabilities.APIVersions.Has "source.toolkit.fluxcd.io/v1" }}
4+
apiVersion: source.toolkit.fluxcd.io/v1
5+
{{- else }}
36
apiVersion: source.toolkit.fluxcd.io/v1beta2
7+
{{- end }}
48
kind: HelmRepository
59
metadata:
610
name: service-mesh-chart

charts/platform-service/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ apiVersion: v1
22
appVersion: "1.1"
33
description: Platform service chart
44
name: platform-service
5-
version: 1.4.6
5+
version: 1.4.7

charts/platform-service/templates/authorizationPolicy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- if .Values.authorizationPolicy.enabled }}
2-
apiVersion: security.istio.io/v1beta1
2+
apiVersion: security.istio.io/v1
33
kind: AuthorizationPolicy
44
metadata:
55
name: {{ include "platform-service.fullname" . }}

charts/platform-service/templates/destinationrules.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- if .Values.defaultRouting.enabled}}
2-
apiVersion: networking.istio.io/v1alpha3
2+
apiVersion: networking.istio.io/v1
33
kind: DestinationRule
44
metadata:
55
name: {{ include "platform-service.fullname" . }}-destinationrule

charts/platform-service/templates/horizontal-pod-autoscaler.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- if .Values.hpa.enabled }}
2-
apiVersion: autoscaling/v1
2+
apiVersion: autoscaling/v2
33
kind: HorizontalPodAutoscaler
44
metadata:
55
name: {{ include "platform-service.fullname" . }}-hpa

charts/platform-service/templates/image-policy.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{{- if .Values.image.fluxAutomation.enabled -}}
2-
apiVersion: image.toolkit.fluxcd.io/v1beta1
2+
{{- if $.Capabilities.APIVersions.Has "image.toolkit.fluxcd.io/v1" }}
3+
apiVersion: image.toolkit.fluxcd.io/v1
4+
{{- else }}
5+
apiVersion: image.toolkit.fluxcd.io/v1beta2
6+
{{- end }}
37
kind: ImagePolicy
48
metadata:
59
name: {{ include "platform-service.name" . }}

0 commit comments

Comments
 (0)