-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix access policies not updating status when no job (#532)
- Loading branch information
Showing
5 changed files
with
78 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
tests/skipjob/access-policy-job/status-ready-no-job-assert.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
apiVersion: skiperator.kartverket.no/v1alpha1 | ||
kind: SKIPJob | ||
metadata: | ||
name: status-ready-no-job | ||
status: | ||
accessPolicies: Ready | ||
conditions: | ||
- type: Failed | ||
status: 'False' | ||
- type: Running | ||
status: 'False' | ||
- type: Finished | ||
status: 'False' | ||
- message: Internal rules are valid | ||
reason: ApplicationReconciled | ||
status: 'True' | ||
type: InternalRulesValid | ||
subresources: | ||
CronJob[status-ready-no-job]: | ||
message: CronJob has finished synchronizing | ||
status: Synced | ||
ServiceAccount[status-ready-no-job-skipjob]: | ||
message: ServiceAccount has finished synchronizing | ||
status: Synced | ||
ServiceEntry[skipjob-status-ready-no-job-egress-3da5ecd99bd5b65]: | ||
message: ServiceEntry has finished synchronizing | ||
status: Synced | ||
summary: | ||
message: All subresources synced | ||
status: Synced | ||
spec: | ||
container: | ||
accessPolicy: | ||
outbound: | ||
external: | ||
- host: data.helsecert.no | ||
image: image | ||
cron: | ||
allowConcurrency: Allow | ||
schedule: 0 6 * * * | ||
suspend: false | ||
job: | ||
backoffLimit: 6 | ||
suspend: false | ||
ttlSecondsAfterFinished: 3600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: skiperator.kartverket.no/v1alpha1 | ||
kind: SKIPJob | ||
metadata: | ||
name: status-ready-no-job | ||
spec: | ||
container: | ||
accessPolicy: | ||
outbound: | ||
external: | ||
- host: data.helsecert.no | ||
image: image | ||
cron: | ||
allowConcurrency: Allow | ||
schedule: "0 6 * * *" | ||
suspend: false | ||
job: | ||
backoffLimit: 6 | ||
suspend: false | ||
ttlSecondsAfterFinished: 3600 |