Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add repository_url parameter into application workflow #28

Merged
merged 1 commit into from
May 14, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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