diff --git a/argocd-install/template-values-override.yaml b/argocd-install/template-values-override.yaml index c9ece46..93fb344 100644 --- a/argocd-install/template-values-override.yaml +++ b/argocd-install/template-values-override.yaml @@ -1,3 +1,6 @@ +global: + image: + repository: ${QUAY_IMAGE_REPO}/argoproj/argocd server: service: type: NodePort @@ -63,7 +66,14 @@ server: warn: false metrics: enabled: true -dex.metrics.enabled: true +dex: + image: + repository: ${GITHUB_IMAGE_REPO}/dexidp/dex + metrics: + enabled: true +redis: + image: + repository: ${DOCKER_IMAGE_REPO}/redis controller.metrics.enabled: true repoServer.metrics.enabled: true redis-ha.haproxy.metrics.enabled: false diff --git a/argocd-install/values-override.yaml b/argocd-install/values-override.yaml index ba595a3..c3e4c56 100644 --- a/argocd-install/values-override.yaml +++ b/argocd-install/values-override.yaml @@ -1,3 +1,6 @@ +global: + image: + repository: quay.io/argoproj/argocd server: service: type: NodePort @@ -63,7 +66,14 @@ server: warn: false metrics: enabled: true -dex.metrics.enabled: true +dex: + image: + repository: ghcr.io/dexidp/dex + metrics: + enabled: true +redis: + image: + repository: docker.io/redis controller.metrics.enabled: true repoServer.metrics.enabled: true redis-ha.haproxy.metrics.enabled: false diff --git a/genereate_yamls.sh b/genereate_yamls.sh index ed8fe24..c24771c 100755 --- a/genereate_yamls.sh +++ b/genereate_yamls.sh @@ -6,13 +6,17 @@ DECAPOD_SITE_NAME="hanu-reference" DECAPOD_BOOTSTRAP_GIT_REPO_URL="https://github.com/openinfradev/decapod-bootstrap.git" DECAPOD_MANIFESTS_GIT_REPO_URL="https://github.com/openinfradev/decapod-manifests.git" +DOCKER_IMAGE_REPO="docker.io" +QUAY_IMAGE_REPO="quay.io" +GITHUB_IMAGE_REPO="ghcr.io" + function usage { - echo -e "\nUsage: $0 [--site SITE_NAME] [--bootstrap-git BOOTSTRAP_GIT_URL ] [--manifests-git MANIFESTS_GIT_URL]" + echo -e "\nUsage: $0 [--site SITE_NAME] [--bootstrap-git BOOTSTRAP_GIT_URL ] [--manifests-git MANIFESTS_GIT_URL] [--registry REGISTRY_URL]" exit 1 } # We use "$@" instead of $* to preserve argument-boundary information -ARGS=$(getopt -o 's:b:m:h' --long 'site:,bootstrap-git:,manifests-git:,help' -- "$@") || usage +ARGS=$(getopt -o 's:b:m:r:h' --long 'site:,bootstrap-git:,manifests-git:,registry:,help' -- "$@") || usage eval "set -- $ARGS" while true; do @@ -25,6 +29,10 @@ while true; do DECAPOD_BOOTSTRAP_GIT_REPO_URL=$2; shift 2;; (-m|--manifests-git) DECAPOD_MANIFESTS_GIT_REPO_URL=$2; shift 2;; + (-r|--registry) + DOCKER_IMAGE_REPO=$2 + QUAY_IMAGE_REPO=$2 + GITHUB_IMAGE_REPO=$2; shift 2;; (--) shift; break;; (*) exit 1;; # error esac @@ -33,6 +41,9 @@ done export DECAPOD_SITE_NAME export DECAPOD_BOOTSTRAP_GIT_REPO_URL export DECAPOD_MANIFESTS_GIT_REPO_URL +export DOCKER_IMAGE_REPO +export QUAY_IMAGE_REPO +export GITHUB_IMAGE_REPO echo "=== Create YAML files using the following Decapod configuration. For help, use the '-h' option" echo " Site: "$DECAPOD_SITE_NAME