Skip to content

Commit

Permalink
Correct apiversions
Browse files Browse the repository at this point in the history
Signed-off-by: Kim Christensen <[email protected]>
  • Loading branch information
kichristensen committed Aug 31, 2023
1 parent 9759042 commit 0ba733b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions addons/fluxcd/definitions/helm-release-def.cue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ template: {
}
}
if parameter.repoType == "oss" {
apiVersion: "source.toolkit.fluxcd.io/v1beta1"
apiVersion: "source.toolkit.fluxcd.io/v1beta2"
kind: "Bucket"
spec: {
endpoint: parameter.url
Expand All @@ -103,7 +103,7 @@ template: {
}
}
if parameter.repoType == "helm" || parameter.repoType == "oci" {
apiVersion: "source.toolkit.fluxcd.io/v1beta1"
apiVersion: "source.toolkit.fluxcd.io/v1beta2"
kind: "HelmRepository"
spec: {
url: parameter.url
Expand Down
7 changes: 4 additions & 3 deletions addons/fluxcd/definitions/kustomize.cue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ template: {
}
}
if parameter.repoType == "oss" {
kind: "Bucket"
apiVersion: "source.toolkit.fluxcd.io/v1beta2"
kind: "Bucket"
spec: {
endpoint: parameter.url
bucketName: parameter.oss.bucketName
Expand All @@ -90,7 +91,7 @@ template: {
}
}
if parameter.repoType == "oci" {
apiVersion: "source.toolkit.fluxcd.io/v1beta1"
apiVersion: "source.toolkit.fluxcd.io/v1beta2"
kind: "OCIRepository"
spec: {
url: parameter.url
Expand Down Expand Up @@ -125,7 +126,7 @@ template: {
}

imagePolicy: {
apiVersion: "image.toolkit.fluxcd.io/v1beta1"
apiVersion: "image.toolkit.fluxcd.io/v1beta2"
kind: "ImagePolicy"
metadata: {
name: context.name
Expand Down

0 comments on commit 0ba733b

Please sign in to comment.