-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configmaps: Track resource versions of cluster provided CA certs (PRO…
…JQUAY-5174) - The config.openshift.io/inject-trusted-cabundle: 'true' annotation will inject content into the config map after kustomize has generated its resources. This means that kustomize will not be aware of changes made by Openshift to these config maps - In order to redeploy QuayRegistry resources when cluster CA are rotated, this PR implements a mechanism to track the resource version of the CA as an annotation on the Quay resources
- Loading branch information
1 parent
8aec3f2
commit 93f2e15
Showing
12 changed files
with
257 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
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,71 @@ | ||
apiVersion: quay.redhat.com/v1 | ||
kind: QuayRegistry | ||
metadata: | ||
name: ca-rotation | ||
spec: | ||
components: | ||
- kind: monitoring | ||
managed: false | ||
- kind: mirror | ||
managed: false | ||
- kind: horizontalpodautoscaler | ||
managed: false | ||
- kind: clair | ||
managed: false | ||
- kind: clairpostgres | ||
managed: false | ||
- kind: quay | ||
managed: true | ||
- kind: postgres | ||
managed: true | ||
- kind: redis | ||
managed: true | ||
- kind: objectstorage | ||
managed: true | ||
- kind: route | ||
managed: true | ||
- kind: tls | ||
managed: true | ||
status: | ||
conditions: | ||
- type: ComponentHPAReady | ||
reason: ComponentNotManaged | ||
status: "True" | ||
- type: ComponentRouteReady | ||
reason: ComponentReady | ||
status: "True" | ||
- type: ComponentMonitoringReady | ||
reason: ComponentNotManaged | ||
status: "True" | ||
- type: ComponentPostgresReady | ||
reason: ComponentReady | ||
status: "True" | ||
- type: ComponentObjectStorageReady | ||
reason: ComponentReady | ||
status: "True" | ||
- type: ComponentClairReady | ||
reason: ComponentNotManaged | ||
status: "True" | ||
- type: ComponentClairPostgresReady | ||
reason: ComponentNotManaged | ||
status: "True" | ||
- type: ComponentTLSReady | ||
reason: ComponentReady | ||
status: "True" | ||
- type: ComponentRedisReady | ||
reason: ComponentReady | ||
status: "True" | ||
- type: ComponentQuayReady | ||
reason: ComponentReady | ||
status: "True" | ||
- type: ComponentMirrorReady | ||
reason: ComponentNotManaged | ||
status: "True" | ||
- type: Available | ||
reason: HealthChecksPassing | ||
status: "True" | ||
- type: ComponentsCreated | ||
reason: ComponentsCreationSuccess | ||
status: "True" | ||
- type: RolloutBlocked | ||
status: "False" |
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,16 @@ | ||
apiVersion: quay.redhat.com/v1 | ||
kind: QuayRegistry | ||
metadata: | ||
name: ca-rotation | ||
spec: | ||
components: | ||
- kind: monitoring | ||
managed: false | ||
- kind: mirror | ||
managed: false | ||
- kind: horizontalpodautoscaler | ||
managed: false | ||
- kind: clair | ||
managed: false | ||
- kind: clairpostgres | ||
managed: false |
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,71 @@ | ||
apiVersion: quay.redhat.com/v1 | ||
kind: QuayRegistry | ||
metadata: | ||
name: ca-rotation | ||
spec: | ||
components: | ||
- kind: monitoring | ||
managed: false | ||
- kind: mirror | ||
managed: false | ||
- kind: horizontalpodautoscaler | ||
managed: false | ||
- kind: clair | ||
managed: false | ||
- kind: clairpostgres | ||
managed: false | ||
- kind: quay | ||
managed: true | ||
- kind: postgres | ||
managed: true | ||
- kind: redis | ||
managed: true | ||
- kind: objectstorage | ||
managed: true | ||
- kind: route | ||
managed: true | ||
- kind: tls | ||
managed: true | ||
status: | ||
conditions: | ||
- type: ComponentHPAReady | ||
reason: ComponentNotManaged | ||
status: "True" | ||
- type: ComponentRouteReady | ||
reason: ComponentReady | ||
status: "True" | ||
- type: ComponentMonitoringReady | ||
reason: ComponentNotManaged | ||
status: "True" | ||
- type: ComponentPostgresReady | ||
reason: ComponentReady | ||
status: "True" | ||
- type: ComponentObjectStorageReady | ||
reason: ComponentReady | ||
status: "True" | ||
- type: ComponentClairReady | ||
reason: ComponentNotManaged | ||
status: "True" | ||
- type: ComponentClairPostgresReady | ||
reason: ComponentNotManaged | ||
status: "True" | ||
- type: ComponentTLSReady | ||
reason: ComponentReady | ||
status: "True" | ||
- type: ComponentRedisReady | ||
reason: ComponentReady | ||
status: "True" | ||
- type: ComponentQuayReady | ||
reason: ComponentReady | ||
status: "True" | ||
- type: ComponentMirrorReady | ||
reason: ComponentNotManaged | ||
status: "True" | ||
- type: Available | ||
reason: HealthChecksPassing | ||
status: "True" | ||
- type: ComponentsCreated | ||
reason: ComponentsCreationSuccess | ||
status: "True" | ||
- type: RolloutBlocked | ||
status: "False" |
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,13 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
assert: | ||
- 01-assert.yaml | ||
commands: | ||
# This is how we manually rotate the cert as per https://docs.openshift.com/container-platform/4.13/security/certificates/service-serving-certificate.html#manually-rotate-service-ca_service-serving-certificate | ||
- script: | | ||
kubectl delete secret/signing-key -n openshift-service-ca; | ||
for I in $(oc get ns -o jsonpath='{range .items[*]} {.metadata.name}{"\n"} {end}'); \ | ||
do oc delete pods --all -n $I; \ | ||
sleep 1; \ | ||
done | ||
timeout: 3000 |
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
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