You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 24, 2024. It is now read-only.
Add platform definition for HyperShift management cluster
Rationale:
OpenShift clusters can be deployed as a hosted cluster, one of the variations of OpenShift installation, using HyperShift technology. HyperShift can create a hosted cluster not only on an OpenShift cluster but also on a vanilla Kubernetes cluster. If the underlying cluster is vanilla Kubernetes, Compliance Operator does not perform any OCP4-related check (because the underlying cluster does not contain OpenShift version resource /apis/config.openshift.io/v1/clusteroperators/openshift-apiserver) while it hosts OpenShift components such as API server, kubelet and Etcd inside of a hosted cluster namespace.
This PR provides a new platform definition called ocp4-on-hypershift. The trigger of the definition is existence of a custom resource of HyperShift /kubernetes-api-resources/apis/apiextensions.k8s.io/v1/customresourcedefinitions/hostedclusters.hypershift.openshift.io. When this CRD exists in the cluster, then the platform is marked as ocp4-on-hypershift, as an variation of OpenShift, and OCP4-related rules will be ignited.
Description:
Rationale:
OpenShift clusters can be deployed as a hosted cluster, one of the variations of OpenShift installation, using HyperShift technology. HyperShift can create a hosted cluster not only on an OpenShift cluster but also on a vanilla Kubernetes cluster. If the underlying cluster is vanilla Kubernetes, Compliance Operator does not perform any OCP4-related check (because the underlying cluster does not contain OpenShift version resource
/apis/config.openshift.io/v1/clusteroperators/openshift-apiserver) while it hosts OpenShift components such as API server, kubelet and Etcd inside of a hosted cluster namespace.This PR provides a new platform definition called
ocp4-on-hypershift. The trigger of the definition is existence of a custom resource of HyperShift/kubernetes-api-resources/apis/apiextensions.k8s.io/v1/customresourcedefinitions/hostedclusters.hypershift.openshift.io. When this CRD exists in the cluster, then the platform is marked asocp4-on-hypershift, as an variation of OpenShift, and OCP4-related rules will be ignited.