cnoe-io / idpbuilder

Spin up a complete internal developer platform with only Docker required as a dependency.
https://cloud-native.slack.com/archives/C05TN9WFN5S
Apache License 2.0
174 stars 56 forks source link

[Bug]: All occurrences of cnoe:// not getting replace everywhere #339

Closed csantanapr closed 2 months ago

csantanapr commented 2 months ago

What is your environment, configuration, and command?

latest version

What did you do and What did you see instead?

I'm building a helm chart that acts like an app of applicationsets and I need to pass down the repoURL down to the helm chart

I have the following app, but only one occurence of cnoe:// gets replace

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: addons
  namespace: argocd
spec:
  destination:
    namespace: argocd
    name: "in-cluster"
  source:
    repoURL: cnoe://addons
    path: "charts/gitops-bridge"
    helm:
      valuesObject:
        repoURLGit: cnoe://addons
        repoURLValues: cnoe://addons
        applicationsets:
          argocd:
            enabled: false
          aws_load_balancer_controller:
            enabled: false
          gatekeeper:
            enabled: true
  project: default
  syncPolicy:
    automated:
      selfHeal: true

As workaround I have to hardcoded the values like this

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: addons
  namespace: argocd
spec:
  destination:
    namespace: argocd
    name: "in-cluster"
  source:
    repoURL: cnoe://addons
    path: "charts/gitops-bridge"
    helm:
      valuesObject:
        repoURLGit: https://gitea.cnoe.localtest.me:8443/giteaAdmin/idpbuilder-localdev-addons-addons.git
        repoURLValues: https://gitea.cnoe.localtest.me:8443/giteaAdmin/idpbuilder-localdev-addons-addons.git
        applicationsets:
          argocd:
            enabled: false
          aws_load_balancer_controller:
            enabled: false
          gatekeeper:
            enabled: true
  project: default
  syncPolicy:
    automated:
      selfHeal: true

Additional Information. Logs.

No response