Using gomplate as hydration template engine

This commit is contained in:
Richard Robert Reitz 2024-12-08 22:53:58 +01:00
parent d6e3f83043
commit c24ab8d976
45 changed files with 74 additions and 74 deletions

View file

@ -13,7 +13,7 @@ spec:
namespace: argocd namespace: argocd
source: source:
path: registry path: registry
repoURL: 'https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder' repoURL: 'https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder'
targetRevision: HEAD targetRevision: HEAD
project: default project: default
syncPolicy: syncPolicy:

View file

@ -13,7 +13,7 @@ spec:
namespace: argocd namespace: argocd
source: source:
path: stacks/core path: stacks/core
repoURL: 'https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder' repoURL: 'https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder'
targetRevision: HEAD targetRevision: HEAD
project: default project: default
syncPolicy: syncPolicy:

View file

@ -13,7 +13,7 @@ spec:
namespace: argocd namespace: argocd
source: source:
path: stacks/local-backup path: stacks/local-backup
repoURL: 'https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder' repoURL: 'https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder'
targetRevision: HEAD targetRevision: HEAD
project: default project: default
syncPolicy: syncPolicy:

View file

@ -13,7 +13,7 @@ spec:
namespace: argocd namespace: argocd
source: source:
path: stacks/monitoring path: stacks/monitoring
repoURL: 'https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder' repoURL: 'https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder'
targetRevision: HEAD targetRevision: HEAD
project: default project: default
syncPolicy: syncPolicy:

View file

@ -13,7 +13,7 @@ spec:
namespace: argocd namespace: argocd
source: source:
path: stacks/ref-implementation path: stacks/ref-implementation
repoURL: 'https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder' repoURL: 'https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder'
targetRevision: HEAD targetRevision: HEAD
project: default project: default
syncPolicy: syncPolicy:

View file

@ -13,7 +13,7 @@ spec:
namespace: argocd namespace: argocd
source: source:
path: stacks/second-cluster path: stacks/second-cluster
repoURL: 'https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder' repoURL: 'https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder'
targetRevision: HEAD targetRevision: HEAD
project: default project: default
syncPolicy: syncPolicy:

View file

@ -22,6 +22,6 @@ spec:
helm: helm:
valueFiles: valueFiles:
- $values/stacks/core/argocd/values.yaml - $values/stacks/core/argocd/values.yaml
- repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD
ref: values ref: values

View file

@ -1,5 +1,5 @@
global: global:
domain: {{ .Values.edfbuilderTargetDomain }} domain: {{]] .Env.DOMAIN [[}}
configs: configs:
params: params:

View file

@ -17,7 +17,7 @@ spec:
namespace: crossplane-system namespace: crossplane-system
source: source:
path: stacks/core/crossplane-compositions path: stacks/core/crossplane-compositions
repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD
directory: directory:
recurse: true recurse: true

View file

@ -17,5 +17,5 @@ spec:
namespace: crossplane-system namespace: crossplane-system
source: source:
path: stacks/core/crossplane-providers path: stacks/core/crossplane-providers
repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD

View file

@ -22,6 +22,6 @@ spec:
helm: helm:
valueFiles: valueFiles:
- $values/stacks/core/forgejo/values.yaml - $values/stacks/core/forgejo/values.yaml
- repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD
ref: values ref: values

View file

@ -25,8 +25,8 @@ gitea:
queue: queue:
TYPE: level TYPE: level
server: server:
DOMAIN: 'gitea.{{ .Values.edfbuilderTargetDomain }}' DOMAIN: 'gitea.{{]] .Env.DOMAIN [[}}'
ROOT_URL: 'https://gitea.{{ .Values.edfbuilderTargetDomain }}:443' ROOT_URL: 'https://gitea.{{]] .Env.DOMAIN [[}}:443'
service: service:
ssh: ssh:

View file

@ -11,7 +11,7 @@ spec:
destination: destination:
server: "https://kubernetes.default.svc" server: "https://kubernetes.default.svc"
source: source:
repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD
path: "stacks/core/ingress-apps" path: "stacks/core/ingress-apps"
project: default project: default

View file

