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

feat(guardian): introduce new guardian jobs #32

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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: 2 additions & 2 deletions stable/guardian/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.0
version: 0.2.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.3.0"
appVersion: "0.7.5-beta.2"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we include the latest stable release instead of -beta version one?


dependencies:
- name: app
Expand Down
26 changes: 22 additions & 4 deletions stable/guardian/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,38 @@ app:
- job
- run
- fetch_resources
- name: "appeal-expiration-reminder"
- name: "expiring-grant-notification"
schedule: "0 9 * * *"
restartPolicy: Never
command: []
args:
- job
- run
- appeal_expiration_reminder
- name: "appeal-expiration-revocation"
- expiring_grant_notification
- name: "revoke-expired-grants"
schedule: "*/20 * * * *"
restartPolicy: Never
command: []
args:
- job
- run
- appeal_expiration_revocation
- revoke_expired_grants
- name: "inactive-revocation"
schedule: "0 7 * * *"
restartPolicy: Never
command: []
args:
- job
- run
- revoke_grants_by_user_criteria
- name: "dormancy-check"
schedule: "0 8 * * *"
restartPolicy: Never
command: []
args:
- job
- run
- grant_dormancy_check

ingress:
enabled: true
Expand All @@ -85,6 +101,8 @@ app:
JOBS_REVOKE_EXPIRED_ACCESS_INTERVAL: "*/20 * * * *"
JOBS_EXPIRING_ACCESS_NOTIFICATION_ENABLED: false
JOBS_EXPIRING_ACCESS_NOTIFICATION_INTERVAL: "0 9 * * *"
Comment on lines 101 to 103
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add grant related flags also here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

those are optional, we can omit them from here

Copy link
Collaborator

@bsushmith bsushmith Aug 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Some of these existing ones are deprecated if I recall correctly. Can we remove the deprecated ones also.

JOBS_REVOKE_GRANTS_BY_USER_CRITERIA_CONFIG: '{"dry_run":true}'
JOBS_GRANT_DORMANCY_CHECK_CONFIG: '{"dry_run":true}'


secretConfig:
Expand Down