Browse Source

allow change argocd url (#10176)

pull/10184/head
Samuel Liu 1 year ago
committed by GitHub
parent
commit
d296adcd65
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions
  1. 1
      roles/kubernetes-apps/argocd/defaults/main.yml
  2. 2
      roles/kubernetes-apps/argocd/tasks/main.yml
  3. 2
      roles/kubernetes-apps/argocd/templates/argocd-namespace.yml.j2

1
roles/kubernetes-apps/argocd/defaults/main.yml

@ -3,3 +3,4 @@ argocd_enabled: false
argocd_version: v2.6.7
argocd_namespace: argocd
# argocd_admin_password:
argocd_install_url: "https://raw.githubusercontent.com/argoproj/argo-cd/{{ argocd_version }}/manifests/install.yaml"

2
roles/kubernetes-apps/argocd/tasks/main.yml

@ -22,7 +22,7 @@
- name: install
file: argocd-install.yml
namespace: "{{ argocd_namespace }}"
url: "https://raw.githubusercontent.com/argoproj/argo-cd/{{ argocd_version }}/manifests/install.yaml"
url: "{{ argocd_install_url }}"
when:
- "inventory_hostname == groups['kube_control_plane'][0]"

2
roles/kubernetes-apps/argocd/templates/argocd-namespace.yml.j2

@ -2,6 +2,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: {{argocd_namespace}}
name: {{ argocd_namespace }}
labels:
app: argocd
Loading…
Cancel
Save