@ -22,6 +22,6 @@ spec:
helm: helm:
valueFiles: valueFiles:
- $values/stacks/core/ingress-nginx/values.yaml - $values/stacks/core/ingress-nginx/values.yaml
- repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD
ref: values ref: values

View file

@ -17,10 +17,10 @@ spec:
valueFiles: valueFiles:
- $values/stacks/local-backup/minio/helm/values.yaml - $values/stacks/local-backup/minio/helm/values.yaml
chart: minio chart: minio
- repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD
ref: values ref: values
- repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD
path: "stacks/local-backup/minio/manifests" path: "stacks/local-backup/minio/manifests"
destination: destination:

View file

@ -17,7 +17,7 @@ spec:
valueFiles: valueFiles:
- $values/stacks/local-backup/velero/helm/values.yaml - $values/stacks/local-backup/velero/helm/values.yaml
chart: velero chart: velero
- repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD
ref: values ref: values
destination: destination:

View file

@ -10,7 +10,7 @@ metadata:
spec: spec:
project: default project: default
source: source:
repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD
path: "stacks/monitoring/kube-prometheus/dashboards" path: "stacks/monitoring/kube-prometheus/dashboards"
destination: destination:

View file

@ -25,6 +25,6 @@ spec:
helm: helm:
valueFiles: valueFiles:
- $values/stacks/monitoring/kube-prometheus/values.yaml - $values/stacks/monitoring/kube-prometheus/values.yaml
- repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD
ref: values ref: values

View file

@ -30,6 +30,6 @@ grafana:
grafana.ini: grafana.ini:
server: server:
domain: {{ .Values.edfbuilderTargetDomain }} domain: {{]] .Env.DOMAIN [[}}
root_url: "%(protocol)s://%(domain)s/grafana" root_url: "%(protocol)s://%(domain)s/grafana"
serve_from_sub_path: true serve_from_sub_path: true

View file

@ -11,5 +11,5 @@ grafana:
enabled: true enabled: true
ingressClassName: nginx ingressClassName: nginx
hosts: hosts:
- {{ .Values.edfbuilderTargetDomain }} - {{]] .Env.DOMAIN [[}}
path: /grafana path: /grafana

View file

@ -24,7 +24,7 @@ spec:
helm: helm:
valueFiles: valueFiles:
- $values/stacks/monitoring/loki/values.yaml - $values/stacks/monitoring/loki/values.yaml
- repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD
ref: values ref: values

View file

@ -24,6 +24,6 @@ spec:
helm: helm:
valueFiles: valueFiles:
- $values/stacks/monitoring/promtail/values.yaml - $values/stacks/monitoring/promtail/values.yaml
- repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD
ref: values ref: values

View file

