diff --git a/template/edfbuilder.yaml b/template/edfbuilder.yaml index 9b970f1..4e9fabd 100644 --- a/template/edfbuilder.yaml +++ b/template/edfbuilder.yaml @@ -13,7 +13,7 @@ spec: namespace: argocd source: path: registry - repoURL: 'https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder' + repoURL: 'https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder' targetRevision: HEAD project: default syncPolicy: diff --git a/template/registry/core.yaml b/template/registry/core.yaml index 9a5384d..3a722ac 100644 --- a/template/registry/core.yaml +++ b/template/registry/core.yaml @@ -13,7 +13,7 @@ spec: namespace: argocd source: path: stacks/core - repoURL: 'https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder' + repoURL: 'https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder' targetRevision: HEAD project: default syncPolicy: diff --git a/template/registry/local-backup.yaml b/template/registry/local-backup.yaml index 217ef55..a2ac46d 100644 --- a/template/registry/local-backup.yaml +++ b/template/registry/local-backup.yaml @@ -13,7 +13,7 @@ spec: namespace: argocd source: path: stacks/local-backup - repoURL: 'https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder' + repoURL: 'https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder' targetRevision: HEAD project: default syncPolicy: diff --git a/template/registry/monitoring.yaml b/template/registry/monitoring.yaml index dfbb50e..c9826bc 100644 --- a/template/registry/monitoring.yaml +++ b/template/registry/monitoring.yaml @@ -13,7 +13,7 @@ spec: namespace: argocd source: path: stacks/monitoring - repoURL: 'https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder' + repoURL: 'https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder' targetRevision: HEAD project: default syncPolicy: diff --git a/template/registry/ref-implementation.yaml b/template/registry/ref-implementation.yaml index 828c086..3a6cf1a 100644 --- a/template/registry/ref-implementation.yaml +++ b/template/registry/ref-implementation.yaml @@ -13,7 +13,7 @@ spec: namespace: argocd source: path: stacks/ref-implementation - repoURL: 'https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder' + repoURL: 'https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder' targetRevision: HEAD project: default syncPolicy: diff --git a/template/registry/second-cluster.yaml b/template/registry/second-cluster.yaml index 5416cd5..98ddd40 100644 --- a/template/registry/second-cluster.yaml +++ b/template/registry/second-cluster.yaml @@ -13,7 +13,7 @@ spec: namespace: argocd source: path: stacks/second-cluster - repoURL: 'https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder' + repoURL: 'https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder' targetRevision: HEAD project: default syncPolicy: diff --git a/template/stacks/core/argocd.yaml b/template/stacks/core/argocd.yaml index 8d7425a..a79ef6c 100644 --- a/template/stacks/core/argocd.yaml +++ b/template/stacks/core/argocd.yaml @@ -22,6 +22,6 @@ spec: helm: valueFiles: - $values/stacks/core/argocd/values.yaml - - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + - repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD ref: values diff --git a/template/stacks/core/argocd/values.yaml b/template/stacks/core/argocd/values.yaml index c9231cc..3fb3ddf 100644 --- a/template/stacks/core/argocd/values.yaml +++ b/template/stacks/core/argocd/values.yaml @@ -1,5 +1,5 @@ global: - domain: {{]] .Env.DOMAIN [[}} + domain: {{{ .Env.DOMAIN }}} configs: params: diff --git a/template/stacks/core/crossplane-compositions.yaml b/template/stacks/core/crossplane-compositions.yaml index b105a31..f6a6bc0 100644 --- a/template/stacks/core/crossplane-compositions.yaml +++ b/template/stacks/core/crossplane-compositions.yaml @@ -17,7 +17,7 @@ spec: namespace: crossplane-system source: path: stacks/core/crossplane-compositions - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD directory: recurse: true diff --git a/template/stacks/core/crossplane-providers.yaml b/template/stacks/core/crossplane-providers.yaml index 2ff859e..760c33e 100644 --- a/template/stacks/core/crossplane-providers.yaml +++ b/template/stacks/core/crossplane-providers.yaml @@ -1,4 +1,4 @@ -{{]] if eq .Env.CLUSTER_TYPE "kind" [[}} +{{{ if eq .Env.CLUSTER_TYPE "kind" }}} apiVersion: argoproj.io/v1alpha1 kind: Application metadata: @@ -18,6 +18,6 @@ spec: namespace: crossplane-system source: path: stacks/core/crossplane-providers - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD -{{]] end [[}} +{{{ end }}} diff --git a/template/stacks/core/forgejo.yaml b/template/stacks/core/forgejo.yaml index 6b73bc1..c8328c0 100644 --- a/template/stacks/core/forgejo.yaml +++ b/template/stacks/core/forgejo.yaml @@ -22,6 +22,6 @@ spec: helm: valueFiles: - $values/stacks/core/forgejo/values.yaml - - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + - repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD ref: values diff --git a/template/stacks/core/forgejo/values.yaml b/template/stacks/core/forgejo/values.yaml index 5baa85d..bfcd384 100644 --- a/template/stacks/core/forgejo/values.yaml +++ b/template/stacks/core/forgejo/values.yaml @@ -25,8 +25,8 @@ gitea: queue: TYPE: level server: - DOMAIN: 'gitea.{{]] .Env.DOMAIN [[}}' - ROOT_URL: 'https://gitea.{{]] .Env.DOMAIN [[}}:443' + DOMAIN: 'gitea.{{{ .Env.DOMAIN }}}' + ROOT_URL: 'https://gitea.{{{ .Env.DOMAIN }}}:443' service: ssh: diff --git a/template/stacks/core/ingress-apps.yaml b/template/stacks/core/ingress-apps.yaml index 4c07d83..ae66d9f 100644 --- a/template/stacks/core/ingress-apps.yaml +++ b/template/stacks/core/ingress-apps.yaml @@ -11,7 +11,7 @@ spec: destination: server: "https://kubernetes.default.svc" source: - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD path: "stacks/core/ingress-apps" project: default diff --git a/template/stacks/core/ingress-nginx.yaml b/template/stacks/core/ingress-nginx.yaml index ac1a8b3..4e1f1a8 100644 --- a/template/stacks/core/ingress-nginx.yaml +++ b/template/stacks/core/ingress-nginx.yaml @@ -22,6 +22,6 @@ spec: helm: valueFiles: - $values/stacks/core/ingress-nginx/values.yaml - - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + - repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD ref: values diff --git a/template/stacks/core/ingress-nginx/values.yaml b/template/stacks/core/ingress-nginx/values.yaml index b823552..a1e5923 100644 --- a/template/stacks/core/ingress-nginx/values.yaml +++ b/template/stacks/core/ingress-nginx/values.yaml @@ -15,7 +15,7 @@ controller: proxy-buffer-size: 32k use-forwarded-headers: "true" -{{]] if eq .Env.CLUSTER_TYPE "kind" [[}} +{{{ if eq .Env.CLUSTER_TYPE "kind" }}} hostPort: enabled: true terminationGracePeriodSeconds: 0 @@ -38,4 +38,4 @@ controller: publish-status-address: localhost # added for idpbuilder enable-ssl-passthrough: "" -{{]] end [[}} +{{{ end }}} diff --git a/template/stacks/local-backup/minio.yaml b/template/stacks/local-backup/minio.yaml index 5ec2f32..5163ef0 100644 --- a/template/stacks/local-backup/minio.yaml +++ b/template/stacks/local-backup/minio.yaml @@ -17,10 +17,10 @@ spec: valueFiles: - $values/stacks/local-backup/minio/helm/values.yaml chart: minio - - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + - repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD ref: values - - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + - repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD path: "stacks/local-backup/minio/manifests" destination: diff --git a/template/stacks/local-backup/velero.yaml b/template/stacks/local-backup/velero.yaml index a6fb44c..a798f63 100644 --- a/template/stacks/local-backup/velero.yaml +++ b/template/stacks/local-backup/velero.yaml @@ -17,7 +17,7 @@ spec: valueFiles: - $values/stacks/local-backup/velero/helm/values.yaml chart: velero - - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + - repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD ref: values destination: diff --git a/template/stacks/monitoring/grafana-dashboards.yaml b/template/stacks/monitoring/grafana-dashboards.yaml index 00b66d8..f27e669 100644 --- a/template/stacks/monitoring/grafana-dashboards.yaml +++ b/template/stacks/monitoring/grafana-dashboards.yaml @@ -10,7 +10,7 @@ metadata: spec: project: default source: - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD path: "stacks/monitoring/kube-prometheus/dashboards" destination: diff --git a/template/stacks/monitoring/kube-prometheus.yaml b/template/stacks/monitoring/kube-prometheus.yaml index fca9e3e..d526415 100644 --- a/template/stacks/monitoring/kube-prometheus.yaml +++ b/template/stacks/monitoring/kube-prometheus.yaml @@ -25,6 +25,6 @@ spec: helm: valueFiles: - $values/stacks/monitoring/kube-prometheus/values.yaml - - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + - repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD ref: values diff --git a/template/stacks/monitoring/kube-prometheus/values.yaml b/template/stacks/monitoring/kube-prometheus/values.yaml index f183e88..0d2cd88 100644 --- a/template/stacks/monitoring/kube-prometheus/values.yaml +++ b/template/stacks/monitoring/kube-prometheus/values.yaml @@ -30,6 +30,6 @@ grafana: grafana.ini: server: - domain: {{]] .Env.DOMAIN [[}} + domain: {{{ .Env.DOMAIN }}} root_url: "%(protocol)s://%(domain)s/grafana" serve_from_sub_path: true \ No newline at end of file diff --git a/template/stacks/monitoring/kube-prometheus/values_test_osc.yaml b/template/stacks/monitoring/kube-prometheus/values_test_osc.yaml index cf32ce4..21e8a8b 100644 --- a/template/stacks/monitoring/kube-prometheus/values_test_osc.yaml +++ b/template/stacks/monitoring/kube-prometheus/values_test_osc.yaml @@ -11,5 +11,5 @@ grafana: enabled: true ingressClassName: nginx hosts: - - {{]] .Env.DOMAIN [[}} + - {{{ .Env.DOMAIN }}} path: /grafana \ No newline at end of file diff --git a/template/stacks/monitoring/loki.yaml b/template/stacks/monitoring/loki.yaml index 7c5b6dd..8494955 100644 --- a/template/stacks/monitoring/loki.yaml +++ b/template/stacks/monitoring/loki.yaml @@ -24,7 +24,7 @@ spec: helm: valueFiles: - $values/stacks/monitoring/loki/values.yaml - - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + - repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD ref: values diff --git a/template/stacks/monitoring/promtail.yaml b/template/stacks/monitoring/promtail.yaml index c9a00cf..bc4682d 100644 --- a/template/stacks/monitoring/promtail.yaml +++ b/template/stacks/monitoring/promtail.yaml @@ -24,6 +24,6 @@ spec: helm: valueFiles: - $values/stacks/monitoring/promtail/values.yaml - - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + - repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD ref: values \ No newline at end of file diff --git a/template/stacks/ref-implementation/README.md b/template/stacks/ref-implementation/README.md index b6e1d35..66d887e 100644 --- a/template/stacks/ref-implementation/README.md +++ b/template/stacks/ref-implementation/README.md @@ -30,7 +30,7 @@ idpbuilder create --use-path-routing \ --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://{{]] .Env.DOMAIN [[}}: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? @@ -47,15 +47,15 @@ The only package that cannot be removed this way is Keycloak because other packa #### Accessing UIs -- Argo CD: https://{{]] .Env.DOMAIN [[}}:8443/argocd -- Argo Workflows: https://{{]] .Env.DOMAIN [[}}:8443/argo-workflows -- Backstage: https://{{]] .Env.DOMAIN [[}}:8443/ -- Gitea: https://{{]] .Env.DOMAIN [[}}:8443/gitea -- Keycloak: https://{{]] .Env.DOMAIN [[}}:8443/keycloak/admin/master/console/ +- Argo CD: https://{{{ .Env.DOMAIN }}}:8443/argocd +- Argo Workflows: https://{{{ .Env.DOMAIN }}}:8443/argo-workflows +- Backstage: https://{{{ .Env.DOMAIN }}}:8443/ +- Gitea: https://{{{ .Env.DOMAIN }}}:8443/gitea +- Keycloak: https://{{{ .Env.DOMAIN }}}:8443/keycloak/admin/master/console/ # Using it -For this example, we will walk through a few demonstrations. Once applications are ready, go to the [backstage URL](https://{{]] .Env.DOMAIN [[}}: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 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: -1. Go to the [Keycloak UI](https://{{]] .Env.DOMAIN [[}}: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. 2. Select `cnoe` from the realms drop down menu. 3. Select users tab. @@ -97,9 +97,9 @@ You can click on the ArgoCD Application name to see more details. ### What just happened? -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://{{]] .Env.DOMAIN [[}}:8443/argocd/applications/argocd/demo?) and pointed it to the git repository. -3. Backstage registered the application as [a component](https://{{]] .Env.DOMAIN [[}}:8443/gitea/giteaAdmin/demo/src/branch/main/catalog-info.yaml) in Backstage. +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://{{{ .Env.DOMAIN }}}:8443/argocd/applications/argocd/demo?) and pointed it to the git repository. +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. 5. Backstage retrieved application health from ArgoCD API, then displayed it. diff --git a/template/stacks/ref-implementation/argo-workflows.yaml b/template/stacks/ref-implementation/argo-workflows.yaml index 43928d0..93cc7b1 100644 --- a/template/stacks/ref-implementation/argo-workflows.yaml +++ b/template/stacks/ref-implementation/argo-workflows.yaml @@ -10,7 +10,7 @@ metadata: spec: project: default source: - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD path: "stacks/ref-implementation/argo-workflows/manifests/dev" destination: diff --git a/template/stacks/ref-implementation/argo-workflows/manifests/dev/patches/cm-argo-workflows.yaml b/template/stacks/ref-implementation/argo-workflows/manifests/dev/patches/cm-argo-workflows.yaml index 3f2d5cb..03e31c2 100644 --- a/template/stacks/ref-implementation/argo-workflows/manifests/dev/patches/cm-argo-workflows.yaml +++ b/template/stacks/ref-implementation/argo-workflows/manifests/dev/patches/cm-argo-workflows.yaml @@ -7,14 +7,14 @@ data: config: | sso: insecureSkipVerify: true - issuer: https://{{]] .Env.DOMAIN [[}}/keycloak/realms/cnoe + issuer: https://{{{ .Env.DOMAIN }}}/keycloak/realms/cnoe clientId: name: keycloak-oidc key: client-id clientSecret: name: keycloak-oidc key: secret-key - redirectUrl: https://{{]] .Env.DOMAIN [[}}:443/argo-workflows/oauth2/callback + redirectUrl: https://{{{ .Env.DOMAIN }}}:443/argo-workflows/oauth2/callback rbac: enabled: true scopes: diff --git a/template/stacks/ref-implementation/backstage-templates.yaml b/template/stacks/ref-implementation/backstage-templates.yaml index a635a7f..adb5f08 100644 --- a/template/stacks/ref-implementation/backstage-templates.yaml +++ b/template/stacks/ref-implementation/backstage-templates.yaml @@ -10,7 +10,7 @@ metadata: spec: project: default source: - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD path: "stacks/ref-implementation/backstage-templates/entities" directory: diff --git a/template/stacks/ref-implementation/backstage-templates/entities/app-with-bucket/skeleton/catalog-info.yaml b/template/stacks/ref-implementation/backstage-templates/entities/app-with-bucket/skeleton/catalog-info.yaml index 2e2b83f..bc52aa8 100644 --- a/template/stacks/ref-implementation/backstage-templates/entities/app-with-bucket/skeleton/catalog-info.yaml +++ b/template/stacks/ref-implementation/backstage-templates/entities/app-with-bucket/skeleton/catalog-info.yaml @@ -20,7 +20,7 @@ metadata: backstage.io/kubernetes-namespace: default argocd/app-name: ${{values.name | dump}} links: - - url: https://gitea.{{]] .Env.DOMAIN [[}}:443 + - url: https://gitea.{{{ .Env.DOMAIN }}}:443 title: Repo URL icon: github spec: diff --git a/template/stacks/ref-implementation/backstage-templates/entities/app-with-bucket/template.yaml b/template/stacks/ref-implementation/backstage-templates/entities/app-with-bucket/template.yaml index 96364c6..34ee8da 100644 --- a/template/stacks/ref-implementation/backstage-templates/entities/app-with-bucket/template.yaml +++ b/template/stacks/ref-implementation/backstage-templates/entities/app-with-bucket/template.yaml @@ -100,7 +100,7 @@ spec: input: description: This is an example app # Hard coded value for this demo purposes only. - repoUrl: gitea.{{]] .Env.DOMAIN [[}}:443/?repo=${{parameters.name}} + repoUrl: gitea.{{{ .Env.DOMAIN }}}:443/?repo=${{parameters.name}} defaultBranch: main - id: create-argocd-app name: Create ArgoCD App @@ -111,7 +111,7 @@ spec: argoInstance: in-cluster projectName: default # necessary until we generate our own cert - repoUrl: https://gitea.{{]] .Env.DOMAIN [[}}:443/giteaAdmin/${{parameters.name}} + repoUrl: https://gitea.{{{ .Env.DOMAIN }}}:443/giteaAdmin/${{parameters.name}} path: "kustomize/base" - id: register name: Register diff --git a/template/stacks/ref-implementation/backstage-templates/entities/argo-workflows/skeleton/catalog-info.yaml b/template/stacks/ref-implementation/backstage-templates/entities/argo-workflows/skeleton/catalog-info.yaml index 663722d..04416ba 100644 --- a/template/stacks/ref-implementation/backstage-templates/entities/argo-workflows/skeleton/catalog-info.yaml +++ b/template/stacks/ref-implementation/backstage-templates/entities/argo-workflows/skeleton/catalog-info.yaml @@ -14,7 +14,7 @@ metadata: apache-spark.cnoe.io/label-selector: env=dev,entity-id=${{values.name}} apache-spark.cnoe.io/cluster-name: local links: - - url: https://gitea.{{]] .Env.DOMAIN [[}}:443 + - url: https://gitea.{{{ .Env.DOMAIN }}}:443 title: Repo URL icon: github spec: diff --git a/template/stacks/ref-implementation/backstage-templates/entities/argo-workflows/template.yaml b/template/stacks/ref-implementation/backstage-templates/entities/argo-workflows/template.yaml index 2a0a2d3..f6e3083 100644 --- a/template/stacks/ref-implementation/backstage-templates/entities/argo-workflows/template.yaml +++ b/template/stacks/ref-implementation/backstage-templates/entities/argo-workflows/template.yaml @@ -35,7 +35,7 @@ spec: input: description: This is an example app # Hard coded value for this demo purposes only. - repoUrl: gitea.{{]] .Env.DOMAIN [[}}:443/?repo=${{parameters.name}} + repoUrl: gitea.{{{ .Env.DOMAIN }}}:443/?repo=${{parameters.name}} defaultBranch: main - id: create-argocd-app name: Create ArgoCD App @@ -46,7 +46,7 @@ spec: argoInstance: in-cluster projectName: default # necessary until we generate our own cert - repoUrl: https://gitea.{{]] .Env.DOMAIN [[}}:443/giteaAdmin/${{parameters.name}} + repoUrl: https://gitea.{{{ .Env.DOMAIN }}}:443/giteaAdmin/${{parameters.name}} path: "manifests" - id: register name: Register diff --git a/template/stacks/ref-implementation/backstage-templates/entities/basic/skeleton/catalog-info.yaml b/template/stacks/ref-implementation/backstage-templates/entities/basic/skeleton/catalog-info.yaml index 39c3c20..102ff01 100644 --- a/template/stacks/ref-implementation/backstage-templates/entities/basic/skeleton/catalog-info.yaml +++ b/template/stacks/ref-implementation/backstage-templates/entities/basic/skeleton/catalog-info.yaml @@ -10,7 +10,7 @@ metadata: backstage.io/kubernetes-namespace: default argocd/app-name: ${{values.name | dump}} links: - - url: https://gitea.{{]] .Env.DOMAIN [[}}:443 + - url: https://gitea.{{{ .Env.DOMAIN }}}:443 title: Repo URL icon: github spec: diff --git a/template/stacks/ref-implementation/backstage-templates/entities/basic/template.yaml b/template/stacks/ref-implementation/backstage-templates/entities/basic/template.yaml index 0f44d97..7fb96a7 100644 --- a/template/stacks/ref-implementation/backstage-templates/entities/basic/template.yaml +++ b/template/stacks/ref-implementation/backstage-templates/entities/basic/template.yaml @@ -31,7 +31,7 @@ spec: input: description: This is an example app # Hard coded value for this demo purposes only. - repoUrl: gitea.{{]] .Env.DOMAIN [[}}:443/?repo=${{parameters.name}} + repoUrl: gitea.{{{ .Env.DOMAIN }}}:443/?repo=${{parameters.name}} defaultBranch: main - id: create-argocd-app name: Create ArgoCD App @@ -42,7 +42,7 @@ spec: argoInstance: in-cluster projectName: default # necessary until we generate our own cert - repoUrl: https://gitea.{{]] .Env.DOMAIN [[}}:443/giteaAdmin/${{parameters.name}} + repoUrl: https://gitea.{{{ .Env.DOMAIN }}}:443/giteaAdmin/${{parameters.name}} path: "manifests" - id: register name: Register diff --git a/template/stacks/ref-implementation/backstage-templates/entities/demo-go-hello-world/skeleton/catalog-info.yaml b/template/stacks/ref-implementation/backstage-templates/entities/demo-go-hello-world/skeleton/catalog-info.yaml index a67e735..f75a37f 100644 --- a/template/stacks/ref-implementation/backstage-templates/entities/demo-go-hello-world/skeleton/catalog-info.yaml +++ b/template/stacks/ref-implementation/backstage-templates/entities/demo-go-hello-world/skeleton/catalog-info.yaml @@ -9,7 +9,7 @@ metadata: backstage.io/kubernetes-label-selector: 'entity-id=${{ values.name }}' backstage.io/kubernetes-namespace: gitea links: - - url: https://gitea.{{]] .Env.DOMAIN [[}}:443 + - url: https://gitea.{{{ .Env.DOMAIN }}}:443 title: Repo URL icon: git spec: @@ -26,7 +26,7 @@ metadata: annotations: backstage.io/techdocs-ref: dir:. links: - - url: https://gitea.{{]] .Env.DOMAIN [[}}:443 + - url: https://gitea.{{{ .Env.DOMAIN }}}:443 title: Gitea Repo icon: git spec: diff --git a/template/stacks/ref-implementation/backstage-templates/entities/demo-go-hello-world/template.yaml b/template/stacks/ref-implementation/backstage-templates/entities/demo-go-hello-world/template.yaml index ef929c8..133e70e 100644 --- a/template/stacks/ref-implementation/backstage-templates/entities/demo-go-hello-world/template.yaml +++ b/template/stacks/ref-implementation/backstage-templates/entities/demo-go-hello-world/template.yaml @@ -33,7 +33,7 @@ spec: name: Publish to Gitea action: publish:gitea input: - repoUrl: gitea.{{]] .Env.DOMAIN [[}}:443/?repo=${{parameters.name}} + repoUrl: gitea.{{{ .Env.DOMAIN }}}:443/?repo=${{parameters.name}} description: This is the repository for ${{ parameters.name }} sourcePath: ./skeleton defaultBranch: main diff --git a/template/stacks/ref-implementation/backstage.yaml b/template/stacks/ref-implementation/backstage.yaml index c31ab31..f162001 100644 --- a/template/stacks/ref-implementation/backstage.yaml +++ b/template/stacks/ref-implementation/backstage.yaml @@ -10,7 +10,7 @@ metadata: spec: project: default source: - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD path: "stacks/ref-implementation/backstage/manifests" destination: diff --git a/template/stacks/ref-implementation/backstage/manifests/install.yaml b/template/stacks/ref-implementation/backstage/manifests/install.yaml index c234da3..bd65421 100644 --- a/template/stacks/ref-implementation/backstage/manifests/install.yaml +++ b/template/stacks/ref-implementation/backstage/manifests/install.yaml @@ -70,7 +70,7 @@ data: app-config.yaml: | app: title: CNOE Backstage - baseUrl: https://{{]] .Env.DOMAIN [[}}:443 + baseUrl: https://{{{ .Env.DOMAIN }}}:443 organization: name: CNOE backend: @@ -80,7 +80,7 @@ data: # auth: # keys: # - secret: ${BACKEND_SECRET} - baseUrl: https://{{]] .Env.DOMAIN [[}}:443 + baseUrl: https://{{{ .Env.DOMAIN }}}:443 listen: port: 7007 # 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 # Default Helmet Content-Security-Policy values can be removed by setting the key to false cors: - origin: https://{{]] .Env.DOMAIN [[}}:443 + origin: https://{{{ .Env.DOMAIN }}}:443 methods: [GET, HEAD, PATCH, POST, PUT, DELETE] credentials: true database: @@ -106,12 +106,12 @@ data: integrations: gitea: - - baseUrl: https://gitea.{{]] .Env.DOMAIN [[}}:443 - host: gitea.{{]] .Env.DOMAIN [[}}:443 + - baseUrl: https://gitea.{{{ .Env.DOMAIN }}}:443 + host: gitea.{{{ .Env.DOMAIN }}}:443 username: ${GITEA_USERNAME} password: ${GITEA_PASSWORD} - - baseUrl: https://gitea.{{]] .Env.DOMAIN [[}} - host: gitea.{{]] .Env.DOMAIN [[}} + - baseUrl: https://gitea.{{{ .Env.DOMAIN }}} + host: gitea.{{{ .Env.DOMAIN }}} username: ${GITEA_USERNAME} password: ${GITEA_PASSWORD} # github: @@ -165,7 +165,7 @@ data: locations: # Examples from a public GitHub repository. - type: url - target: https://gitea.{{]] .Env.DOMAIN [[}}: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: - allow: [Component, System, API, Resource, Location, Template, User, Group] kubernetes: @@ -180,7 +180,7 @@ data: - type: 'config' instances: - name: in-cluster - url: https://{{]] .Env.DOMAIN [[}}:443/argocd + url: https://{{{ .Env.DOMAIN }}}:443/argocd username: admin password: ${ARGOCD_ADMIN_PASSWORD} argoWorkflows: @@ -374,14 +374,14 @@ spec: template: engineVersion: v2 data: - BACKSTAGE_FRONTEND_URL: https://{{]] .Env.DOMAIN [[}}:443/backstage + BACKSTAGE_FRONTEND_URL: https://{{{ .Env.DOMAIN }}}:443/backstage POSTGRES_HOST: postgresql.backstage.svc.cluster.local POSTGRES_PORT: '5432' POSTGRES_DB: backstage POSTGRES_USER: backstage POSTGRES_PASSWORD: "{{.POSTGRES_PASSWORD}}" - ARGO_WORKFLOWS_URL: https://{{]] .Env.DOMAIN [[}}:443/argo-workflows - KEYCLOAK_NAME_METADATA: https://{{]] .Env.DOMAIN [[}}:443/keycloak/realms/cnoe/.well-known/openid-configuration + ARGO_WORKFLOWS_URL: https://{{{ .Env.DOMAIN }}}:443/argo-workflows + KEYCLOAK_NAME_METADATA: https://{{{ .Env.DOMAIN }}}:443/keycloak/realms/cnoe/.well-known/openid-configuration KEYCLOAK_CLIENT_SECRET: "{{.BACKSTAGE_CLIENT_SECRET}}" ARGOCD_AUTH_TOKEN: "argocd.token={{.ARGOCD_SESSION_TOKEN}}" ARGO_CD_URL: 'https://argocd-server.argocd.svc.cluster.local/api/v1/' diff --git a/template/stacks/ref-implementation/codespaces.md b/template/stacks/ref-implementation/codespaces.md index d0ff7af..dd9188d 100644 --- a/template/stacks/ref-implementation/codespaces.md +++ b/template/stacks/ref-implementation/codespaces.md @@ -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} ``` -For example, if you need to access Argo Workflows UI, instead of going to `https://{{]] .Env.DOMAIN [[}}: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` diff --git a/template/stacks/ref-implementation/external-secrets.yaml b/template/stacks/ref-implementation/external-secrets.yaml index d8856f6..de2c53a 100644 --- a/template/stacks/ref-implementation/external-secrets.yaml +++ b/template/stacks/ref-implementation/external-secrets.yaml @@ -12,7 +12,7 @@ spec: namespace: external-secrets server: "https://kubernetes.default.svc" source: - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD path: "stacks/ref-implementation/external-secrets/manifests" project: default diff --git a/template/stacks/ref-implementation/fibonacci-app.yaml b/template/stacks/ref-implementation/fibonacci-app.yaml index ca006d3..b049686 100644 --- a/template/stacks/ref-implementation/fibonacci-app.yaml +++ b/template/stacks/ref-implementation/fibonacci-app.yaml @@ -10,7 +10,7 @@ metadata: spec: project: default source: - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD path: "stacks/ref-implementation/fibonacci-app" destination: diff --git a/template/stacks/ref-implementation/forgejo-runner.yaml b/template/stacks/ref-implementation/forgejo-runner.yaml index 0f2a821..bceefc7 100644 --- a/template/stacks/ref-implementation/forgejo-runner.yaml +++ b/template/stacks/ref-implementation/forgejo-runner.yaml @@ -24,6 +24,6 @@ spec: helm: valueFiles: - $values/stacks/ref-implementation/forgejo-runner/values.yaml - - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + - repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD ref: values diff --git a/template/stacks/ref-implementation/keycloak.yaml b/template/stacks/ref-implementation/keycloak.yaml index 52a7221..e4fb166 100644 --- a/template/stacks/ref-implementation/keycloak.yaml +++ b/template/stacks/ref-implementation/keycloak.yaml @@ -12,7 +12,7 @@ spec: namespace: keycloak server: "https://kubernetes.default.svc" source: - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD path: "stacks/ref-implementation/keycloak/manifests" project: default diff --git a/template/stacks/ref-implementation/keycloak/manifests/install.yaml b/template/stacks/ref-implementation/keycloak/manifests/install.yaml index 3cd7600..6e55a17 100644 --- a/template/stacks/ref-implementation/keycloak/manifests/install.yaml +++ b/template/stacks/ref-implementation/keycloak/manifests/install.yaml @@ -83,7 +83,7 @@ data: proxy=edge # hostname configuration - hostname={{]] .Env.DOMAIN [[}} + hostname={{{ .Env.DOMAIN }}} http-relative-path=keycloak # the admin url requires its own configuration to reflect correct url diff --git a/template/stacks/ref-implementation/keycloak/manifests/keycloak-config.yaml b/template/stacks/ref-implementation/keycloak/manifests/keycloak-config.yaml index 4af40bb..f1dd699 100644 --- a/template/stacks/ref-implementation/keycloak/manifests/keycloak-config.yaml +++ b/template/stacks/ref-implementation/keycloak/manifests/keycloak-config.yaml @@ -145,7 +145,7 @@ data: "rootUrl": "", "baseUrl": "", "redirectUris": [ - "https://{{]] .Env.DOMAIN [[}}:443/argo-workflows/oauth2/callback" + "https://{{{ .Env.DOMAIN }}}:443/argo-workflows/oauth2/callback" ], "webOrigins": [ "/*" @@ -174,7 +174,7 @@ data: "rootUrl": "", "baseUrl": "", "redirectUris": [ - "https://{{]] .Env.DOMAIN [[}}:443/api/auth/keycloak-oidc/handler/frame" + "https://{{{ .Env.DOMAIN }}}:443/api/auth/keycloak-oidc/handler/frame" ], "webOrigins": [ "/*" diff --git a/template/stacks/ref-implementation/metric-server.yaml b/template/stacks/ref-implementation/metric-server.yaml index e7fde0b..1a2073c 100644 --- a/template/stacks/ref-implementation/metric-server.yaml +++ b/template/stacks/ref-implementation/metric-server.yaml @@ -1,4 +1,4 @@ -{{]] if eq .Env.CLUSTER_TYPE "kind" [[}} +{{{ if eq .Env.CLUSTER_TYPE "kind" }}} apiVersion: argoproj.io/v1alpha1 kind: Application metadata: @@ -28,4 +28,4 @@ spec: selfHeal: true syncOptions: - CreateNamespace=true -{{]] end [[}} +{{{ end }}} diff --git a/template/stacks/ref-implementation/openbao.yaml b/template/stacks/ref-implementation/openbao.yaml index e392908..a6f3ec8 100644 --- a/template/stacks/ref-implementation/openbao.yaml +++ b/template/stacks/ref-implementation/openbao.yaml @@ -24,7 +24,7 @@ spec: helm: valueFiles: - $values/stacks/ref-implementation/openbao/values.yaml - - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + - repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD ref: values ignoreDifferences: diff --git a/template/stacks/second-cluster/create-new-cluster-guestbook.yaml b/template/stacks/second-cluster/create-new-cluster-guestbook.yaml index d0325e0..e71b4f0 100644 --- a/template/stacks/second-cluster/create-new-cluster-guestbook.yaml +++ b/template/stacks/second-cluster/create-new-cluster-guestbook.yaml @@ -19,5 +19,5 @@ spec: namespace: crossplane-system source: path: stacks/second-cluster/create-new-cluster-guestbook - repoURL: https://gitea.{{]] .Env.DOMAIN [[}}/giteaAdmin/edfbuilder + repoURL: https://gitea.{{{ .Env.DOMAIN }}}/giteaAdmin/edfbuilder targetRevision: HEAD