Skip to content

Commit

Permalink
refactor: Added new SELECTIVE_DEPLOY_PRODUCTS param
Browse files Browse the repository at this point in the history
- For the apply-product-changes task, added optional
  product list to apply the changes.
- Updated the code_snippet comments

Co-authored-by: David Timm <dtimm@vmware.com>
Co-authored-by: Ramkumar Vengadakrishnan <ramkumarv@vmware.com>
  • Loading branch information
dtimm and ram-pivot committed Feb 3, 2023
1 parent ec72a24 commit 4dc085b
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions pipelines/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1042,15 +1042,15 @@ jobs:
<<: *prepare-tasks-with-secrets
- task: prepare-image
<<: *prepare-image
# code_snippet create-root-ca start yaml
# code_snippet configure-new-certificate-authority-usage start yaml
- task: create-root-ca
image: platform-automation-image
file: platform-automation-tasks/tasks/configure-new-certificate-authority.yml
input_mapping:
env: configuration
params:
ENV_FILE: foundations/config/env.yml
# code_snippet create-root-ca end
# code_snippet configure-new-certificate-authority-usage end

- name: apply-new-ca
serial: true
Expand All @@ -1069,7 +1069,6 @@ jobs:
<<: *prepare-tasks-with-secrets
- task: prepare-image
<<: *prepare-image
# code_snippet apply-changes start yaml
- task: apply-product-changes
attempts: 3
image: platform-automation-image
Expand All @@ -1078,7 +1077,7 @@ jobs:
env: configuration
params:
ENV_FILE: foundations/config/env.yml
# code_snippet apply-changes end
SELECTIVE_DEPLOY_PRODUCTS: "cf,p-bosh,p-healthwatch2,p-healthwatch2-pas-exporter,pivotal-telemetry-om"

- name: activate-new-ca-and-regenerate-certs
serial: true
Expand All @@ -1097,24 +1096,24 @@ jobs:
<<: *prepare-tasks-with-secrets
- task: prepare-image
<<: *prepare-image
# code_snippet activate-certificate-authority start yaml
# code_snippet activate-certificate-authority-usage start yaml
- task: activate-new-ca
image: platform-automation-image
file: platform-automation-tasks/tasks/activate-certificate-authority.yml
input_mapping:
env: configuration
params:
ENV_FILE: foundations/config/env.yml
# code_snippet activate-certificate-authority end
# code_snippet regenerate-certificates start yaml
# code_snippet activate-certificate-authority-usage end
# code_snippet regenerate-certificates-usage start yaml
- task: regenerate-certificates
image: platform-automation-image
file: platform-automation-tasks/tasks/regenerate-certificates.yml
input_mapping:
env: configuration
params:
ENV_FILE: foundations/config/env.yml
# code_snippet regenerate-certificates end
# code_snippet regenerate-certificates-usage end

- name: apply-certificates
serial: true
Expand All @@ -1133,7 +1132,6 @@ jobs:
<<: *prepare-tasks-with-secrets
- task: prepare-image
<<: *prepare-image
# code_snippet apply-changes start yaml
- task: apply-product-changes
attempts: 3
image: platform-automation-image
Expand All @@ -1142,7 +1140,7 @@ jobs:
env: configuration
params:
ENV_FILE: foundations/config/env.yml
# code_snippet apply-changes end
SELECTIVE_DEPLOY_PRODUCTS: "cf,p-bosh,p-healthwatch2,p-healthwatch2-pas-exporter,pivotal-telemetry-om"

- name: cleanup-certificate-authorities
serial: true
Expand All @@ -1161,16 +1159,15 @@ jobs:
<<: *prepare-tasks-with-secrets
- task: prepare-image
<<: *prepare-image
# code_snippet delete-certificate-authority start yaml
# code_snippet delete-certificate-authority-usage start yaml
- task: delete-certificate-authority
image: platform-automation-image
file: platform-automation-tasks/tasks/delete-certificate-authority.yml
input_mapping:
env: configuration
params:
ENV_FILE: foundations/config/env.yml
# code_snippet delete-certificate-authority end
# code_snippet apply-changes start yaml
# code_snippet delete-certificate-authority-usage end
- task: apply-product-changes
attempts: 3
image: platform-automation-image
Expand All @@ -1179,10 +1176,8 @@ jobs:
env: configuration
params:
ENV_FILE: foundations/config/env.yml
# code_snippet apply-changes end

SELECTIVE_DEPLOY_PRODUCTS: "cf,p-bosh,p-healthwatch2,p-healthwatch2-pas-exporter,pivotal-telemetry-om"
# code_snippet certificate-rotation end

# code_snippet reference-jobs end yaml
# code_snippet reference-pipeline end
# The previous line helps maintain current documentation at http://docs.pivotal.io.

0 comments on commit 4dc085b

Please sign in to comment.