Skip to content

Commit 1dbaa36

Browse files
committed
Also include support for cron scheduling
1 parent 322a01b commit 1dbaa36

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

roles/github/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ github_buildx_inline_config: |
7171

7272
`github_tempest_test_suites`: provide a list of load lists to be made available within the drop-down list for running tempest. Defaults to `default` and `tempest-full`.
7373

74+
If you are using the workflow `github_run_kolla_ansible_octavia_certificates` to check for the expiry of Octavia Amphora certificates, by default it will allow for manual execution via workflow_dispatch. You can change this to run automatically on a schedule by setting `github_octavia_certificates_schedule` to a cron schedule. If you want to change the number of days checked, set the variable `github_default_octavia_certificates_expiry_time`.
75+
7476
If you wish to make more impactful changes such as which workflows are built and what they contain then see the list of dictionaries called `workflows` in `defaults/main.yml`
7577

7678
`github_workflows:` is a list of dictionaries that contains each of the workflows described above. A given list element is made up of the following:

roles/github/templates/run-kolla-ansible-octavia-certificates-check-expiry.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959

6060
- name: Check Octavia certificates expiry
6161
run: |
62-
/src/.automation/pipeline/kolla-ansible-run.sh "octavia-certificates --check-expiry %% workflow.expiry_time %%"
62+
/src/.automation/pipeline/kolla-ansible-run.sh "octavia-certificates --check-expiry <%- if github_octavia_certificates_schedule %> %% workflow.expiry_time %% <%- else %> ${{ inputs.expiry_time }} <%- endif -%>"
6363
env:
6464
<% if github_environment_selector is not none %>
6565
KAYOBE_ENVIRONMENT: '%% github_kayobe_arguments.KAYOBE_ENVIRONMENT %%'

0 commit comments

Comments
 (0)