Documentation
¶
Index ¶
Constants ¶
View Source
const ( ClaimK8sID = "id.k8s.io" ClaimOpenshiftID = "id.openshift.io" ClaimOpenshiftVersion = "version.openshift.io" ClaimOpenshiftInfrastructure = "infrastructure.openshift.io" ClaimOpenshiftOauthRedirectURIs = "oauthredirecturis.openshift.io" // ClaimControlPlaneTopology expresses the expectations for operands that normally run on control nodes of Openshift. // have 2 modes: `HighlyAvailable` and `SingleReplica`. ClaimControlPlaneTopology = "controlplanetopology.openshift.io" ClaimOCMConsoleURL = "consoleurl.cluster.open-cluster-management.io" ClaimOCMRegion = "region.open-cluster-management.io" ClaimOCMKubeVersion = "kubeversion.open-cluster-management.io" ClaimOCMPlatform = "platform.open-cluster-management.io" ClaimOCMProduct = "product.open-cluster-management.io" )
View Source
const ( PlatformAWS = "AWS" PlatformGCP = "GCP" PlatformAzure = "Azure" PlatformIBM = "IBM" PlatformIBMP = "IBMPowerPlatform" PlatformIBMZ = "IBMZPlatform" PlatformOpenStack = "OpenStack" PlatformVSphere = "VSphere" PlatformRHV = "RHV" PlatformAlibabaCloud = "AlibabaCloud" PlatformBareMetal = "BareMetal" // PlatformOther other (unable to auto detect) PlatformOther = "Other" )
should be the type defined in infrastructure.config.openshift.io
View Source
const ( ProductAKS = "AKS" ProductEKS = "EKS" ProductGKE = "GKE" ProductICP = "ICP" ProductIKS = "IKS" ProductOpenShift = "OpenShift" ProductOSD = "OpenShiftDedicated" ProductROSA = "ROSA" ProductARO = "ARO" ProductROKS = "ROKS" // ProductOther other (unable to auto detect) ProductOther = "Other" )
View Source
const (
OCP3Version = "3"
)
Variables ¶
View Source
var ProductOCPList = []string{ ProductOpenShift, ProductOSD, ProductROSA, ProductARO, ProductROKS, }
ProductOCPList is OCP product list. should append the product to the list if the product is OCP.
Functions ¶
This section is empty.
Types ¶
type ClusterClaimReconciler ¶
type ClusterClaimReconciler struct { ListClusterClaims ListClusterClaimsFunc ClusterClient clusterclientset.Interface }
ClusterClaimReconciler reconciles cluster claim objects
type ClusterClaimer ¶
type ClusterClaimer struct { ClusterName string Product string Platform string HubClient client.Client ManagedClusterInfoList clusterv1beta1infolister.ManagedClusterInfoLister KubeClient kubernetes.Interface ConfigV1Client openshiftclientset.Interface OauthV1Client openshiftoauthclientset.Interface Mapper meta.RESTMapper EnableSyncLabelsToClusterClaims bool // contains filtered or unexported fields }
func (*ClusterClaimer) List ¶
func (c *ClusterClaimer) List() ([]*clusterv1alpha1.ClusterClaim, error)
type InfraConfig ¶
type InfraConfig struct {
InfraName string `json:"infraName,omitempty"`
}
type ListClusterClaimsFunc ¶
type ListClusterClaimsFunc func() ([]*clusterv1alpha1.ClusterClaim, error)
Click to show internal directories.
Click to hide internal directories.