Documentation ¶
Index ¶
- Constants
- func AreSiblingNamespaces(kc client.Client, ns1, ns2 string) (bool, error)
- func ClusterMetadata(c client.Reader) (*kmapi.ClusterMetadata, error)
- func ClusterUID(c client.Reader) (string, error)
- func DetectCAPICluster(kc client.Client) (*kmapi.CAPIClusterInfo, error)
- func DetectClusterManager(kc client.Client) kmapi.ClusterManager
- func GetDefaultProjectId(kc client.Client) (string, bool, error)
- func GetProjectId(kc client.Client, nsName string) (string, bool, error)
- func GetSystemProjectId(kc client.Client) (string, bool, error)
- func IsACEManaged(kc client.Client) bool
- func IsDefault(kc client.Client, cm kmapi.ClusterManager, gvk schema.GroupVersionKind, ...) (bool, error)
- func IsInDefaultProject(kc client.Client, nsName string) (bool, error)
- func IsInSystemProject(kc client.Client, nsName string) (bool, error)
- func IsInUserProject(kc client.Client, nsName string) (bool, error)
- func IsOpenClusterHub(mapper meta.RESTMapper) bool
- func IsOpenClusterMulticlusterControlplane(mapper meta.RESTMapper) bool
- func IsOpenClusterSpoke(mapper meta.RESTMapper) bool
- func IsOpenShiftManaged(mapper meta.RESTMapper) bool
- func IsRancherManaged(mapper meta.RESTMapper) bool
- func IsSingletonResource(kc client.Client, gvk schema.GroupVersionKind, key types.NamespacedName) (bool, error)
- func IsVirtualCluster(kc client.Client) (bool, error)
- func ListProjectNamespaces(kc client.Client, projectId string) ([]core.Namespace, error)
- func ListSiblingNamespaces(kc client.Client, nsName string) ([]core.Namespace, error)
- func MustIsVirtualCluster(kc client.Client) bool
- func Names(in []core.Namespace) (ret []string)
Constants ¶
View Source
const ( LabelKeyRancherFieldProjectId = "field.cattle.io/projectId" LabelKeyRancherHelmProjectId = "helm.cattle.io/projectId" LabelKeyRancherHelmProjectOperated = "helm.cattle.io/helm-project-operated" NamespaceRancherMonitoring = "cattle-monitoring-system" PrometheusRancherMonitoring = "rancher-monitoring-prometheus" )
Variables ¶
This section is empty.
Functions ¶
func AreSiblingNamespaces ¶
func ClusterMetadata ¶
func ClusterMetadata(c client.Reader) (*kmapi.ClusterMetadata, error)
func DetectCAPICluster ¶
func DetectCAPICluster(kc client.Client) (*kmapi.CAPIClusterInfo, error)
func DetectClusterManager ¶
func DetectClusterManager(kc client.Client) kmapi.ClusterManager
func IsACEManaged ¶
func IsDefault ¶
func IsDefault(kc client.Client, cm kmapi.ClusterManager, gvk schema.GroupVersionKind, key types.NamespacedName) (bool, error)
func IsOpenClusterHub ¶ added in v0.25.35
func IsOpenClusterHub(mapper meta.RESTMapper) bool
func IsOpenClusterMulticlusterControlplane ¶ added in v0.25.35
func IsOpenClusterMulticlusterControlplane(mapper meta.RESTMapper) bool
func IsOpenClusterSpoke ¶ added in v0.25.35
func IsOpenClusterSpoke(mapper meta.RESTMapper) bool
func IsOpenShiftManaged ¶ added in v0.25.38
func IsOpenShiftManaged(mapper meta.RESTMapper) bool
func IsRancherManaged ¶
func IsRancherManaged(mapper meta.RESTMapper) bool
func IsSingletonResource ¶
func IsSingletonResource(kc client.Client, gvk schema.GroupVersionKind, key types.NamespacedName) (bool, error)
func ListProjectNamespaces ¶
func ListSiblingNamespaces ¶
func MustIsVirtualCluster ¶ added in v0.25.38
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.