diff --git a/civo-github/registry/environments/.gitkeep b/civo-github/registry/welcome.txt similarity index 100% rename from civo-github/registry/environments/.gitkeep rename to civo-github/registry/welcome.txt diff --git a/civo-github/templates/mgmt/components/argo-workflows/cwfts/cwft-helm.yaml b/civo-github/templates/mgmt/components/argo-workflows/cwfts/cwft-helm.yaml index 795309cb0..62e35cf0d 100644 --- a/civo-github/templates/mgmt/components/argo-workflows/cwfts/cwft-helm.yaml +++ b/civo-github/templates/mgmt/components/argo-workflows/cwfts/cwft-helm.yaml @@ -66,7 +66,7 @@ spec: workingDir: '/src/{{inputs.parameters.appName}}' args: - helm repo add kubefirst http://chartmuseum.chartmuseum.svc.cluster.local:8080 --username ${BASIC_AUTH_USER} --password ${BASIC_AUTH_PASS} || bash -c "sleep 10 && echo 'waiting before trying again' && exit 1"; - helm push {{inputs.parameters.chartDir}} kubefirst || bash -c "sleep 10 && echo 'waiting before trying again' && exit 1"; + helm push --force {{inputs.parameters.chartDir}} kubefirst || bash -c "sleep 10 && echo 'waiting before trying again' && exit 1"; env: - name: BASIC_AUTH_PASS valueFrom: diff --git a/civo-github/templates/mgmt/components/kubefirst/console.yaml b/civo-github/templates/mgmt/components/kubefirst/console.yaml index f0c8bf095..cb55ea267 100644 --- a/civo-github/templates/mgmt/components/kubefirst/console.yaml +++ b/civo-github/templates/mgmt/components/kubefirst/console.yaml @@ -9,7 +9,7 @@ spec: project: default source: repoURL: https://charts.kubefirst.com - targetRevision: 2.4.12-rc2 + targetRevision: 2.4.12-rc1 chart: kubefirst helm: values: |- diff --git a/civo-github/registry/environments/development/metaphor/Chart.yaml b/civo-github/templates/mgmt/components/metaphor/metaphor/Chart.yaml similarity index 100% rename from civo-github/registry/environments/development/metaphor/Chart.yaml rename to civo-github/templates/mgmt/components/metaphor/metaphor/Chart.yaml diff --git a/civo-github/registry/environments/development/metaphor/values.yaml b/civo-github/templates/mgmt/components/metaphor/metaphor/values.yaml similarity index 100% rename from civo-github/registry/environments/development/metaphor/values.yaml rename to civo-github/templates/mgmt/components/metaphor/metaphor/values.yaml diff --git a/civo-github/registry/environments/production/metaphor/Chart.yaml b/civo-github/templates/mgmt/components/metaphor/production/metaphor/Chart.yaml similarity index 100% rename from civo-github/registry/environments/production/metaphor/Chart.yaml rename to civo-github/templates/mgmt/components/metaphor/production/metaphor/Chart.yaml diff --git a/civo-github/registry/environments/production/metaphor/values.yaml b/civo-github/templates/mgmt/components/metaphor/production/metaphor/values.yaml similarity index 100% rename from civo-github/registry/environments/production/metaphor/values.yaml rename to civo-github/templates/mgmt/components/metaphor/production/metaphor/values.yaml diff --git a/civo-github/registry/environments/staging/metaphor/Chart.yaml b/civo-github/templates/mgmt/components/metaphor/staging/metaphor/Chart.yaml similarity index 100% rename from civo-github/registry/environments/staging/metaphor/Chart.yaml rename to civo-github/templates/mgmt/components/metaphor/staging/metaphor/Chart.yaml diff --git a/civo-github/registry/environments/staging/metaphor/values.yaml b/civo-github/templates/mgmt/components/metaphor/staging/metaphor/values.yaml similarity index 100% rename from civo-github/registry/environments/staging/metaphor/values.yaml rename to civo-github/templates/mgmt/components/metaphor/staging/metaphor/values.yaml diff --git a/civo-github/registry/environments/development/metaphor.yaml b/civo-github/templates/mgmt/metaphor-development.yaml similarity index 70% rename from civo-github/registry/environments/development/metaphor.yaml rename to civo-github/templates/mgmt/metaphor-development.yaml index 3e812c34c..6fda934bb 100644 --- a/civo-github/registry/environments/development/metaphor.yaml +++ b/civo-github/templates/mgmt/metaphor-development.yaml @@ -6,19 +6,19 @@ metadata: finalizers: - resources-finalizer.argocd.argoproj.io annotations: - argocd.argoproj.io/sync-wave: '45' + argocd.argoproj.io/sync-wave: '999' spec: project: default source: repoURL: - path: registry/environments/development/metaphor + path: registry/clusters//components/metaphor/development/metaphor targetRevision: HEAD destination: - name: + name: in-cluster namespace: development syncPolicy: automated: prune: true selfHeal: true syncOptions: - - CreateNamespace=true + - CreateNamespace=true \ No newline at end of file diff --git a/civo-github/registry/environments/staging/metaphor.yaml b/civo-github/templates/mgmt/metaphor-staging.yaml similarity index 75% rename from civo-github/registry/environments/staging/metaphor.yaml rename to civo-github/templates/mgmt/metaphor-staging.yaml index 93ee31fe5..c3a44dc04 100644 --- a/civo-github/registry/environments/staging/metaphor.yaml +++ b/civo-github/templates/mgmt/metaphor-staging.yaml @@ -6,15 +6,15 @@ metadata: finalizers: - resources-finalizer.argocd.argoproj.io annotations: - argocd.argoproj.io/sync-wave: '45' + argocd.argoproj.io/sync-wave: '998' spec: project: default source: repoURL: - path: registry/environments/staging/metaphor + path: registry/clusters//components/metaphor/staging/metaphor targetRevision: HEAD destination: - name: + name: in-cluster namespace: staging syncPolicy: automated: @@ -22,3 +22,4 @@ spec: selfHeal: true syncOptions: - CreateNamespace=true + diff --git a/civo-github/registry/environments/production/metaphor.yaml b/civo-github/templates/mgmt/metaphot-production.yaml similarity index 70% rename from civo-github/registry/environments/production/metaphor.yaml rename to civo-github/templates/mgmt/metaphot-production.yaml index f761bedf1..49e0ad6a0 100644 --- a/civo-github/registry/environments/production/metaphor.yaml +++ b/civo-github/templates/mgmt/metaphot-production.yaml @@ -6,19 +6,19 @@ metadata: finalizers: - resources-finalizer.argocd.argoproj.io annotations: - argocd.argoproj.io/sync-wave: '45' + argocd.argoproj.io/sync-wave: '997' spec: project: default source: repoURL: - path: registry/environments/production/metaphor + path: registry/clusters//components/metaphor/production/metaphor targetRevision: HEAD destination: - name: + name: in-cluster namespace: production syncPolicy: automated: prune: true selfHeal: true syncOptions: - - CreateNamespace=true + - CreateNamespace=true \ No newline at end of file diff --git a/metaphor/.argo/deploy.yaml b/metaphor/.argo/deploy.yaml index 7db12893d..4e3e307da 100644 --- a/metaphor/.argo/deploy.yaml +++ b/metaphor/.argo/deploy.yaml @@ -46,7 +46,7 @@ spec: from: '{{steps.checkout.outputs.artifacts.repo-source}}' parameters: - name: fullChartPath - value: 'registry/environments/{{workflow.parameters.environment}}/{{workflow.parameters.appName}}/Chart.yaml' + value: 'registry/clusters/{{workflow.parameters.clustername}}/components/{{workflow.parameters.appName}}/{{workflow.parameters.environment}}/{{workflow.parameters.appName}}/Chart.yaml' - name: chartVersion value: '{{steps.get-initial-chart-version.outputs.result}}-rc.{{workflow.parameters.shortSha}}' - name: environment diff --git a/metaphor/.argo/release.yaml b/metaphor/.argo/release.yaml index 416677f9d..284eb0f5f 100644 --- a/metaphor/.argo/release.yaml +++ b/metaphor/.argo/release.yaml @@ -76,7 +76,7 @@ spec: from: '{{steps.checkout.outputs.artifacts.repo-source}}' parameters: - name: fullChartPath - value: 'registry/environments/{{workflow.parameters.environment}}/{{workflow.parameters.appName}}/Chart.yaml' + value: 'registry/clusters/{{workflow.parameters.clustername}}/components/{{workflow.parameters.appName}}/{{workflow.parameters.environment}}/{{workflow.parameters.appName}}/Chart.yaml' - name: chartVersion value: '{{steps.get-initial-chart-version.outputs.result}}' - name: environment diff --git a/metaphor/.github/workflows/main.yaml b/metaphor/.github/workflows/main.yaml index cd5138e83..445a9343c 100644 --- a/metaphor/.github/workflows/main.yaml +++ b/metaphor/.github/workflows/main.yaml @@ -75,6 +75,7 @@ jobs: -p environment="development" \ -p gitUrlNoProtocol="${GITHUB_REPOSITORY_OWNER_PART_SLUG}" \ -p shortSha="${GITHUB_SHA_SHORT}" \ + -p clustername="" \ --wait --log - run: echo "⭐️ the kubefirst open source platform is powered by github stars. give kubefirst one today https://github.com/kubefirst/kubefirst" staging: @@ -104,6 +105,7 @@ jobs: -p environment="staging" \ -p gitUrlNoProtocol="${GITHUB_REPOSITORY_OWNER_PART_SLUG}" \ -p shortSha="${GITHUB_SHA_SHORT}" \ + -p clustername="" \ --wait --log - run: echo "⭐️ the kubefirst open source platform is powered by github stars. give kubefirst one today https://github.com/kubefirst/kubefirst" release: @@ -134,5 +136,6 @@ jobs: -p environment="production" \ -p gitUrlNoProtocol="${GITHUB_REPOSITORY_OWNER_PART_SLUG}" \ -p shortSha="${GITHUB_SHA_SHORT}" \ + -p clustername="" --wait --log - run: echo "⭐️ the kubefirst open source platform is powered by github stars. give kubefirst one today https://github.com/kubefirst/kubefirst" \ No newline at end of file