
Updating example configmap data and adding an example standardized container to be used for the gates. Added Chart tasks in order to make testing easier for the chart workflow. Removing the triggers and cluster roles settings to get ready to move the pipeline to a new location. Added pipelinerun to allow for testing via kubectl create -f co-author: sshturm@mirantis.com - Combined feat(chart) Chart task in Development Pipeline Change-Id: Icdb6bfe391e0e30883eeca661668763515a5565a Signed-off-by: Pete Birley <pete@port.direct>
13 lines
944 B
YAML
13 lines
944 B
YAML
#Deploy CNF
|
|
- name: Get harbor username
|
|
shell: cat {{ harbor_secret_mounted_path }}/username
|
|
register: harbor_username
|
|
- name: Get harbor password
|
|
shell: cat {{ harbor_secret_mounted_path }}/password
|
|
register: harbor_password
|
|
#TODO dex-aio doesn't install, look into another test chart
|
|
- name: Add Harbor Helm repository and Test repository
|
|
shell: helm repo add "{{ chart_repository }}-staging" "https://{{ docker_registry }}/chartrepo/{{ project }}-staging" --username={{ harbor_username.stdout }} --password={{ harbor_password.stdout }}
|
|
- name: Deploy chart "{{ chart_name }}"
|
|
#shell: echo "Deploy after mongodb"
|
|
shell: helm upgrade --install --kubeconfig="{{ cluster_kubeconfig_path }}/kubeconfig" "{{ release_name }}" "{{ chart_repository }}-staging/{{ chart_name }}" --version="{{ version }}" --namespace="{{ namespace }}" --username="{{ harbor_username.stdout }}" --password="{{ harbor_password.stdout }}" --create-namespace |