Skip to content

Commit

Permalink
add repository_url parameter into application workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
estherk0 committed May 14, 2021
1 parent 625c45b commit 6637311
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 7 deletions.
4 changes: 4 additions & 0 deletions templates/argo-cd/createapp-wftpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ spec:
value: "hanu-deploy-apps"
- name: app_name
value: "lma"
- name: repository_url
value: "https://github.com/openinfradev/decapod-manifests"
templates:
- name: createApp
inputs:
Expand Down Expand Up @@ -47,6 +49,8 @@ spec:
value: "{{workflow.parameters.app_name}}"
- name: NAMESPACE
value: "{{inputs.parameters.namespace}}"
- name: REPO
value: "{{workflow.parameters.repository_url}}"

- name: AppGroup
inputs:
Expand Down
9 changes: 2 additions & 7 deletions templates/argo-cd/prepare-argocd-wftpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ spec:
startpoint: configuration
arguments:
parameters:
- name: repository_url
value: "https://github.com/openinfradev/decapod-manifests"
- name: argo_server
value: "192.168.97.192:30080"
value: "decapod-argocd-server.argo.svc:80"
- name: argo_username
value: "admin"
- name: argo_password
Expand All @@ -33,8 +31,7 @@ spec:
kubectl create secret generic decapod-argocd-config -nargo \
--from-literal=ARGO_SERVER=$ARGO_SERVER \
--from-literal=ARGO_USERNAME=$ARGO_USERNAME \
--from-literal=ARGO_PASSWORD=$ARGO_PASSWORD \
--from-literal=REPO=$REPO
--from-literal=ARGO_PASSWORD=$ARGO_PASSWORD
env:
- name: ARGO_SERVER
Expand All @@ -43,5 +40,3 @@ spec:
value: "{{workflow.parameters.argo_username}}"
- name: ARGO_PASSWORD
value: "{{workflow.parameters.argo_password}}"
- name: REPO
value: "{{workflow.parameters.repository_url}}"
2 changes: 2 additions & 0 deletions workflows/v2/lma-federation-wf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
value: "hanu-reference"
- name: app_name
value: "lma"
- name: repository_url
value: "https://github.com/openinfradev/decapod-manifests"
templates:
- name: deploy
dag:
Expand Down
2 changes: 2 additions & 0 deletions workflows/v2/lma-wf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
value: "hanu-reference"
- name: app_name
value: "lma"
- name: repository_url
value: "https://github.com/openinfradev/decapod-manifests"
templates:
- name: deploy
dag:
Expand Down
2 changes: 2 additions & 0 deletions workflows/v2/openstack-components-wf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
value: "hanu-reference"
- name: app_name
value: "openstack"
- name: repository_url
value: "https://github.com/openinfradev/decapod-manifests"
templates:
- name: deploy
dag:
Expand Down
2 changes: 2 additions & 0 deletions workflows/v2/openstack-infra-wf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
value: "hanu-reference"
- name: app_name
value: "openstack"
- name: repository_url
value: "https://github.com/openinfradev/decapod-manifests"
templates:
- name: deploy
dag:
Expand Down
2 changes: 2 additions & 0 deletions workflows/v2/service-mesh-wf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
value: "hanu-reference"
- name: app_name
value: "service-mesh"
- name: repository_url
value: "https://github.com/openinfradev/decapod-manifests"
templates:
- name: deploy
dag:
Expand Down

0 comments on commit 6637311

Please sign in to comment.