Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 59 additions & 12 deletions cicd/crossplane.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,12 @@ environments:
values:
- namespace: crossplane-system
- version: 2.1.3
- functions:
- xpkg.crossplane.io/crossplane-contrib/function-auto-ready:v0.6.0
- xpkg.crossplane.io/crossplane-contrib/function-go-templating:v0.11.3
- xpkg.upbound.io/crossplane-contrib/function-kcl:v0.12.0
- xpkg.upbound.io/crossplane-contrib/function-patch-and-transform:v0.9.3
- deployFunctions: true
- deployConfigurations: true
- deployTeraformProvider: false
- providers:
- xpkg.upbound.io/crossplane-contrib/provider-helm:v1.0.6
- xpkg.upbound.io/crossplane-contrib/provider-kubernetes:v1.2.0
- configurations:
- ghcr.io/stuttgart-things/crossplane/cloud-config:v0.4.1
- ghcr.io/stuttgart-things/crossplane/harvester-vm:v0.2.3
- ghcr.io/stuttgart-things/crossplane/volume-claim:v0.1.1
- deployTeraformProvider: false
- terraform:
secrets:
terraform-s3:
Expand All @@ -32,6 +25,36 @@ environments:
reconcileRate: 10
package: xpkg.upbound.io/upbound/provider-terraform
version: v1.0.5
- functions:
autoReady:
name: function-auto-ready
image: xpkg.crossplane.io/crossplane-contrib/function-auto-ready
tag: v0.6.0
functionGo:
name: function-go-templating
image: xpkg.crossplane.io/crossplane-contrib/function-go-templating
tag: v0.11.3
kcl:
name: function-kcl
image: xpkg.upbound.io/crossplane-contrib/function-kcl
tag: v0.12.0
patchAndTransform:
name: function-patch-and-transform
image: xpkg.upbound.io/crossplane-contrib/function-patch-and-transform
tag: v0.9.3
- configurations:
cloudConfig:
name: cloud-config
image: ghcr.io/stuttgart-things/crossplane/cloud-config
tag: v0.4.1
harvesterVM:
name: harvester-vm
image: ghcr.io/stuttgart-things/crossplane/harvester-vm
tag: v0.2.3
volumeClaim:
name: volume-claim
image: ghcr.io/stuttgart-things/crossplane/volume-claim
tag: v0.1.1
---
releases:
- name: crossplane-deployment
Expand All @@ -42,6 +65,32 @@ releases:
values:
- "values/crossplane.values.yaml.gotmpl"

{{- if .Values.deployFunctions }}
- name: terraform-functions
installed: true
needs:
- "{{ .Values.namespace }}/crossplane-deployment"
disableValidationOnInstall: true
namespace: {{ .Values.namespace }}
chart: stuttgart-things/sthings-cluster
version: 0.3.15
values:
- "values/crossplane-functions.values.yaml.gotmpl"
{{- end }}

{{- if .Values.deployFunctions }}
- name: terraform-configurations
installed: true
needs:
- "{{ .Values.namespace }}/crossplane-deployment"
disableValidationOnInstall: true
namespace: {{ .Values.namespace }}
chart: stuttgart-things/sthings-cluster
version: 0.3.15
values:
- "values/crossplane-configurations.values.yaml.gotmpl"
{{- end }}

{{- if .Values.deployTeraformProvider }}
- name: terraform-provider
installed: true
Expand All @@ -59,8 +108,6 @@ repositories:
- name: crossplane-stable
url: https://charts.crossplane.io/stable
oci: false
{{- if .Values.deployTeraformProvider }}
- name: stuttgart-things
url: ghcr.io/stuttgart-things
oci: true
{{- end }}
10 changes: 10 additions & 0 deletions cicd/values/crossplane-configurations.values.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
customresources:
{{- range $key, $fn := .Values.configurations }}
{{ $key }}:
apiVersion: pkg.crossplane.io/v1
kind: Configuration
metadata:
name: {{ $fn.name | required (printf "functions.%s.name is required" $key) }}
spec:
package: {{ printf "%s:%s" $fn.image $fn.tag | required (printf "functions.%s.image and tag are required" $key) }}
{{- end }}
11 changes: 11 additions & 0 deletions cicd/values/crossplane-functions.values.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
customresources:
{{- range $key, $fn := .Values.functions }}
{{ $key }}:
apiVersion: pkg.crossplane.io/v1beta1
kind: Function
metadata:
name: {{ $fn.name | required (printf "functions.%s.name is required" $key) }}
spec:
package: {{ printf "%s:%s" $fn.image $fn.tag | required (printf "functions.%s.image and tag are required" $key) }}
{{- end }}
8 changes: 0 additions & 8 deletions cicd/values/crossplane.values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,3 @@ configuration:
- {{ . }}
{{- end }}
{{- end }}

{{- if .Values.functions }}
function:
packages:
{{- range .Values.functions }}
- {{ . }}
{{- end }}
{{- end }}
Loading