@ -30,7 +30,7 @@ idpbuilder create --use-path-routing \
--package https://github.com/cnoe-io/stacks//ref-implementation --package https://github.com/cnoe-io/stacks//ref-implementation
``` ```
This will take ~6 minutes for everything to come up. To track the progress, you can go to the [ArgoCD UI](https://{{ .Values.edfbuilderTargetDomain }}:8443/argocd/applications). This will take ~6 minutes for everything to come up. To track the progress, you can go to the [ArgoCD UI](https://{{]] .Env.DOMAIN [[}}:8443/argocd/applications).
### What was installed? ### What was installed?
@ -47,15 +47,15 @@ The only package that cannot be removed this way is Keycloak because other packa
#### Accessing UIs #### Accessing UIs
- Argo CD: https://{{ .Values.edfbuilderTargetDomain }}:8443/argocd - Argo CD: https://{{]] .Env.DOMAIN [[}}:8443/argocd
- Argo Workflows: https://{{ .Values.edfbuilderTargetDomain }}:8443/argo-workflows - Argo Workflows: https://{{]] .Env.DOMAIN [[}}:8443/argo-workflows
- Backstage: https://{{ .Values.edfbuilderTargetDomain }}:8443/ - Backstage: https://{{]] .Env.DOMAIN [[}}:8443/
- Gitea: https://{{ .Values.edfbuilderTargetDomain }}:8443/gitea - Gitea: https://{{]] .Env.DOMAIN [[}}:8443/gitea
- Keycloak: https://{{ .Values.edfbuilderTargetDomain }}:8443/keycloak/admin/master/console/ - Keycloak: https://{{]] .Env.DOMAIN [[}}:8443/keycloak/admin/master/console/
# Using it # Using it
For this example, we will walk through a few demonstrations. Once applications are ready, go to the [backstage URL](https://{{ .Values.edfbuilderTargetDomain }}:8443). For this example, we will walk through a few demonstrations. Once applications are ready, go to the [backstage URL](https://{{]] .Env.DOMAIN [[}}:8443).
Click on the Sign-In button, you will be asked to log into the Keycloak instance. There are two users set up in this Click on the Sign-In button, you will be asked to log into the Keycloak instance. There are two users set up in this
configuration, and their password can be retrieved with the following command: configuration, and their password can be retrieved with the following command:
@ -70,7 +70,7 @@ Both users use the same password retrieved above.
If you want to create a new user or change existing users: If you want to create a new user or change existing users:
1. Go to the [Keycloak UI](https://{{ .Values.edfbuilderTargetDomain }}:8443/keycloak/admin/master/console/). 1. Go to the [Keycloak UI](https://{{]] .Env.DOMAIN [[}}:8443/keycloak/admin/master/console/).
Login with the username `cnoe-admin`. Password is the `KEYCLOAK_ADMIN_PASSWORD` field from the command above. Login with the username `cnoe-admin`. Password is the `KEYCLOAK_ADMIN_PASSWORD` field from the command above.
2. Select `cnoe` from the realms drop down menu. 2. Select `cnoe` from the realms drop down menu.
3. Select users tab. 3. Select users tab.
@ -97,9 +97,9 @@ You can click on the ArgoCD Application name to see more details.
### What just happened? ### What just happened?
1. Backstage created [a git repository](https://{{ .Values.edfbuilderTargetDomain }}:8443/gitea/giteaAdmin/demo), then pushed templated contents to it. 1. Backstage created [a git repository](https://{{]] .Env.DOMAIN [[}}:8443/gitea/giteaAdmin/demo), then pushed templated contents to it.
2. Backstage created [an ArgoCD Application](https://{{ .Values.edfbuilderTargetDomain }}:8443/argocd/applications/argocd/demo?) and pointed it to the git repository. 2. Backstage created [an ArgoCD Application](https://{{]] .Env.DOMAIN [[}}:8443/argocd/applications/argocd/demo?) and pointed it to the git repository.
3. Backstage registered the application as [a component](https://{{ .Values.edfbuilderTargetDomain }}:8443/gitea/giteaAdmin/demo/src/branch/main/catalog-info.yaml) in Backstage. 3. Backstage registered the application as [a component](https://{{]] .Env.DOMAIN [[}}:8443/gitea/giteaAdmin/demo/src/branch/main/catalog-info.yaml) in Backstage.
4. ArgoCD deployed the manifests stored in the repo to the cluster. 4. ArgoCD deployed the manifests stored in the repo to the cluster.
5. Backstage retrieved application health from ArgoCD API, then displayed it. 5. Backstage retrieved application health from ArgoCD API, then displayed it.

View file

@ -10,7 +10,7 @@ metadata:
spec: spec:
project: default project: default
source: source:
repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD
path: "stacks/ref-implementation/argo-workflows/manifests/dev" path: "stacks/ref-implementation/argo-workflows/manifests/dev"
destination: destination:

View file

@ -7,14 +7,14 @@ data:
config: | config: |
sso: sso:
insecureSkipVerify: true insecureSkipVerify: true
issuer: https://{{ .Values.edfbuilderTargetDomain }}/keycloak/realms/cnoe issuer: https://{{]] .Env.DOMAIN [[}}/keycloak/realms/cnoe
clientId: clientId:
name: keycloak-oidc name: keycloak-oidc
key: client-id key: client-id
clientSecret: clientSecret:
name: keycloak-oidc name: keycloak-oidc
key: secret-key key: secret-key
redirectUrl: https://{{ .Values.edfbuilderTargetDomain }}:443/argo-workflows/oauth2/callback redirectUrl: https://{{]] .Env.DOMAIN [[}}:443/argo-workflows/oauth2/callback
rbac: rbac:
enabled: true enabled: true
scopes: scopes:

View file

@ -10,7 +10,7 @@ metadata:
spec: spec:
project: default project: default
source: source:
repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD
path: "stacks/ref-implementation/backstage-templates/entities" path: "stacks/ref-implementation/backstage-templates/entities"
directory: directory:

View file

@ -20,7 +20,7 @@ metadata:
backstage.io/kubernetes-namespace: default backstage.io/kubernetes-namespace: default
argocd/app-name: ${{values.name | dump}} argocd/app-name: ${{values.name | dump}}
links: links:
- url: https://gitea.{{ .Values.edfbuilderTargetDomain }}:443 - url: https://gitea.{{]] .Env.DOMAIN [[}}:443
title: Repo URL title: Repo URL
icon: github icon: github
spec: spec:

View file

@ -100,7 +100,7 @@ spec:
input: input:
description: This is an example app description: This is an example app
# Hard coded value for this demo purposes only. # Hard coded value for this demo purposes only.
repoUrl: gitea.{{ .Values.edfbuilderTargetDomain }}:443/?repo=${{parameters.name}} repoUrl: gitea.{{]] .Env.DOMAIN [[}}:443/?repo=${{parameters.name}}
defaultBranch: main defaultBranch: main
- id: create-argocd-app - id: create-argocd-app
name: Create ArgoCD App name: Create ArgoCD App
@ -111,7 +111,7 @@ spec:
argoInstance: in-cluster argoInstance: in-cluster
projectName: default projectName: default
# necessary until we generate our own cert # necessary until we generate our own cert
repoUrl: https://gitea.{{ .Values.edfbuilderTargetDomain }}:443/giteaAdmin/${{parameters.name}} repoUrl: https://gitea.{{]] .Env.DOMAIN [[}}:443/giteaAdmin/${{parameters.name}}
path: "kustomize/base" path: "kustomize/base"
- id: register - id: register
name: Register name: Register

View file

@ -14,7 +14,7 @@ metadata:
apache-spark.cnoe.io/label-selector: env=dev,entity-id=${{values.name}} apache-spark.cnoe.io/label-selector: env=dev,entity-id=${{values.name}}
apache-spark.cnoe.io/cluster-name: local apache-spark.cnoe.io/cluster-name: local
links: links:
- url: https://gitea.{{ .Values.edfbuilderTargetDomain }}:443 - url: https://gitea.{{]] .Env.DOMAIN [[}}:443
title: Repo URL title: Repo URL
icon: github icon: github
spec: spec:

View file

@ -35,7 +35,7 @@ spec:
input: input:
description: This is an example app description: This is an example app
# Hard coded value for this demo purposes only. # Hard coded value for this demo purposes only.
repoUrl: gitea.{{ .Values.edfbuilderTargetDomain }}:443/?repo=${{parameters.name}} repoUrl: gitea.{{]] .Env.DOMAIN [[}}:443/?repo=${{parameters.name}}
defaultBranch: main defaultBranch: main
- id: create-argocd-app - id: create-argocd-app
name: Create ArgoCD App name: Create ArgoCD App
@ -46,7 +46,7 @@ spec:
argoInstance: in-cluster argoInstance: in-cluster
projectName: default projectName: default
# necessary until we generate our own cert # necessary until we generate our own cert
repoUrl: https://gitea.{{ .Values.edfbuilderTargetDomain }}:443/giteaAdmin/${{parameters.name}} repoUrl: https://gitea.{{]] .Env.DOMAIN [[}}:443/giteaAdmin/${{parameters.name}}
path: "manifests" path: "manifests"
- id: register - id: register
name: Register name: Register

View file

@ -10,7 +10,7 @@ metadata:
backstage.io/kubernetes-namespace: default backstage.io/kubernetes-namespace: default
argocd/app-name: ${{values.name | dump}} argocd/app-name: ${{values.name | dump}}
links: links:
- url: https://gitea.{{ .Values.edfbuilderTargetDomain }}:443 - url: https://gitea.{{]] .Env.DOMAIN [[}}:443
title: Repo URL title: Repo URL
icon: github icon: github
spec: spec:

View file

@ -31,7 +31,7 @@ spec:
input: input:
description: This is an example app description: This is an example app
# Hard coded value for this demo purposes only. # Hard coded value for this demo purposes only.
repoUrl: gitea.{{ .Values.edfbuilderTargetDomain }}:443/?repo=${{parameters.name}} repoUrl: gitea.{{]] .Env.DOMAIN [[}}:443/?repo=${{parameters.name}}
defaultBranch: main defaultBranch: main
- id: create-argocd-app - id: create-argocd-app
name: Create ArgoCD App name: Create ArgoCD App
@ -42,7 +42,7 @@ spec:
argoInstance: in-cluster argoInstance: in-cluster
projectName: default projectName: default
# necessary until we generate our own cert # necessary until we generate our own cert
repoUrl: https://gitea.{{ .Values.edfbuilderTargetDomain }}:443/giteaAdmin/${{parameters.name}} repoUrl: https://gitea.{{]] .Env.DOMAIN [[}}:443/giteaAdmin/${{parameters.name}}
path: "manifests" path: "manifests"
- id: register - id: register
name: Register name: Register

View file

@ -9,7 +9,7 @@ metadata:
backstage.io/kubernetes-label-selector: 'entity-id=${{ values.name }}' backstage.io/kubernetes-label-selector: 'entity-id=${{ values.name }}'
backstage.io/kubernetes-namespace: gitea backstage.io/kubernetes-namespace: gitea
links: links:
- url: https://gitea.{{ .Values.edfbuilderTargetDomain }}:443 - url: https://gitea.{{]] .Env.DOMAIN [[}}:443
title: Repo URL title: Repo URL
icon: git icon: git
spec: spec:
@ -26,7 +26,7 @@ metadata:
annotations: annotations:
backstage.io/techdocs-ref: dir:. backstage.io/techdocs-ref: dir:.
links: links:
- url: https://gitea.{{ .Values.edfbuilderTargetDomain }}:443 - url: https://gitea.{{]] .Env.DOMAIN [[}}:443
title: Gitea Repo title: Gitea Repo
icon: git icon: git
spec: spec:

View file

@ -33,7 +33,7 @@ spec:
name: Publish to Gitea name: Publish to Gitea
action: publish:gitea action: publish:gitea
input: input:
repoUrl: gitea.{{ .Values.edfbuilderTargetDomain }}:443/?repo=${{parameters.name}} repoUrl: gitea.{{]] .Env.DOMAIN [[}}:443/?repo=${{parameters.name}}
description: This is the repository for ${{ parameters.name }} description: This is the repository for ${{ parameters.name }}
sourcePath: ./skeleton sourcePath: ./skeleton
defaultBranch: main defaultBranch: main

View file

@ -10,7 +10,7 @@ metadata:
spec: spec:
project: default project: default
source: source:
repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD
path: "stacks/ref-implementation/backstage/manifests" path: "stacks/ref-implementation/backstage/manifests"
destination: destination:

View file

@ -70,7 +70,7 @@ data:
app-config.yaml: | app-config.yaml: |
app: app:
title: CNOE Backstage title: CNOE Backstage
baseUrl: https://{{ .Values.edfbuilderTargetDomain }}:443 baseUrl: https://{{]] .Env.DOMAIN [[}}:443
organization: organization:
name: CNOE name: CNOE
backend: backend:
@ -80,7 +80,7 @@ data:
# auth: # auth:
# keys: # keys:
# - secret: ${BACKEND_SECRET} # - secret: ${BACKEND_SECRET}
baseUrl: https://{{ .Values.edfbuilderTargetDomain }}:443 baseUrl: https://{{]] .Env.DOMAIN [[}}:443
listen: listen:
port: 7007 port: 7007
# Uncomment the following host directive to bind to specific interfaces # Uncomment the following host directive to bind to specific interfaces
@ -90,7 +90,7 @@ data:
# Content-Security-Policy directives follow the Helmet format: https://helmetjs.github.io/#reference # Content-Security-Policy directives follow the Helmet format: https://helmetjs.github.io/#reference
# Default Helmet Content-Security-Policy values can be removed by setting the key to false # Default Helmet Content-Security-Policy values can be removed by setting the key to false
cors: cors:
origin: https://{{ .Values.edfbuilderTargetDomain }}:443 origin: https://{{]] .Env.DOMAIN [[}}:443
methods: [GET, HEAD, PATCH, POST, PUT, DELETE] methods: [GET, HEAD, PATCH, POST, PUT, DELETE]
credentials: true credentials: true
database: database:
@ -106,12 +106,12 @@ data:
integrations: integrations:
gitea: gitea:
- baseUrl: https://gitea.{{ .Values.edfbuilderTargetDomain }}:443 - baseUrl: https://gitea.{{]] .Env.DOMAIN [[}}:443
host: gitea.{{ .Values.edfbuilderTargetDomain }}:443 host: gitea.{{]] .Env.DOMAIN [[}}:443
username: ${GITEA_USERNAME} username: ${GITEA_USERNAME}
password: ${GITEA_PASSWORD} password: ${GITEA_PASSWORD}
- baseUrl: https://gitea.{{ .Values.edfbuilderTargetDomain }} - baseUrl: https://gitea.{{]] .Env.DOMAIN [[}}
host: gitea.{{ .Values.edfbuilderTargetDomain }} host: gitea.{{]] .Env.DOMAIN [[}}
username: ${GITEA_USERNAME} username: ${GITEA_USERNAME}
password: ${GITEA_PASSWORD} password: ${GITEA_PASSWORD}
# github: # github:
@ -165,7 +165,7 @@ data:
locations: locations:
# Examples from a public GitHub repository. # Examples from a public GitHub repository.
- type: url - type: url
target: https://gitea.{{ .Values.edfbuilderTargetDomain }}:443/giteaAdmin/edfbuilder/raw/branch/main/stacks/ref-implementation/backstage-templates/entities/catalog-info.yaml target: https://gitea.{{]] .Env.DOMAIN [[}}:443/giteaAdmin/edfbuilder/raw/branch/main/stacks/ref-implementation/backstage-templates/entities/catalog-info.yaml
rules: rules:
- allow: [Component, System, API, Resource, Location, Template, User, Group] - allow: [Component, System, API, Resource, Location, Template, User, Group]
kubernetes: kubernetes:
@ -180,7 +180,7 @@ data:
- type: 'config' - type: 'config'
instances: instances:
- name: in-cluster - name: in-cluster
url: https://{{ .Values.edfbuilderTargetDomain }}:443/argocd url: https://{{]] .Env.DOMAIN [[}}:443/argocd
username: admin username: admin
password: ${ARGOCD_ADMIN_PASSWORD} password: ${ARGOCD_ADMIN_PASSWORD}
argoWorkflows: argoWorkflows:
@ -374,14 +374,14 @@ spec:
template: template:
engineVersion: v2 engineVersion: v2
data: data:
BACKSTAGE_FRONTEND_URL: https://{{ .Values.edfbuilderTargetDomain }}:443/backstage BACKSTAGE_FRONTEND_URL: https://{{]] .Env.DOMAIN [[}}:443/backstage
POSTGRES_HOST: postgresql.backstage.svc.cluster.local POSTGRES_HOST: postgresql.backstage.svc.cluster.local
POSTGRES_PORT: '5432' POSTGRES_PORT: '5432'
POSTGRES_DB: backstage POSTGRES_DB: backstage
POSTGRES_USER: backstage POSTGRES_USER: backstage
POSTGRES_PASSWORD: "{{.POSTGRES_PASSWORD}}" POSTGRES_PASSWORD: "{{.POSTGRES_PASSWORD}}"
ARGO_WORKFLOWS_URL: https://{{ .Values.edfbuilderTargetDomain }}:443/argo-workflows ARGO_WORKFLOWS_URL: https://{{]] .Env.DOMAIN [[}}:443/argo-workflows
KEYCLOAK_NAME_METADATA: https://{{ .Values.edfbuilderTargetDomain }}:443/keycloak/realms/cnoe/.well-known/openid-configuration KEYCLOAK_NAME_METADATA: https://{{]] .Env.DOMAIN [[}}:443/keycloak/realms/cnoe/.well-known/openid-configuration
KEYCLOAK_CLIENT_SECRET: "{{.BACKSTAGE_CLIENT_SECRET}}" KEYCLOAK_CLIENT_SECRET: "{{.BACKSTAGE_CLIENT_SECRET}}"
ARGOCD_AUTH_TOKEN: "argocd.token={{.ARGOCD_SESSION_TOKEN}}" ARGOCD_AUTH_TOKEN: "argocd.token={{.ARGOCD_SESSION_TOKEN}}"
ARGO_CD_URL: 'https://argocd-server.argocd.svc.cluster.local/api/v1/' ARGO_CD_URL: 'https://argocd-server.argocd.svc.cluster.local/api/v1/'

View file

@ -69,5 +69,5 @@ From here on, you can follow the instructions in the [README](./README.md) file.
echo https://${CODESPACE_NAME}-8080.${GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN} echo https://${CODESPACE_NAME}-8080.${GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}
``` ```
For example, if you need to access Argo Workflows UI, instead of going to `https://{{ .Values.edfbuilderTargetDomain }}:8443/argo`, For example, if you need to access Argo Workflows UI, instead of going to `https://{{]] .Env.DOMAIN [[}}:8443/argo`,
you go to `https://${CODESPACE_NAME}-8080.${GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}/argo` you go to `https://${CODESPACE_NAME}-8080.${GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}/argo`

View file

@ -12,7 +12,7 @@ spec:
namespace: external-secrets namespace: external-secrets
server: "https://kubernetes.default.svc" server: "https://kubernetes.default.svc"
source: source:
repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD
path: "stacks/ref-implementation/external-secrets/manifests" path: "stacks/ref-implementation/external-secrets/manifests"
project: default project: default

View file

@ -10,7 +10,7 @@ metadata:
spec: spec:
project: default project: default
source: source:
repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD
path: "stacks/ref-implementation/fibonacci-app" path: "stacks/ref-implementation/fibonacci-app"
destination: destination:

View file

@ -24,6 +24,6 @@ spec:
helm: helm:
valueFiles: valueFiles:
- $values/stacks/ref-implementation/forgejo-runner/values.yaml - $values/stacks/ref-implementation/forgejo-runner/values.yaml
- repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD
ref: values ref: values

View file

@ -12,7 +12,7 @@ spec:
namespace: keycloak namespace: keycloak
server: "https://kubernetes.default.svc" server: "https://kubernetes.default.svc"
source: source:
repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD
path: "stacks/ref-implementation/keycloak/manifests" path: "stacks/ref-implementation/keycloak/manifests"
project: default project: default

View file

@ -83,7 +83,7 @@ data:
proxy=edge proxy=edge
# hostname configuration # hostname configuration
hostname={{ .Values.edfbuilderTargetDomain }} hostname={{]] .Env.DOMAIN [[}}
http-relative-path=keycloak http-relative-path=keycloak
# the admin url requires its own configuration to reflect correct url # the admin url requires its own configuration to reflect correct url

View file

@ -145,7 +145,7 @@ data:
"rootUrl": "", "rootUrl": "",
"baseUrl": "", "baseUrl": "",
"redirectUris": [ "redirectUris": [
"https://{{ .Values.edfbuilderTargetDomain }}:443/argo-workflows/oauth2/callback" "https://{{]] .Env.DOMAIN [[}}:443/argo-workflows/oauth2/callback"
], ],
"webOrigins": [ "webOrigins": [
"/*" "/*"
@ -174,7 +174,7 @@ data:
"rootUrl": "", "rootUrl": "",
"baseUrl": "", "baseUrl": "",
"redirectUris": [ "redirectUris": [
"https://{{ .Values.edfbuilderTargetDomain }}:443/api/auth/keycloak-oidc/handler/frame" "https://{{]] .Env.DOMAIN [[}}:443/api/auth/keycloak-oidc/handler/frame"
], ],
"webOrigins": [ "webOrigins": [
"/*" "/*"

View file

@ -24,7 +24,7 @@ spec:
helm: helm:
valueFiles: valueFiles:
- $values/stacks/ref-implementation/openbao/values.yaml - $values/stacks/ref-implementation/openbao/values.yaml
- repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD
ref: values ref: values
ignoreDifferences: ignoreDifferences:

View file

@ -19,5 +19,5 @@ spec:
namespace: crossplane-system namespace: crossplane-system
source: source:
path: stacks/second-cluster/create-new-cluster-guestbook path: stacks/second-cluster/create-new-cluster-guestbook
repoURL: https://gitea.{{ .Values.edfbuilderTargetDomain }}/giteaAdmin/edfbuilder repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder
targetRevision: HEAD targetRevision: HEAD