Skip to content

Commit 10a2e17

Browse files
authored
Merge pull request #51 from dnvgl/fix-support3
Fix for flux-bootstrap
2 parents 42cd030 + db92dae commit 10a2e17

7 files changed

Lines changed: 8 additions & 6 deletions

File tree

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.3.0
18+
version: 0.3.1
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/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The Bootstrap Chart is designed to generate all necessary manifests for a specif
66

77
- Kubernetes 1.16+
88
- Helm 3.0+
9+
- KubeIT 3.0+ if chart version =>0.3.1
910

1011
## Installation
1112

charts/flux-bootstrap/templates/_all-manifests.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"fluxSshSecretNameTemplate" ($values.fluxSshSecretNameTemplate | default "gitops-repo-key")
5656
"gitRepoNameTemplate" ( $values.gitRepoNameTemplate | default "tenant" )
5757
"kustomizationNameTemplate" ( $values.kustomizationNameTemplate | default "tenant")
58+
"capabilities" $.Capabilities
5859
"Template" $.Template) }}
5960

6061
{{- include "bootstrap.gitRepository" $context }}

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

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

33
---
4-
{{- if $.Capabilities.APIVersions.Has "image.toolkit.fluxcd.io/v1" }}
4+
{{- if .capabilities.APIVersions.Has "image.toolkit.fluxcd.io/v1" }}
55
apiVersion: image.toolkit.fluxcd.io/v1
66
{{- else }}
77
apiVersion: image.toolkit.fluxcd.io/v1beta2

charts/flux-bootstrap/templates/_kustomization.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- define "bootstrap.kustomization" }}
22
---
3-
{{- if $.Capabilities.APIVersions.Has "kustomize.toolkit.fluxcd.io/v1" }}
3+
{{- if .capabilities.APIVersions.Has "kustomize.toolkit.fluxcd.io/v1" }}
44
apiVersion: kustomize.toolkit.fluxcd.io/v1
55
{{- else }}
66
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- define "bootstrap.serviceMeshChartHelmRepository" }}
22
---
3-
{{- if $.Capabilities.APIVersions.Has "source.toolkit.fluxcd.io/v1" }}
3+
{{- if .capabilities.APIVersions.Has "source.toolkit.fluxcd.io/v1" }}
44
apiVersion: source.toolkit.fluxcd.io/v1
55
{{- else }}
66
apiVersion: source.toolkit.fluxcd.io/v1beta2

charts/flux-bootstrap/templates/_ssh-key-secrets.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{- define "bootstrap.sshKeySecrets" }}
22
---
33
# Source: akv-secrets/templates/secret-sync.yaml
4-
{{- if .Capabilities.APIVersions.Has "external-secrets.io/v1" }}
4+
{{- if .capabilities.APIVersions.Has "external-secrets.io/v1" }}
55
apiVersion: external-secrets.io/v1
66
{{- else }}
77
apiVersion: external-secrets.io/v1beta1
@@ -41,7 +41,7 @@ metadata:
4141
namespace: {{ .namespace }}
4242
---
4343
# Source: akv-secrets/templates/secret-sync.yaml
44-
{{- if .Capabilities.APIVersions.Has "external-secrets.io/v1" }}
44+
{{- if .capabilities.APIVersions.Has "external-secrets.io/v1" }}
4545
apiVersion: external-secrets.io/v1
4646
{{- else }}
4747
apiVersion: external-secrets.io/v1beta1

0 commit comments

Comments
 (0)