Skip to content

Commit

Permalink
chore(updatecli): improve end-dates manifest titles (#753)
Browse files Browse the repository at this point in the history
Follow-up of:
- #749
- #740

---------

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Co-authored-by: Damien Duportal <damien.duportal@gmail.com>
  • Loading branch information
lemeurherve and dduportal authored Jun 26, 2024
1 parent 7163466 commit 488b46e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ $github := .github }}
{{ range $key, $val := .end_dates.infra_ci_jenkins_io }}
---
name: "Generate new end date for {{ $val.service }} File Share service principal writer"
name: "Generate new end date for {{ $val.service }} File Share service principal writer on infra.ci.jenkins.io"

scms:
default:
Expand Down Expand Up @@ -49,7 +49,7 @@ conditions:

targets:
updateNextEndDate:
name: generate new end date {{ source "shortNextEndDate" }} for {{ $val.service }} File Share service principal writer on infra.ci.jenkins.io
name: new end date `{{ source "shortNextEndDate" }}` for `{{ $val.service }}` File Share service principal writer on `infra.ci.jenkins.io`
kind: yaml
sourceid: nextEndDate
spec:
Expand All @@ -62,7 +62,7 @@ actions:
kind: github/pullrequest
scmid: default
spec:
title: Generate new end date {{ source "shortNextEndDate" }} for {{ $val.service }} File Share service principal writer on infra.ci.jenkins.io
title: New end date `{{ source "shortNextEndDate" }}` for `{{ $val.service }}` File Share service principal writer on `infra.ci.jenkins.io`
description: |
This PR updates the end date of {{ $val.service }} File Share service principal writer on infra.ci.jenkins.io.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ $github := .github }}
{{ range $key, $val := .end_dates.trusted_ci_jenkins_io }}
---
name: "Generate new end date for {{ $val.service }} File Share service principal writer"
name: "Generate new end date for {{ $val.service }} File Share service principal writer on trusted.ci.jenkins.io"

scms:
default:
Expand Down Expand Up @@ -49,7 +49,7 @@ conditions:

targets:
updateNextEndDate:
name: generate new end date {{ source "shortNextEndDate" }} for {{ $val.service }} File Share service principal writer on trusted.ci.jenkins.io
name: new end date `{{ source "shortNextEndDate" }}` for `{{ $val.service }}` File Share service principal writer on `trusted.ci.jenkins.io`
kind: yaml
sourceid: nextEndDate
spec:
Expand All @@ -62,22 +62,18 @@ actions:
kind: github/pullrequest
scmid: default
spec:
title: Generate new end date {{ source "shortNextEndDate" }} for {{ $val.service }} File Share service principal writer on trusted.ci.jenkins.io
title: New end date `{{ source "shortNextEndDate" }}` for `{{ $val.service }}` File Share service principal writer on `trusted.ci.jenkins.io`
description: |
This PR updates the end date of {{ $val.service }} File Share service principal writer used in trusted.ci.jenkins.io.
The current end date is set to `{{ $val.end_date }}`.
After merging this PR, a new password will be generated.
> [!IMPORTANT]
> You'll have to ensure that `{{ $val.secret }}` is updated with this new password!
> You'll have to ensure that the trusted.ci.jenkins.io top-level credential `{{ $val.secret }}` is updated with this new password!
If you don't, {{ $val.service }} File Share won't be updated by trusted.ci.jenkins.io jobs anymore.
> [!NOTE]
> This message is a work in progress that needs to be improved
> Check https://github.com/jenkins-infra/helpdesk/issues/4148 for the next steps.
labels:
- terraform
- {{ $val.service }}
Expand Down
12 changes: 6 additions & 6 deletions updatecli/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ end_dates:
trusted_ci_jenkins_io:
trustedci_updatesjenkinsio_content_fileshare_serviceprincipal_writer:
end_date: 2024-09-22T00:00:00Z
service: "updates.jenkins.io"
secret: "TODO: to be identified, related to updates.jenkins.io"
service: "updates.jenkins.io (content)"
secret: "trusted_ci_jenkins_io_fileshare_serviceprincipal_writer"
trustedci_updatesjenkinsio_redirections_fileshare_serviceprincipal_writer:
end_date: 2024-09-22T00:00:00Z
service: "updates.jenkins.io (httpd)"
secret: "TODO: to be identified, related to updates.jenkins.io (httpd)"
service: "updates.jenkins.io (redirections)"
secret: "TODO: to be identified, related to updates.jenkins.io (redirections)"
trustedci_jenkinsio_fileshare_serviceprincipal_writer:
end_date: "2024-07-23T00:00:00Z"
service: "jenkins.io"
secret: "TODO: to be identified, related to jenkins.io"
secret: "trustedci_jenkinsio_fileshare_serviceprincipal_writer"
trustedci_javadocjenkinsio_fileshare_serviceprincipal_writer:
end_date: "2024-07-28T00:00:00Z"
service: "javadoc.jenkins.io"
secret: "TODO: to be identified, related to javadoc.jenkins.io"
secret: "trustedci_javadocjenkinsio_fileshare_serviceprincipal_writer"

0 comments on commit 488b46e

Please sign in to comment.