From f69d851be406f9eb2a9ef5bb26826d287cd03475 Mon Sep 17 00:00:00 2001 From: Fabio Bertinatto Date: Fri, 21 Nov 2025 14:34:11 -0300 Subject: [PATCH] om: add test to show what input the TODO-other-configObserver controller requires --- .../authentications/29ab-body-cluster.yaml | 9 + .../29ab-metadata-cluster.yaml | 9 + .../authentications/29ab-options-cluster.yaml | 2 + ...on-operator.17fe72c59b829800.87c2a194.yaml | 20 + ...on-operator.17fe72c59b829800.87c2a194.yaml | 9 + ...on-operator.17fe72c59b829800.49fb0e36.yaml | 23 + ...on-operator.17fe72c59b829800.49fb0e36.yaml | 9 + ...on-operator.17fe72c59b829800.c4ead233.yaml | 25 + ...on-operator.17fe72c59b829800.c4ead233.yaml | 9 + ...on-operator.17fe72c59b829800.7cfd43de.yaml | 20 + ...on-operator.17fe72c59b829800.7cfd43de.yaml | 9 + ...on-operator.17fe72c59b829800.44a05c38.yaml | 20 + ...on-operator.17fe72c59b829800.44a05c38.yaml | 9 + ...on-operator.17fe72c59b829800.3f819c88.yaml | 20 + ...on-operator.17fe72c59b829800.3f819c88.yaml | 9 + .../authentications/9a45-body-cluster.yaml | 831 ++++++++++++++++++ .../9a45-metadata-cluster.yaml | 8 + .../expected-output/controller-results.yaml | 81 ++ .../config.openshift.io/apiservers.yaml | 50 ++ .../authentications/cluster.yaml | 75 ++ .../config.openshift.io/clusterversions.yaml | 166 ++++ .../config.openshift.io/consoles/cluster.yaml | 48 + .../config.openshift.io/infrastructures.yaml | 99 +++ .../config.openshift.io/oauths/cluster.yaml | 63 ++ .../authentications/cluster.yaml | 809 +++++++++++++++++ .../core/secrets.yaml | 28 + .../openshift-etcd/core/configmaps.yaml | 30 + .../oauth-apiserver-config-observer/test.yaml | 18 + 28 files changed, 2508 insertions(+) create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/ApplyStatus/cluster-scoped-resources/operator.openshift.io/authentications/29ab-body-cluster.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/ApplyStatus/cluster-scoped-resources/operator.openshift.io/authentications/29ab-metadata-cluster.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/ApplyStatus/cluster-scoped-resources/operator.openshift.io/authentications/29ab-options-cluster.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/1225-body-authentication-operator.17fe72c59b829800.87c2a194.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/1225-metadata-authentication-operator.17fe72c59b829800.87c2a194.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/5b77-body-authentication-operator.17fe72c59b829800.49fb0e36.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/5b77-metadata-authentication-operator.17fe72c59b829800.49fb0e36.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/9405-body-authentication-operator.17fe72c59b829800.c4ead233.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/9405-metadata-authentication-operator.17fe72c59b829800.c4ead233.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/a2b3-body-authentication-operator.17fe72c59b829800.7cfd43de.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/a2b3-metadata-authentication-operator.17fe72c59b829800.7cfd43de.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/ab40-body-authentication-operator.17fe72c59b829800.44a05c38.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/ab40-metadata-authentication-operator.17fe72c59b829800.44a05c38.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/e039-body-authentication-operator.17fe72c59b829800.3f819c88.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/e039-metadata-authentication-operator.17fe72c59b829800.3f819c88.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Update/cluster-scoped-resources/operator.openshift.io/authentications/9a45-body-cluster.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Update/cluster-scoped-resources/operator.openshift.io/authentications/9a45-metadata-cluster.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/controller-results.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/apiservers.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/authentications/cluster.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/clusterversions.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/consoles/cluster.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/infrastructures.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/oauths/cluster.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/operator.openshift.io/authentications/cluster.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/namespaces/openshift-authentication/core/secrets.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/namespaces/openshift-etcd/core/configmaps.yaml create mode 100644 test-data/apply-configuration/overall/oauth-apiserver-config-observer/test.yaml diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/ApplyStatus/cluster-scoped-resources/operator.openshift.io/authentications/29ab-body-cluster.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/ApplyStatus/cluster-scoped-resources/operator.openshift.io/authentications/29ab-body-cluster.yaml new file mode 100644 index 0000000000..977e397c72 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/ApplyStatus/cluster-scoped-resources/operator.openshift.io/authentications/29ab-body-cluster.yaml @@ -0,0 +1,9 @@ +apiVersion: operator.openshift.io/v1 +kind: Authentication +metadata: + name: cluster +status: + conditions: + - lastTransitionTime: "2024-10-14T22:38:20Z" + status: "False" + type: OAuthAPIServerConfigObservationDegraded diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/ApplyStatus/cluster-scoped-resources/operator.openshift.io/authentications/29ab-metadata-cluster.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/ApplyStatus/cluster-scoped-resources/operator.openshift.io/authentications/29ab-metadata-cluster.yaml new file mode 100644 index 0000000000..cf8af10c94 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/ApplyStatus/cluster-scoped-resources/operator.openshift.io/authentications/29ab-metadata-cluster.yaml @@ -0,0 +1,9 @@ +action: ApplyStatus +controllerInstanceName: TODO-other-configObserver +fieldManager: oauth-apiserver-ConfigObserver +generateName: "" +name: cluster +resourceType: + Group: operator.openshift.io + Resource: authentications + Version: v1 diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/ApplyStatus/cluster-scoped-resources/operator.openshift.io/authentications/29ab-options-cluster.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/ApplyStatus/cluster-scoped-resources/operator.openshift.io/authentications/29ab-options-cluster.yaml new file mode 100644 index 0000000000..44ff8d9d2b --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/ApplyStatus/cluster-scoped-resources/operator.openshift.io/authentications/29ab-options-cluster.yaml @@ -0,0 +1,2 @@ +fieldManager: oauth-apiserver-ConfigObserver +force: true diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/1225-body-authentication-operator.17fe72c59b829800.87c2a194.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/1225-body-authentication-operator.17fe72c59b829800.87c2a194.yaml new file mode 100644 index 0000000000..8711b7d0e1 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/1225-body-authentication-operator.17fe72c59b829800.87c2a194.yaml @@ -0,0 +1,20 @@ +apiVersion: v1 +count: 1 +eventTime: null +firstTimestamp: "2024-10-14T22:38:20Z" +involvedObject: + kind: Deployment + name: authentication-operator + namespace: openshift-authentication-operator +kind: Event +lastTimestamp: "2024-10-14T22:38:20Z" +message: service account issuer changed from to https://kubernetes.default.svc +metadata: + name: authentication-operator.17fe72c59b829800.87c2a194 + namespace: openshift-authentication-operator +reason: ObserveAPIAudiences +reportingComponent: "" +reportingInstance: "" +source: + component: cluster-authentication-operator-run-once-sync-context +type: Normal diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/1225-metadata-authentication-operator.17fe72c59b829800.87c2a194.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/1225-metadata-authentication-operator.17fe72c59b829800.87c2a194.yaml new file mode 100644 index 0000000000..1ad282b526 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/1225-metadata-authentication-operator.17fe72c59b829800.87c2a194.yaml @@ -0,0 +1,9 @@ +action: Create +controllerInstanceName: "" +generateName: "" +name: authentication-operator.17fe72c59b829800.87c2a194 +namespace: openshift-authentication-operator +resourceType: + Group: "" + Resource: events + Version: v1 diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/5b77-body-authentication-operator.17fe72c59b829800.49fb0e36.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/5b77-body-authentication-operator.17fe72c59b829800.49fb0e36.yaml new file mode 100644 index 0000000000..d1ecf8fe29 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/5b77-body-authentication-operator.17fe72c59b829800.49fb0e36.yaml @@ -0,0 +1,23 @@ +apiVersion: v1 +count: 1 +eventTime: null +firstTimestamp: "2024-10-14T22:38:20Z" +involvedObject: + kind: Deployment + name: authentication-operator + namespace: openshift-authentication-operator +kind: Event +lastTimestamp: "2024-10-14T22:38:20Z" +message: cipherSuites changed to ["TLS_AES_128_GCM_SHA256" "TLS_AES_256_GCM_SHA384" + "TLS_CHACHA20_POLY1305_SHA256" "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" + "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" + "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256" "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256"] +metadata: + name: authentication-operator.17fe72c59b829800.49fb0e36 + namespace: openshift-authentication-operator +reason: ObserveTLSSecurityProfile +reportingComponent: "" +reportingInstance: "" +source: + component: cluster-authentication-operator-run-once-sync-context +type: Normal diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/5b77-metadata-authentication-operator.17fe72c59b829800.49fb0e36.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/5b77-metadata-authentication-operator.17fe72c59b829800.49fb0e36.yaml new file mode 100644 index 0000000000..8da0590d3a --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/5b77-metadata-authentication-operator.17fe72c59b829800.49fb0e36.yaml @@ -0,0 +1,9 @@ +action: Create +controllerInstanceName: "" +generateName: "" +name: authentication-operator.17fe72c59b829800.49fb0e36 +namespace: openshift-authentication-operator +resourceType: + Group: "" + Resource: events + Version: v1 diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/9405-body-authentication-operator.17fe72c59b829800.c4ead233.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/9405-body-authentication-operator.17fe72c59b829800.c4ead233.yaml new file mode 100644 index 0000000000..86c1cc1d97 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/9405-body-authentication-operator.17fe72c59b829800.c4ead233.yaml @@ -0,0 +1,25 @@ +apiVersion: v1 +count: 1 +eventTime: null +firstTimestamp: "2024-10-14T22:38:20Z" +involvedObject: + kind: Deployment + name: authentication-operator + namespace: openshift-authentication-operator +kind: Event +lastTimestamp: "2024-10-14T22:38:20Z" +message: 'Writing updated section ("oauthAPIServer") of observed config: "@@ -1 +1,29 + @@\n-null\n+{\n+ \"apiServerArguments\": {\n+ \"api-audiences\": [\n+ \"https://kubernetes.default.svc\"\n+ ],\n+ \"cors-allowed-origins\": + [\n+ \"//127\\\\.0\\\\.0\\\\.1(:|$)\",\n+ \"//localhost(:|$)\"\n+ ],\n+ \"etcd-servers\": + [\n+ \"https://10.0.0.3:2379\",\n+ \"https://10.0.0.4:2379\",\n+ \"https://10.0.0.5:2379\"\n+ ],\n+ \"feature-gates\": + [],\n+ \"tls-cipher-suites\": [\n+ \"TLS_AES_128_GCM_SHA256\",\n+ \"TLS_AES_256_GCM_SHA384\",\n+ \"TLS_CHACHA20_POLY1305_SHA256\",\n+ \"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256\",\n+ \"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256\",\n+ \"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384\",\n+ \"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384\",\n+ \"TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256\",\n+ \"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256\"\n+ ],\n+ \"tls-min-version\": + \"VersionTLS12\"\n+ }\n+}\n"' +metadata: + name: authentication-operator.17fe72c59b829800.c4ead233 + namespace: openshift-authentication-operator +reason: ObservedConfigChanged +reportingComponent: "" +reportingInstance: "" +source: + component: cluster-authentication-operator-run-once-sync-context +type: Normal diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/9405-metadata-authentication-operator.17fe72c59b829800.c4ead233.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/9405-metadata-authentication-operator.17fe72c59b829800.c4ead233.yaml new file mode 100644 index 0000000000..3fe8c625f2 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/9405-metadata-authentication-operator.17fe72c59b829800.c4ead233.yaml @@ -0,0 +1,9 @@ +action: Create +controllerInstanceName: "" +generateName: "" +name: authentication-operator.17fe72c59b829800.c4ead233 +namespace: openshift-authentication-operator +resourceType: + Group: "" + Resource: events + Version: v1 diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/a2b3-body-authentication-operator.17fe72c59b829800.7cfd43de.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/a2b3-body-authentication-operator.17fe72c59b829800.7cfd43de.yaml new file mode 100644 index 0000000000..b45f9f58c1 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/a2b3-body-authentication-operator.17fe72c59b829800.7cfd43de.yaml @@ -0,0 +1,20 @@ +apiVersion: v1 +count: 1 +eventTime: null +firstTimestamp: "2024-10-14T22:38:20Z" +involvedObject: + kind: Deployment + name: authentication-operator + namespace: openshift-authentication-operator +kind: Event +lastTimestamp: "2024-10-14T22:38:20Z" +message: 'Updated apiServerArguments.feature-gates to ' +metadata: + name: authentication-operator.17fe72c59b829800.7cfd43de + namespace: openshift-authentication-operator +reason: ObserveFeatureFlagsUpdated +reportingComponent: "" +reportingInstance: "" +source: + component: cluster-authentication-operator-run-once-sync-context +type: Normal diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/a2b3-metadata-authentication-operator.17fe72c59b829800.7cfd43de.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/a2b3-metadata-authentication-operator.17fe72c59b829800.7cfd43de.yaml new file mode 100644 index 0000000000..60c827a823 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/a2b3-metadata-authentication-operator.17fe72c59b829800.7cfd43de.yaml @@ -0,0 +1,9 @@ +action: Create +controllerInstanceName: "" +generateName: "" +name: authentication-operator.17fe72c59b829800.7cfd43de +namespace: openshift-authentication-operator +resourceType: + Group: "" + Resource: events + Version: v1 diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/ab40-body-authentication-operator.17fe72c59b829800.44a05c38.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/ab40-body-authentication-operator.17fe72c59b829800.44a05c38.yaml new file mode 100644 index 0000000000..1aa54cba4a --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/ab40-body-authentication-operator.17fe72c59b829800.44a05c38.yaml @@ -0,0 +1,20 @@ +apiVersion: v1 +count: 1 +eventTime: null +firstTimestamp: "2024-10-14T22:38:20Z" +involvedObject: + kind: Deployment + name: authentication-operator + namespace: openshift-authentication-operator +kind: Event +lastTimestamp: "2024-10-14T22:38:20Z" +message: minTLSVersion changed to VersionTLS12 +metadata: + name: authentication-operator.17fe72c59b829800.44a05c38 + namespace: openshift-authentication-operator +reason: ObserveTLSSecurityProfile +reportingComponent: "" +reportingInstance: "" +source: + component: cluster-authentication-operator-run-once-sync-context +type: Normal diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/ab40-metadata-authentication-operator.17fe72c59b829800.44a05c38.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/ab40-metadata-authentication-operator.17fe72c59b829800.44a05c38.yaml new file mode 100644 index 0000000000..0b041a3dc6 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/ab40-metadata-authentication-operator.17fe72c59b829800.44a05c38.yaml @@ -0,0 +1,9 @@ +action: Create +controllerInstanceName: "" +generateName: "" +name: authentication-operator.17fe72c59b829800.44a05c38 +namespace: openshift-authentication-operator +resourceType: + Group: "" + Resource: events + Version: v1 diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/e039-body-authentication-operator.17fe72c59b829800.3f819c88.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/e039-body-authentication-operator.17fe72c59b829800.3f819c88.yaml new file mode 100644 index 0000000000..428d720d6a --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/e039-body-authentication-operator.17fe72c59b829800.3f819c88.yaml @@ -0,0 +1,20 @@ +apiVersion: v1 +count: 1 +eventTime: null +firstTimestamp: "2024-10-14T22:38:20Z" +involvedObject: + kind: Deployment + name: authentication-operator + namespace: openshift-authentication-operator +kind: Event +lastTimestamp: "2024-10-14T22:38:20Z" +message: Updated storage urls to https://10.0.0.3:2379,https://10.0.0.4:2379,https://10.0.0.5:2379 +metadata: + name: authentication-operator.17fe72c59b829800.3f819c88 + namespace: openshift-authentication-operator +reason: ObserveStorageUpdated +reportingComponent: "" +reportingInstance: "" +source: + component: cluster-authentication-operator-run-once-sync-context +type: Normal diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/e039-metadata-authentication-operator.17fe72c59b829800.3f819c88.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/e039-metadata-authentication-operator.17fe72c59b829800.3f819c88.yaml new file mode 100644 index 0000000000..26edc53ea4 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/e039-metadata-authentication-operator.17fe72c59b829800.3f819c88.yaml @@ -0,0 +1,9 @@ +action: Create +controllerInstanceName: "" +generateName: "" +name: authentication-operator.17fe72c59b829800.3f819c88 +namespace: openshift-authentication-operator +resourceType: + Group: "" + Resource: events + Version: v1 diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Update/cluster-scoped-resources/operator.openshift.io/authentications/9a45-body-cluster.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Update/cluster-scoped-resources/operator.openshift.io/authentications/9a45-body-cluster.yaml new file mode 100644 index 0000000000..f690197966 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Update/cluster-scoped-resources/operator.openshift.io/authentications/9a45-body-cluster.yaml @@ -0,0 +1,831 @@ +apiVersion: operator.openshift.io/v1 +kind: Authentication +metadata: + annotations: + include.release.openshift.io/self-managed-high-availability: "true" + include.release.openshift.io/single-node-developer: "true" + release.openshift.io/create-only: "true" + creationTimestamp: "2025-09-09T00:02:33Z" + generation: 22 + managedFields: + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"WebhookAuthenticatorCertApprover_OpenShiftAuthenticatorDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: WebhookAuthenticatorCertApprover_OpenShiftAuthenticator-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:08:13Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"ManagementStateDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: authentication-ManagementState + operation: Apply + subresource: status + time: "2025-09-09T00:08:13Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"UnsupportedConfigOverridesUpgradeable"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: openshift-authentication-UnsupportedConfigOverrides + operation: Apply + subresource: status + time: "2025-09-09T00:08:13Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthAPIServerConfigObservationDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: oauth-apiserver-ConfigObserver + operation: Apply + subresource: status + time: "2025-09-09T00:08:15Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"Encrypted"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: openshift-oauth-apiserver-EncryptionCondition + operation: Apply + subresource: status + time: "2025-09-09T00:08:15Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"EncryptionKeyControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: openshift-oauth-apiserver-EncryptionKey + operation: Apply + subresource: status + time: "2025-09-09T00:08:15Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"EncryptionMigrationControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + k:{"type":"EncryptionMigrationControllerProgressing"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: openshift-oauth-apiserver-EncryptionMigration + operation: Apply + subresource: status + time: "2025-09-09T00:08:15Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"EncryptionPruneControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: openshift-oauth-apiserver-EncryptionPrune + operation: Apply + subresource: status + time: "2025-09-09T00:08:15Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"EncryptionStateControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: openshift-oauth-apiserver-EncryptionState + operation: Apply + subresource: status + time: "2025-09-09T00:08:15Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthClientsController_SwitchedControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: OAuthClientsController_SwitchedController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:08:16Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"ResourceSyncControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: oauth-server-ResourceSync + operation: Apply + subresource: status + time: "2025-09-09T00:08:20Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"AuditPolicyDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: oauth-apiserver-AuditPolicy + operation: Apply + subresource: status + time: "2025-09-09T00:08:21Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"RouterCertsDomainValidationControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: RouterCertsDomainValidationController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:08:22Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"AuthenticatorCertKeyProgressing"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + manager: openshift-authentication-WebhookAuthenticator + operation: Apply + subresource: status + time: "2025-09-09T00:08:26Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"RevisionControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: RevisionController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:08:32Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:latestAvailableRevision: {} + manager: oauth-apiserver-RevisionController + operation: Apply + subresource: status + time: "2025-09-09T00:08:32Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"APIServicesAvailable"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + k:{"type":"APIServicesDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: openshift-apiserver-APIService + operation: Apply + subresource: status + time: "2025-09-09T00:25:57Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OpenshiftAuthenticationStaticResourcesDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + manager: OpenshiftAuthenticationStaticResources-StaticResources + operation: Apply + subresource: status + time: "2025-09-09T00:26:00Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"APIServerStaticResourcesDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + manager: APIServerStaticResources-StaticResources + operation: Apply + subresource: status + time: "2025-09-09T00:26:01Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"WebhookAuthenticatorControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: WebhookAuthenticatorController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:26:02Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthServiceDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"SystemServiceCAConfigDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + manager: openshift-authentication-ServiceCA + operation: Apply + subresource: status + time: "2025-09-09T00:26:02Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"ProxyConfigControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: ProxyConfigController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:26:12Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"AuthConfigDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"IngressConfigDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"OAuthSystemMetadataDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + manager: openshift-authentication-Metadata + operation: Apply + subresource: status + time: "2025-09-09T00:26:12Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthConfigDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"OAuthConfigIngressDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"OAuthConfigRouteDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"OAuthConfigServiceDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"OAuthSessionSecretDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + manager: openshift-authentication-PayloadConfig + operation: Apply + subresource: status + time: "2025-09-09T00:26:19Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"ReadyIngressNodesAvailable"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + manager: openshift-authentication-IngressNodesAvailable + operation: Apply + subresource: status + time: "2025-09-09T00:28:27Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthServerServiceEndpointAccessibleControllerAvailable"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: OAuthServerService-EndpointAccessible + operation: Apply + subresource: status + time: "2025-09-09T00:29:04Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthServerServiceEndpointAccessibleControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: OAuthServerServiceEndpointAccessibleController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:29:04Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthServerServiceEndpointsEndpointAccessibleControllerAvailable"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: OAuthServerServiceEndpoints-EndpointAccessible + operation: Apply + subresource: status + time: "2025-09-09T00:29:04Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthServerServiceEndpointsEndpointAccessibleControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: OAuthServerServiceEndpointsEndpointAccessibleController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:29:04Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"IngressStateEndpointsDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"IngressStatePodsDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + manager: openshift-authentication-IngressState + operation: Apply + subresource: status + time: "2025-09-09T00:29:12Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"WellKnownReadyControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: WellKnownReadyController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:38:50Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"CustomRouteControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: CustomRouteController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:44:53Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"RouterCertsDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + manager: openshift-authentication-RouterCertsDomainValidation + operation: Apply + subresource: status + time: "2025-09-09T00:44:55Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthClientsControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: OAuthClientsController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:45:58Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"WellKnownAvailable"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"WellKnownReadyControllerProgressing"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: openshift-authentication-WellKnownReady + operation: Apply + subresource: status + time: "2025-09-09T00:46:05Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthServerRouteEndpointAccessibleControllerAvailable"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: OAuthServerRoute-EndpointAccessible + operation: Apply + subresource: status + time: "2025-09-09T00:46:46Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthServerRouteEndpointAccessibleControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: OAuthServerRouteEndpointAccessibleController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:46:46Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthServerConfigObservationDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: oauth-server-ConfigObserver + operation: Apply + subresource: status + time: "2025-09-09T00:55:34Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthServerDeploymentAvailable"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"OAuthServerDeploymentDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"OAuthServerDeploymentProgressing"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"OAuthServerWorkloadDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + f:generations: + k:{"group":"apps","name":"oauth-openshift","namespace":"openshift-authentication","resource":"deployments"}: + .: {} + f:group: {} + f:lastGeneration: {} + f:name: {} + f:namespace: {} + f:resource: {} + manager: OAuthServer-Workload + operation: Apply + subresource: status + time: "2025-09-09T01:25:42Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"APIServerDeploymentAvailable"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"APIServerDeploymentDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"APIServerDeploymentProgressing"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"APIServerWorkloadDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + f:generations: + k:{"group":"apps","name":"apiserver","namespace":"openshift-oauth-apiserver","resource":"deployments"}: + .: {} + f:group: {} + f:lastGeneration: {} + f:name: {} + f:namespace: {} + f:resource: {} + manager: OAuthAPIServerController-Workload + operation: Apply + subresource: status + time: "2025-09-09T01:26:51Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:metadata: + f:annotations: + .: {} + f:include.release.openshift.io/self-managed-high-availability: {} + f:include.release.openshift.io/single-node-developer: {} + f:release.openshift.io/create-only: {} + f:ownerReferences: + .: {} + k:{"uid":"4e11cec4-056d-4b95-a391-a0912318fa40"}: {} + f:spec: + .: {} + f:logLevel: {} + f:managementState: {} + f:operatorLogLevel: {} + manager: cluster-version-operator + operation: Update + time: "2025-09-09T00:02:33Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:spec: + f:observedConfig: + .: {} + f:oauthAPIServer: + .: {} + f:apiServerArguments: + .: {} + f:api-audiences: {} + f:cors-allowed-origins: {} + f:etcd-servers: {} + f:feature-gates: {} + f:tls-cipher-suites: {} + f:tls-min-version: {} + f:oauthServer: + .: {} + f:corsAllowedOrigins: {} + f:oauthConfig: + .: {} + f:assetPublicURL: {} + f:loginURL: {} + f:templates: + .: {} + f:error: {} + f:login: {} + f:providerSelection: {} + f:tokenConfig: + .: {} + f:accessTokenMaxAgeSeconds: {} + f:authorizeTokenMaxAgeSeconds: {} + f:serverArguments: + .: {} + f:audit-log-format: {} + f:audit-log-maxbackup: {} + f:audit-log-maxsize: {} + f:audit-log-path: {} + f:audit-policy-file: {} + f:servingInfo: + .: {} + f:cipherSuites: {} + f:minTLSVersion: {} + f:namedCertificates: {} + f:volumesToMount: + .: {} + f:identityProviders: {} + f:unsupportedConfigOverrides: {} + manager: authentication-operator + operation: Update + time: "2025-09-09T01:04:34Z" + name: cluster + ownerReferences: + - apiVersion: config.openshift.io/v1 + kind: ClusterVersion + name: version + uid: 4e11cec4-056d-4b95-a391-a0912318fa40 + resourceVersion: "52477" + uid: fdd77cca-3d9e-4135-a1c1-33f9a1da3077 +spec: + logLevel: Normal + managementState: Managed + observedConfig: + oauthAPIServer: + apiServerArguments: + api-audiences: + - https://kubernetes.default.svc + cors-allowed-origins: + - //127\.0\.0\.1(:|$) + - //localhost(:|$) + etcd-servers: + - https://10.0.0.3:2379 + - https://10.0.0.4:2379 + - https://10.0.0.5:2379 + feature-gates: [] + tls-cipher-suites: + - TLS_AES_128_GCM_SHA256 + - TLS_AES_256_GCM_SHA384 + - TLS_CHACHA20_POLY1305_SHA256 + - TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 + - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 + - TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 + - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 + - TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 + - TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 + tls-min-version: VersionTLS12 + operatorLogLevel: Normal + unsupportedConfigOverrides: null diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Update/cluster-scoped-resources/operator.openshift.io/authentications/9a45-metadata-cluster.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Update/cluster-scoped-resources/operator.openshift.io/authentications/9a45-metadata-cluster.yaml new file mode 100644 index 0000000000..e4176dd65a --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/Management/Update/cluster-scoped-resources/operator.openshift.io/authentications/9a45-metadata-cluster.yaml @@ -0,0 +1,8 @@ +action: Update +controllerInstanceName: TODO-other-configObserver +generateName: "" +name: cluster +resourceType: + Group: operator.openshift.io + Resource: authentications + Version: v1 diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/controller-results.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/controller-results.yaml new file mode 100644 index 0000000000..af0caa3c2f --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/expected-output/controller-results.yaml @@ -0,0 +1,81 @@ +controllerResults: +- controllerName: APIServerStaticResources-StaticResources + status: Skipped +- controllerName: NamespaceFinalizerController_openshift-oauth-apiserver + status: Skipped +- controllerName: OAuthAPIServerController-WorkloadWorkloadController + status: Skipped +- controllerName: RevisionController + status: Skipped +- controllerName: SecretRevisionPruneController + status: Skipped +- controllerName: TODO-authRouteCheckController + status: Skipped +- controllerName: TODO-authServiceCheckController + status: Skipped +- controllerName: TODO-authServiceEndpointCheckController + status: Skipped +- controllerName: TODO-authenticatorCertRequester + status: Skipped +- controllerName: TODO-configObserver + status: Skipped +- controllerName: TODO-configOverridesController + status: Skipped +- controllerName: TODO-customRouteController + status: Skipped +- controllerName: TODO-deploymentController + status: Skipped +- controllerName: TODO-ingressStateController + status: Skipped +- controllerName: TODO-logLevelController + status: Skipped +- controllerName: TODO-managementStateController + status: Skipped +- controllerName: TODO-metadataController + status: Skipped +- controllerName: TODO-oauthClientsSwitchedController + status: Skipped +- controllerName: TODO-other-configObserver + status: Succeeded +- controllerName: TODO-other-externalOIDCController + status: Skipped +- controllerName: TODO-payloadConfigController + status: Skipped +- controllerName: TODO-proxyConfigController + status: Skipped +- controllerName: TODO-resourceSyncer + status: Skipped +- controllerName: TODO-routerCertsController + status: Skipped +- controllerName: TODO-serviceCAController + status: Skipped +- controllerName: TODO-staleConditions + status: Skipped +- controllerName: TODO-staticResourceController + status: Skipped +- controllerName: TODO-trustDistributionController + status: Skipped +- controllerName: TODO-webhookAuthController + status: Skipped +- controllerName: TODO-webhookCertsApprover + status: Skipped +- controllerName: TODO-wellKnownReadyController + status: Skipped +- controllerName: TODO-workersAvailableController + status: Skipped +- controllerName: auditPolicyController + status: Skipped +- controllerName: authentication + status: Skipped +- controllerName: openshift-apiserver-APIService + status: Skipped +- controllerName: openshift-oauth-apiserver-EncryptionCondition + status: Skipped +- controllerName: openshift-oauth-apiserver-EncryptionKey + status: Skipped +- controllerName: openshift-oauth-apiserver-EncryptionMigration + status: Skipped +- controllerName: openshift-oauth-apiserver-EncryptionPrune + status: Skipped +- controllerName: openshift-oauth-apiserver-EncryptionState + status: Skipped diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/apiservers.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/apiservers.yaml new file mode 100644 index 0000000000..a72e798097 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/apiservers.yaml @@ -0,0 +1,50 @@ +--- +apiVersion: config.openshift.io/v1 +items: +- apiVersion: config.openshift.io/v1 + kind: APIServer + metadata: + annotations: + include.release.openshift.io/ibm-cloud-managed: "true" + include.release.openshift.io/self-managed-high-availability: "true" + oauth-apiserver.openshift.io/secure-token-storage: "true" + release.openshift.io/create-only: "true" + creationTimestamp: "2025-09-09T00:02:29Z" + generation: 1 + managedFields: + - apiVersion: config.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:metadata: + f:annotations: + .: {} + f:include.release.openshift.io/ibm-cloud-managed: {} + f:include.release.openshift.io/self-managed-high-availability: {} + f:oauth-apiserver.openshift.io/secure-token-storage: {} + f:release.openshift.io/create-only: {} + f:ownerReferences: + .: {} + k:{"uid":"4e11cec4-056d-4b95-a391-a0912318fa40"}: {} + f:spec: + .: {} + f:audit: + .: {} + f:profile: {} + manager: cluster-version-operator + operation: Update + time: "2025-09-09T00:02:29Z" + name: cluster + ownerReferences: + - apiVersion: config.openshift.io/v1 + kind: ClusterVersion + name: version + uid: 4e11cec4-056d-4b95-a391-a0912318fa40 + resourceVersion: "1103" + uid: 082fb921-1af4-480a-888d-91e7ef9618eb + spec: + audit: + profile: Default +kind: APIServerList +metadata: + continue: "" + resourceVersion: "54593" diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/authentications/cluster.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/authentications/cluster.yaml new file mode 100644 index 0000000000..b282067602 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/authentications/cluster.yaml @@ -0,0 +1,75 @@ +--- +apiVersion: config.openshift.io/v1 +kind: Authentication +metadata: + annotations: + include.release.openshift.io/ibm-cloud-managed: "true" + include.release.openshift.io/self-managed-high-availability: "true" + release.openshift.io/create-only: "true" + creationTimestamp: "2025-09-09T00:02:35Z" + generation: 2 + managedFields: + - apiVersion: config.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:metadata: + f:annotations: + .: {} + f:include.release.openshift.io/ibm-cloud-managed: {} + f:include.release.openshift.io/self-managed-high-availability: {} + f:release.openshift.io/create-only: {} + f:ownerReferences: + .: {} + k:{"uid":"4e11cec4-056d-4b95-a391-a0912318fa40"}: {} + f:spec: {} + manager: cluster-version-operator + operation: Update + time: "2025-09-09T00:02:35Z" + - apiVersion: config.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:spec: + f:oauthMetadata: + .: {} + f:name: {} + f:serviceAccountIssuer: {} + f:type: {} + f:webhookTokenAuthenticator: + .: {} + f:kubeConfig: + .: {} + f:name: {} + manager: authentication-operator + operation: Update + time: "2025-09-09T00:09:38Z" + - apiVersion: config.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + .: {} + f:integratedOAuthMetadata: + .: {} + f:name: {} + manager: authentication-operator + operation: Update + subresource: status + time: "2025-09-09T00:28:53Z" + name: cluster + ownerReferences: + - apiVersion: config.openshift.io/v1 + kind: ClusterVersion + name: version + uid: 4e11cec4-056d-4b95-a391-a0912318fa40 + resourceVersion: "28653" + uid: 754dd8b4-162a-4a2e-bb16-45b45eef47c1 +spec: + oauthMetadata: + name: "" + serviceAccountIssuer: "" + type: "" + webhookTokenAuthenticator: + kubeConfig: + name: webhook-authentication-integrated-oauth +status: + integratedOAuthMetadata: + name: oauth-openshift diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/clusterversions.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/clusterversions.yaml new file mode 100644 index 0000000000..ad37b8e168 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/clusterversions.yaml @@ -0,0 +1,166 @@ +--- +apiVersion: config.openshift.io/v1 +items: +- apiVersion: config.openshift.io/v1 + kind: ClusterVersion + metadata: + creationTimestamp: "2024-10-17T22:22:41Z" + generation: 2 + managedFields: + - apiVersion: config.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:spec: + .: {} + f:clusterID: {} + manager: cluster-bootstrap + operation: Update + time: "2024-10-17T22:22:41Z" + - apiVersion: config.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + .: {} + f:availableUpdates: {} + f:capabilities: + .: {} + f:enabledCapabilities: {} + f:knownCapabilities: {} + f:conditions: + .: {} + k:{"type":"Available"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:status: {} + f:type: {} + k:{"type":"Failing"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + k:{"type":"ImplicitlyEnabledCapabilities"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"Progressing"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:status: {} + f:type: {} + k:{"type":"ReleaseAccepted"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"RetrievedUpdates"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + f:desired: + .: {} + f:image: {} + f:version: {} + f:history: {} + f:observedGeneration: {} + f:versionHash: {} + manager: cluster-version-operator + operation: Update + subresource: status + time: "2024-10-17T23:22:30Z" + name: version + resourceVersion: "35834" + uid: f14c83b2-12a6-41dc-b167-cf11c04cc508 + spec: + clusterID: 9b1def5e-285c-47d9-a958-c63b4a5ca9a2 + status: + availableUpdates: null + capabilities: + enabledCapabilities: + - Build + - CSISnapshot + - CloudControllerManager + - CloudCredential + - Console + - DeploymentConfig + - ImageRegistry + - Ingress + - Insights + - MachineAPI + - NodeTuning + - OperatorLifecycleManager + - Storage + - baremetal + - marketplace + - openshift-samples + knownCapabilities: + - Build + - CSISnapshot + - CloudControllerManager + - CloudCredential + - Console + - DeploymentConfig + - ImageRegistry + - Ingress + - Insights + - MachineAPI + - NodeTuning + - OperatorLifecycleManager + - Storage + - baremetal + - marketplace + - openshift-samples + conditions: + - lastTransitionTime: "2024-10-17T22:22:48Z" + message: The update channel has not been configured. + reason: NoChannel + status: "False" + type: RetrievedUpdates + - lastTransitionTime: "2024-10-17T22:22:48Z" + message: Capabilities match configured spec + reason: AsExpected + status: "False" + type: ImplicitlyEnabledCapabilities + - lastTransitionTime: "2024-10-17T22:22:48Z" + message: Payload loaded version="4.18.0-0.ci.test-2024-10-17-215241-ci-op-7f55686r-latest" + image="virthost.ostest.test.metalkube.org:5000/localimages/local-release-image@sha256:f61bc6f4b95f6b485ff5f6f5fe75843ac2a4f692abf81fd000e547bd6936da32" + architecture="amd64" + reason: PayloadLoaded + status: "True" + type: ReleaseAccepted + - lastTransitionTime: "2024-10-17T23:22:30Z" + message: Done applying 4.18.0-0.ci.test-2024-10-17-215241-ci-op-7f55686r-latest + status: "True" + type: Available + - lastTransitionTime: "2024-10-17T23:22:30Z" + status: "False" + type: Failing + - lastTransitionTime: "2024-10-17T23:22:30Z" + message: Cluster version is 4.18.0-0.ci.test-2024-10-17-215241-ci-op-7f55686r-latest + status: "False" + type: Progressing + desired: + image: virthost.ostest.test.metalkube.org:5000/localimages/local-release-image@sha256:f61bc6f4b95f6b485ff5f6f5fe75843ac2a4f692abf81fd000e547bd6936da32 + version: 4.18.0-0.ci.test-2024-10-17-215241-ci-op-7f55686r-latest + history: + - completionTime: "2024-10-17T23:22:30Z" + image: virthost.ostest.test.metalkube.org:5000/localimages/local-release-image@sha256:f61bc6f4b95f6b485ff5f6f5fe75843ac2a4f692abf81fd000e547bd6936da32 + startedTime: "2024-10-17T22:22:48Z" + state: Completed + verified: false + version: 4.18.0-0.ci.test-2024-10-17-215241-ci-op-7f55686r-latest + observedGeneration: 2 + versionHash: 0wcpBSm4Nmo= +kind: ClusterVersionList +metadata: + continue: "" + resourceVersion: "229157" diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/consoles/cluster.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/consoles/cluster.yaml new file mode 100644 index 0000000000..364ccbc228 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/consoles/cluster.yaml @@ -0,0 +1,48 @@ +--- +apiVersion: config.openshift.io/v1 +kind: Console +metadata: + annotations: + include.release.openshift.io/ibm-cloud-managed: "true" + include.release.openshift.io/self-managed-high-availability: "true" + release.openshift.io/create-only: "true" + creationTimestamp: "2025-09-09T00:02:40Z" + generation: 1 + managedFields: + - apiVersion: config.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:metadata: + f:annotations: + .: {} + f:include.release.openshift.io/ibm-cloud-managed: {} + f:include.release.openshift.io/self-managed-high-availability: {} + f:release.openshift.io/create-only: {} + f:ownerReferences: + .: {} + k:{"uid":"4e11cec4-056d-4b95-a391-a0912318fa40"}: {} + f:spec: {} + manager: cluster-version-operator + operation: Update + time: "2025-09-09T00:02:40Z" + - apiVersion: config.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + .: {} + f:consoleURL: {} + manager: console + operation: Update + subresource: status + time: "2025-09-09T00:28:55Z" + name: cluster + ownerReferences: + - apiVersion: config.openshift.io/v1 + kind: ClusterVersion + name: version + uid: 4e11cec4-056d-4b95-a391-a0912318fa40 + resourceVersion: "28767" + uid: 2f7d522e-bcdf-495b-a1ed-7654a67428a0 +spec: {} +status: + consoleURL: https://console-openshift-console.apps.ci-op-j2wdcvij-465b4.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/infrastructures.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/infrastructures.yaml new file mode 100644 index 0000000000..3740c3c241 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/infrastructures.yaml @@ -0,0 +1,99 @@ +--- +apiVersion: config.openshift.io/v1 +items: +- apiVersion: config.openshift.io/v1 + kind: Infrastructure + metadata: + creationTimestamp: "2024-10-17T22:22:35Z" + generation: 1 + managedFields: + - apiVersion: config.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:spec: + .: {} + f:cloudConfig: + .: {} + f:name: {} + f:platformSpec: + .: {} + f:baremetal: + .: {} + f:apiServerInternalIPs: {} + f:ingressIPs: {} + f:machineNetworks: {} + f:type: {} + manager: cluster-bootstrap + operation: Update + time: "2024-10-17T22:22:35Z" + - apiVersion: config.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + .: {} + f:apiServerInternalURI: {} + f:apiServerURL: {} + f:controlPlaneTopology: {} + f:cpuPartitioning: {} + f:etcdDiscoveryDomain: {} + f:infrastructureName: {} + f:infrastructureTopology: {} + f:platform: {} + f:platformStatus: + .: {} + f:baremetal: + .: {} + f:apiServerInternalIP: {} + f:apiServerInternalIPs: {} + f:ingressIP: {} + f:ingressIPs: {} + f:loadBalancer: + .: {} + f:type: {} + f:machineNetworks: {} + f:type: {} + manager: cluster-bootstrap + operation: Update + subresource: status + time: "2024-10-17T22:22:35Z" + name: cluster + resourceVersion: "517" + uid: 18848356-0a92-4985-b112-2dbe8a8012dd + spec: + cloudConfig: + name: "" + platformSpec: + baremetal: + apiServerInternalIPs: + - fd2e:6f44:5dd8:c956::5 + ingressIPs: + - fd2e:6f44:5dd8:c956::4 + machineNetworks: + - fd2e:6f44:5dd8:c956::/120 + type: BareMetal + status: + apiServerInternalURI: https://api-int.ostest.test.metalkube.org:6443 + apiServerURL: https://api.ostest.test.metalkube.org:6443 + controlPlaneTopology: HighlyAvailable + cpuPartitioning: None + etcdDiscoveryDomain: "" + infrastructureName: ostest-knqsq + infrastructureTopology: HighlyAvailable + platform: BareMetal + platformStatus: + baremetal: + apiServerInternalIP: fd2e:6f44:5dd8:c956::5 + apiServerInternalIPs: + - fd2e:6f44:5dd8:c956::5 + ingressIP: fd2e:6f44:5dd8:c956::4 + ingressIPs: + - fd2e:6f44:5dd8:c956::4 + loadBalancer: + type: OpenShiftManagedDefault + machineNetworks: + - fd2e:6f44:5dd8:c956::/120 + type: BareMetal +kind: InfrastructureList +metadata: + continue: "" + resourceVersion: "229157" diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/oauths/cluster.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/oauths/cluster.yaml new file mode 100644 index 0000000000..e971507917 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/config.openshift.io/oauths/cluster.yaml @@ -0,0 +1,63 @@ +--- +apiVersion: config.openshift.io/v1 +kind: OAuth +metadata: + annotations: + include.release.openshift.io/ibm-cloud-managed: "true" + include.release.openshift.io/self-managed-high-availability: "true" + release.openshift.io/create-only: "true" + creationTimestamp: "2025-09-09T00:02:45Z" + generation: 9 + managedFields: + - apiVersion: config.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:metadata: + f:annotations: + .: {} + f:include.release.openshift.io/ibm-cloud-managed: {} + f:include.release.openshift.io/self-managed-high-availability: {} + f:release.openshift.io/create-only: {} + f:ownerReferences: + .: {} + k:{"uid":"4e11cec4-056d-4b95-a391-a0912318fa40"}: {} + f:spec: {} + manager: cluster-version-operator + operation: Update + time: "2025-09-09T00:02:45Z" + - apiVersion: config.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:spec: + f:templates: + .: {} + f:error: + .: {} + f:name: {} + f:login: + .: {} + f:name: {} + f:providerSelection: + .: {} + f:name: {} + f:tokenConfig: {} + manager: e2e.test + operation: Update + time: "2025-09-09T01:04:34Z" + name: cluster + ownerReferences: + - apiVersion: config.openshift.io/v1 + kind: ClusterVersion + name: version + uid: 4e11cec4-056d-4b95-a391-a0912318fa40 + resourceVersion: "51279" + uid: 6002deab-6df1-4107-979e-e9986bb93fd9 +spec: + templates: + error: + name: "" + login: + name: "" + providerSelection: + name: "" + tokenConfig: {} diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/operator.openshift.io/authentications/cluster.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/operator.openshift.io/authentications/cluster.yaml new file mode 100644 index 0000000000..274a4d0fd6 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/cluster-scoped-resources/operator.openshift.io/authentications/cluster.yaml @@ -0,0 +1,809 @@ +--- +apiVersion: operator.openshift.io/v1 +kind: Authentication +metadata: + annotations: + include.release.openshift.io/self-managed-high-availability: "true" + include.release.openshift.io/single-node-developer: "true" + release.openshift.io/create-only: "true" + creationTimestamp: "2025-09-09T00:02:33Z" + generation: 22 + managedFields: + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"WebhookAuthenticatorCertApprover_OpenShiftAuthenticatorDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: WebhookAuthenticatorCertApprover_OpenShiftAuthenticator-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:08:13Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"ManagementStateDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: authentication-ManagementState + operation: Apply + subresource: status + time: "2025-09-09T00:08:13Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"UnsupportedConfigOverridesUpgradeable"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: openshift-authentication-UnsupportedConfigOverrides + operation: Apply + subresource: status + time: "2025-09-09T00:08:13Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthAPIServerConfigObservationDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: oauth-apiserver-ConfigObserver + operation: Apply + subresource: status + time: "2025-09-09T00:08:15Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"Encrypted"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: openshift-oauth-apiserver-EncryptionCondition + operation: Apply + subresource: status + time: "2025-09-09T00:08:15Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"EncryptionKeyControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: openshift-oauth-apiserver-EncryptionKey + operation: Apply + subresource: status + time: "2025-09-09T00:08:15Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"EncryptionMigrationControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + k:{"type":"EncryptionMigrationControllerProgressing"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: openshift-oauth-apiserver-EncryptionMigration + operation: Apply + subresource: status + time: "2025-09-09T00:08:15Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"EncryptionPruneControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: openshift-oauth-apiserver-EncryptionPrune + operation: Apply + subresource: status + time: "2025-09-09T00:08:15Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"EncryptionStateControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: openshift-oauth-apiserver-EncryptionState + operation: Apply + subresource: status + time: "2025-09-09T00:08:15Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthClientsController_SwitchedControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: OAuthClientsController_SwitchedController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:08:16Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"ResourceSyncControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: oauth-server-ResourceSync + operation: Apply + subresource: status + time: "2025-09-09T00:08:20Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"AuditPolicyDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: oauth-apiserver-AuditPolicy + operation: Apply + subresource: status + time: "2025-09-09T00:08:21Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"RouterCertsDomainValidationControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: RouterCertsDomainValidationController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:08:22Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"AuthenticatorCertKeyProgressing"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + manager: openshift-authentication-WebhookAuthenticator + operation: Apply + subresource: status + time: "2025-09-09T00:08:26Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"RevisionControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: RevisionController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:08:32Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:latestAvailableRevision: {} + manager: oauth-apiserver-RevisionController + operation: Apply + subresource: status + time: "2025-09-09T00:08:32Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"APIServicesAvailable"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + k:{"type":"APIServicesDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: openshift-apiserver-APIService + operation: Apply + subresource: status + time: "2025-09-09T00:25:57Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OpenshiftAuthenticationStaticResourcesDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + manager: OpenshiftAuthenticationStaticResources-StaticResources + operation: Apply + subresource: status + time: "2025-09-09T00:26:00Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"APIServerStaticResourcesDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + manager: APIServerStaticResources-StaticResources + operation: Apply + subresource: status + time: "2025-09-09T00:26:01Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"WebhookAuthenticatorControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: WebhookAuthenticatorController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:26:02Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthServiceDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"SystemServiceCAConfigDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + manager: openshift-authentication-ServiceCA + operation: Apply + subresource: status + time: "2025-09-09T00:26:02Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"ProxyConfigControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: ProxyConfigController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:26:12Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"AuthConfigDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"IngressConfigDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"OAuthSystemMetadataDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + manager: openshift-authentication-Metadata + operation: Apply + subresource: status + time: "2025-09-09T00:26:12Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthConfigDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"OAuthConfigIngressDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"OAuthConfigRouteDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"OAuthConfigServiceDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"OAuthSessionSecretDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + manager: openshift-authentication-PayloadConfig + operation: Apply + subresource: status + time: "2025-09-09T00:26:19Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"ReadyIngressNodesAvailable"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + manager: openshift-authentication-IngressNodesAvailable + operation: Apply + subresource: status + time: "2025-09-09T00:28:27Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthServerServiceEndpointAccessibleControllerAvailable"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: OAuthServerService-EndpointAccessible + operation: Apply + subresource: status + time: "2025-09-09T00:29:04Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthServerServiceEndpointAccessibleControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: OAuthServerServiceEndpointAccessibleController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:29:04Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthServerServiceEndpointsEndpointAccessibleControllerAvailable"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: OAuthServerServiceEndpoints-EndpointAccessible + operation: Apply + subresource: status + time: "2025-09-09T00:29:04Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthServerServiceEndpointsEndpointAccessibleControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: OAuthServerServiceEndpointsEndpointAccessibleController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:29:04Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"IngressStateEndpointsDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"IngressStatePodsDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + manager: openshift-authentication-IngressState + operation: Apply + subresource: status + time: "2025-09-09T00:29:12Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"WellKnownReadyControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: WellKnownReadyController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:38:50Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"CustomRouteControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: CustomRouteController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:44:53Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"RouterCertsDegraded"}: + .: {} + f:lastTransitionTime: {} + f:message: {} + f:reason: {} + f:status: {} + f:type: {} + manager: openshift-authentication-RouterCertsDomainValidation + operation: Apply + subresource: status + time: "2025-09-09T00:44:55Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthClientsControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: OAuthClientsController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:45:58Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"WellKnownAvailable"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"WellKnownReadyControllerProgressing"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: openshift-authentication-WellKnownReady + operation: Apply + subresource: status + time: "2025-09-09T00:46:05Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthServerRouteEndpointAccessibleControllerAvailable"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: OAuthServerRoute-EndpointAccessible + operation: Apply + subresource: status + time: "2025-09-09T00:46:46Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthServerRouteEndpointAccessibleControllerDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + manager: OAuthServerRouteEndpointAccessibleController-reportDegraded + operation: Apply + subresource: status + time: "2025-09-09T00:46:46Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthServerConfigObservationDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + manager: oauth-server-ConfigObserver + operation: Apply + subresource: status + time: "2025-09-09T00:55:34Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"OAuthServerDeploymentAvailable"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"OAuthServerDeploymentDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"OAuthServerDeploymentProgressing"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"OAuthServerWorkloadDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + f:generations: + k:{"group":"apps","name":"oauth-openshift","namespace":"openshift-authentication","resource":"deployments"}: + .: {} + f:group: {} + f:lastGeneration: {} + f:name: {} + f:namespace: {} + f:resource: {} + manager: OAuthServer-Workload + operation: Apply + subresource: status + time: "2025-09-09T01:25:42Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:status: + f:conditions: + k:{"type":"APIServerDeploymentAvailable"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"APIServerDeploymentDegraded"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"APIServerDeploymentProgressing"}: + .: {} + f:lastTransitionTime: {} + f:reason: {} + f:status: {} + f:type: {} + k:{"type":"APIServerWorkloadDegraded"}: + .: {} + f:lastTransitionTime: {} + f:status: {} + f:type: {} + f:generations: + k:{"group":"apps","name":"apiserver","namespace":"openshift-oauth-apiserver","resource":"deployments"}: + .: {} + f:group: {} + f:lastGeneration: {} + f:name: {} + f:namespace: {} + f:resource: {} + manager: OAuthAPIServerController-Workload + operation: Apply + subresource: status + time: "2025-09-09T01:26:51Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:metadata: + f:annotations: + .: {} + f:include.release.openshift.io/self-managed-high-availability: {} + f:include.release.openshift.io/single-node-developer: {} + f:release.openshift.io/create-only: {} + f:ownerReferences: + .: {} + k:{"uid":"4e11cec4-056d-4b95-a391-a0912318fa40"}: {} + f:spec: + .: {} + f:logLevel: {} + f:managementState: {} + f:operatorLogLevel: {} + manager: cluster-version-operator + operation: Update + time: "2025-09-09T00:02:33Z" + - apiVersion: operator.openshift.io/v1 + fieldsType: FieldsV1 + fieldsV1: + f:spec: + f:observedConfig: + .: {} + f:oauthAPIServer: + .: {} + f:apiServerArguments: + .: {} + f:api-audiences: {} + f:cors-allowed-origins: {} + f:etcd-servers: {} + f:feature-gates: {} + f:tls-cipher-suites: {} + f:tls-min-version: {} + f:oauthServer: + .: {} + f:corsAllowedOrigins: {} + f:oauthConfig: + .: {} + f:assetPublicURL: {} + f:loginURL: {} + f:templates: + .: {} + f:error: {} + f:login: {} + f:providerSelection: {} + f:tokenConfig: + .: {} + f:accessTokenMaxAgeSeconds: {} + f:authorizeTokenMaxAgeSeconds: {} + f:serverArguments: + .: {} + f:audit-log-format: {} + f:audit-log-maxbackup: {} + f:audit-log-maxsize: {} + f:audit-log-path: {} + f:audit-policy-file: {} + f:servingInfo: + .: {} + f:cipherSuites: {} + f:minTLSVersion: {} + f:namedCertificates: {} + f:volumesToMount: + .: {} + f:identityProviders: {} + f:unsupportedConfigOverrides: {} + manager: authentication-operator + operation: Update + time: "2025-09-09T01:04:34Z" + name: cluster + ownerReferences: + - apiVersion: config.openshift.io/v1 + kind: ClusterVersion + name: version + uid: 4e11cec4-056d-4b95-a391-a0912318fa40 + resourceVersion: "52477" + uid: fdd77cca-3d9e-4135-a1c1-33f9a1da3077 +spec: + logLevel: Normal + managementState: Managed + observedConfig: + operatorLogLevel: Normal + unsupportedConfigOverrides: null diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/namespaces/openshift-authentication/core/secrets.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/namespaces/openshift-authentication/core/secrets.yaml new file mode 100644 index 0000000000..780e745318 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/namespaces/openshift-authentication/core/secrets.yaml @@ -0,0 +1,28 @@ +--- +apiVersion: v1 +items: + - apiVersion: v1 + data: + apps.ci-op-gn2pz6q7-69aee.XXXXXXXXXXXXXXXXXXXXXX: NDEwNCBieXRlcyBsb25n + kind: Secret + metadata: + creationTimestamp: "2025-08-01T18:34:45Z" + managedFields: + - apiVersion: v1 + fieldsType: FieldsV1 + fieldsV1: + f:data: + .: {} + f:apps.ci-op-gn2pz6q7-69aee.XXXXXXXXXXXXXXXXXXXXXX: {} + f:type: {} + manager: authentication-operator + operation: Update + time: "2025-08-01T18:34:45Z" + name: v4-0-config-system-router-certs + namespace: openshift-authentication + resourceVersion: "8802" + uid: da379869-e11c-4267-a98d-26a516b0c511 + type: Opaque +kind: SecretList +metadata: + resourceVersion: "269056" diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/namespaces/openshift-etcd/core/configmaps.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/namespaces/openshift-etcd/core/configmaps.yaml new file mode 100644 index 0000000000..f668815263 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/input-dir/namespaces/openshift-etcd/core/configmaps.yaml @@ -0,0 +1,30 @@ +--- +apiVersion: v1 +items: +- apiVersion: v1 + data: + 626b863d147af5a2: 10.0.0.5 + 562727b1cb62a837: 10.0.0.3 + d74d3267c3ee4233: 10.0.0.4 + kind: ConfigMap + metadata: + creationTimestamp: "2025-09-09T00:01:56Z" + managedFields: + - apiVersion: v1 + fieldsType: FieldsV1 + fieldsV1: + f:data: + .: {} + f:626b863d147af5a2: {} + f:562727b1cb62a837: {} + f:d74d3267c3ee4233: {} + manager: cluster-etcd-operator + operation: Update + time: "2025-09-09T00:22:55Z" + name: etcd-endpoints + namespace: openshift-etcd + resourceVersion: "31982" + uid: 2d71d899-dac2-44de-aa37-6d6e112ce38d +kind: ConfigMapList +metadata: + resourceVersion: "54824" diff --git a/test-data/apply-configuration/overall/oauth-apiserver-config-observer/test.yaml b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/test.yaml new file mode 100644 index 0000000000..d2285eb451 --- /dev/null +++ b/test-data/apply-configuration/overall/oauth-apiserver-config-observer/test.yaml @@ -0,0 +1,18 @@ +binaryName: ./authentication-operator +testName: creation of oauth-apiserver configuration +controllers: + - "TODO-other-configObserver" +description: > + This test runs a single controller whose job is to create the oauth-apiserver configuration. + + input-dir: + - config.openshift.io/clusterversions: not really used by the controller, but it's required to start the operator CreateOperatorStarter/prepareOauthOperator + - config.openshift.io/authentications/cluster: required by the controller + - config.openshift.io/infrastructures/cluster: required by the controller + - config.openshift.io/consoles/cluster: required by the controller + - config.openshift.io/oauths/cluster: required by the controller + - config.openshift.io/apiservers/cluster: required by observe_cors.go and observe_tlssecurityprofile.go + - core/configmaps/openshift-authentication/v4-0-config-system-router-certs: required the controller + - core/configmaps/openshift-etcd/etcd-endpoints: required the controller +testType: ApplyConfiguration +now: 2024-10-14T22:38:20Z