Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Kustomize integration of Application Set controller and Argo CD (#87) #113

Merged
merged 1 commit into from
Feb 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VERSION?=$(shell cat VERSION)
IMAGE_NAMESPACE?=argoprojlabs
IMAGE_NAME=applicationset
IMAGE_NAME?=argocd-applicationset
IMAGE_TAG?=latest
CONTAINER_REGISTRY?=

Expand Down
12 changes: 9 additions & 3 deletions hack/generate-manifests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if [ "$CONTAINER_REGISTRY" != "" ]; then
CONTAINER_REGISTRY="${CONTAINER_REGISTRY}/"
fi


IMAGE_NAME="${IMAGE_NAME:-argocd-applicationset}"
IMAGE_NAMESPACE="${IMAGE_NAMESPACE:-argoprojlabs}"
IMAGE_TAG="${IMAGE_TAG:-}"

Expand All @@ -34,10 +34,16 @@ if [ "$IMAGE_TAG" = "" ]; then
IMAGE_TAG=latest
fi

cd ${SRCROOT}/manifests/base && ${KUSTOMIZE} edit set image argoprojlabs/argocd-applicationset=${CONTAINER_REGISTRY}${IMAGE_NAMESPACE}/argocd-applicationset:${IMAGE_TAG}
cd ${SRCROOT}/manifests/base && ${KUSTOMIZE} edit set image argoprojlabs/argocd-applicationset=${CONTAINER_REGISTRY}${IMAGE_NAMESPACE}/$IMAGE_NAME:${IMAGE_TAG}

# Use kustomize to render 'manifests/install.yaml'
echo "${AUTOGENMSG}" > ${TEMPFILE}
cd ${SRCROOT}/manifests/namespace-install && ${KUSTOMIZE} build . >> ${TEMPFILE}

mv ${TEMPFILE} ${SRCROOT}/manifests/install.yaml
cd ${SRCROOT} && chmod 644 manifests/install.yaml

# Use kustomize to render 'manifests/install-with-argo-cd.yaml'
echo "${AUTOGENMSG}" > ${TEMPFILE}
cd ${SRCROOT}/manifests/namespace-install-with-argo-cd && ${KUSTOMIZE} build . >> ${TEMPFILE}
mv ${TEMPFILE} ${SRCROOT}/manifests/install-with-argo-cd.yaml
cd ${SRCROOT} && chmod 644 manifests/install-with-argo-cd.yaml