-
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.
- Loading branch information
Showing
6 changed files
with
172 additions
and
17 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
56 changes: 56 additions & 0 deletions
56
tests/application/subresource-status/application-error-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,56 @@ | ||
apiVersion: skiperator.kartverket.no/v1alpha1 | ||
kind: Application | ||
metadata: | ||
finalizers: | ||
- skip.statkart.no/finalizer | ||
name: borked | ||
spec: | ||
enablePDB: true | ||
image: image | ||
port: 8080 | ||
priority: medium | ||
redirectToHTTPS: true | ||
replicas: "2" | ||
strategy: | ||
type: RollingUpdate | ||
status: | ||
application: | ||
message: One of the controllers is in a failed state | ||
status: Error | ||
controllers: | ||
AuthorizationPolicy: | ||
message: AuthorizationPolicy has finished synchronizing | ||
status: Synced | ||
Certificate: | ||
message: Certificate has finished synchronizing | ||
status: Synced | ||
ConfigMap: | ||
message: ConfigMap has finished synchronizing | ||
status: Synced | ||
EgressServiceEntry: | ||
message: EgressServiceEntry has finished synchronizing | ||
status: Synced | ||
HorizontalPodAutoScaler: | ||
message: HorizontalPodAutoScaler has finished synchronizing | ||
status: Synced | ||
IngressGateway: | ||
message: IngressGateway has finished synchronizing | ||
status: Synced | ||
IngressVirtualService: | ||
message: IngressVirtualService has finished synchronizing | ||
status: Synced | ||
NetworkPolicy: | ||
message: NetworkPolicy has finished synchronizing | ||
status: Synced | ||
PeerAuthentication: | ||
message: PeerAuthentication has finished synchronizing | ||
status: Synced | ||
PodDisruptionBudget: | ||
message: 'json: cannot unmarshal string into Go value of type v1alpha1.Replicas' | ||
status: Error | ||
Service: | ||
message: Service has finished synchronizing | ||
status: Synced | ||
ServiceAccount: | ||
message: ServiceAccount has finished synchronizing | ||
status: Synced |
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,8 @@ | ||
apiVersion: skiperator.kartverket.no/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: borked | ||
spec: | ||
image: image | ||
port: 8080 | ||
replicas: "2" |
65 changes: 65 additions & 0 deletions
65
tests/application/subresource-status/application-synced-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,65 @@ | ||
apiVersion: skiperator.kartverket.no/v1alpha1 | ||
kind: Application | ||
metadata: | ||
finalizers: | ||
- skip.statkart.no/finalizer | ||
name: working | ||
spec: | ||
enablePDB: true | ||
image: image | ||
port: 8080 | ||
priority: medium | ||
redirectToHTTPS: true | ||
replicas: | ||
max: 5 | ||
min: 2 | ||
targetCpuUtilization: 80 | ||
strategy: | ||
type: RollingUpdate | ||
status: | ||
application: | ||
message: All controllers synced | ||
status: Synced | ||
controllers: | ||
AuthorizationPolicy: | ||
message: AuthorizationPolicy has finished synchronizing | ||
status: Synced | ||
Certificate: | ||
message: Certificate has finished synchronizing | ||
status: Synced | ||
ConfigMap: | ||
message: ConfigMap has finished synchronizing | ||
status: Synced | ||
Deployment: | ||
message: Deployment has finished synchronizing | ||
status: Synced | ||
EgressServiceEntry: | ||
message: EgressServiceEntry has finished synchronizing | ||
status: Synced | ||
HorizontalPodAutoScaler: | ||
message: HorizontalPodAutoScaler has finished synchronizing | ||
status: Synced | ||
IngressGateway: | ||
message: IngressGateway has finished synchronizing | ||
status: Synced | ||
IngressVirtualService: | ||
message: IngressVirtualService has finished synchronizing | ||
status: Synced | ||
NetworkPolicy: | ||
message: NetworkPolicy has finished synchronizing | ||
status: Synced | ||
PeerAuthentication: | ||
message: PeerAuthentication has finished synchronizing | ||
status: Synced | ||
PodDisruptionBudget: | ||
message: PodDisruptionBudget has finished synchronizing | ||
status: Synced | ||
Service: | ||
message: Service has finished synchronizing | ||
status: Synced | ||
ServiceAccount: | ||
message: ServiceAccount has finished synchronizing | ||
status: Synced | ||
ServiceMonitor: | ||
message: ServiceMonitor has finished synchronizing | ||
status: Synced |
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,7 @@ | ||
apiVersion: skiperator.kartverket.no/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: working | ||
spec: | ||
image: image | ||
port: 8080 |
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: chainsaw.kyverno.io/v1alpha1 | ||
kind: Test | ||
metadata: | ||
name: subresource-status | ||
spec: | ||
skip: false | ||
concurrent: true | ||
skipDelete: false | ||
steps: | ||
- try: | ||
- create: | ||
file: application-synced.yaml | ||
- assert: | ||
file: application-synced-assert.yaml | ||
- try: | ||
- create: | ||
file: application-error.yaml | ||
- assert: | ||
file: application-error-assert.yaml |