Override URL resource #5056
Replies: 2 comments 1 reply
-
You could do the following:
k8s/base/kustomization.yaml: apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml k8s/overlays/dev/kustomization.yaml: apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base/
patchesStrategicMerge:
- https://raw.githubusercontent.com/argoproj/argo-cd/v2.6.2/manifests/install.yaml To test it run: # Create KinD cluster with base ArgoCD
kind create cluster --name kustomize-base-argocd && \
kustomize build k8s/base | kubectl apply -f -
# Create KinD cluster with dev ArgoCD
kind create cluster --name kustomize-dev-argocd && \
kustomize build k8s/overlays/dev | kubectl apply -f -
# Delete both clusters
kind delete cluster --name kustomize-base-argocd
kind delete cluster --name kustomize-dev-argocd |
Beta Was this translation helpful? Give feedback.
-
Yeah I don't think you'll escape some kind of wrapper script and/or cicd logic here. Two quick options that I can think of now:
|
Beta Was this translation helpful? Give feedback.
-
Is it possible to override a URL resource in an overlay?
For example, let's say I have the following base:
and I want to override it using a specific version of Argo CD:
I know the above won't work (I tried it), but is there a recommended way to do this?
Beta Was this translation helpful? Give feedback.
All reactions