Documentation
¶
Index ¶
Constants ¶
View Source
const ( // GroupName for greenhouse API resources. GroupName = "greenhouse.sap" // SecretTypeKubeConfig specifies a secret containing the kubeconfig for a cluster. SecretTypeKubeConfig corev1.SecretType = "greenhouse.sap/kubeconfig" // SecretTypeOIDCConfig specifies a secret containing the OIDC configuration for a cluster. SecretTypeOIDCConfig corev1.SecretType = "greenhouse.sap/oidc" // KubeConfigKey is the key for the user-provided kubeconfig in the secret of type greenhouse.sap/kubeconfig. KubeConfigKey = "kubeconfig" // GreenHouseKubeConfigKey is the key for the kubeconfig in the secret of type greenhouse.sap/kubeconfig used by Greenhouse. // This kubeconfig should be used by Greenhouse controllers and their kubernetes clients to access the remote cluster. GreenHouseKubeConfigKey = "greenhousekubeconfig" // LabelKeyPluginPreset is used to identify the PluginPreset managing the plugin. LabelKeyPluginPreset = "greenhouse.sap/pluginpreset" // LabelKeyPlugin is used to identify corresponding PluginDefinition for the resource. LabelKeyPlugin = "greenhouse.sap/plugin" // LabelKeyPluginDefinition is used to identify corresponding PluginDefinition for the resource. LabelKeyPluginDefinition = "greenhouse.sap/plugindefinition" // LabelKeyCluster is used to identify corresponding Cluster for the resource. LabelKeyCluster = "greenhouse.sap/cluster" // LabelKeyExposeService is applied to services that are part of a PluginDefinitions Helm chart to expose them via the central Greenhouse infrastructure. LabelKeyExposeService = "greenhouse.sap/expose" // LabelKeyExposeNamedPort is specifying the port to be exposed by name. LabelKeyExposeService needs to be set. Defaults to the first port if the named port is not found. LabelKeyExposeNamedPort = "greenhouse.sap/exposeNamedPort" )
View Source
const ( // LabelKeyRoleBinding is the key of the label that is used to identify the RoleBinding. LabelKeyRoleBinding = "greenhouse.sap/rolebinding" // LabelKeyRole is the key of the label that is used to identify the Role. LabelKeyRole = "greenhouse.sap/role" // RBACPrefix is the prefix for the Role and RoleBinding names. RBACPrefix = "greenhouse:" // PluginClusterNameField is the field in the Plugin spec mapping it to a Cluster. PluginClusterNameField = ".spec.clusterName" // RolebindingRoleRefField is the field in the RoleBinding spec that references the Role. RolebindingRoleRefField = ".spec.roleRef" // RolebindingTeamRefField is the field in the RoleBinding spec that references the Team. RolebindingTeamRefField = ".spec.teamRef" )
TeamRole and TeamRoleBinding constants
View Source
const ( // MarkClusterDeletionAnnotation is used to mark a cluster for deletion. MarkClusterDeletionAnnotation = "greenhouse.sap/delete-cluster" // ScheduleClusterDeletionAnnotation is used to schedule a cluster for deletion. // Timestamp is set by mutating webhook if cluster is marked for deletion. ScheduleClusterDeletionAnnotation = "greenhouse.sap/deletion-schedule" ClusterConnectivityAnnotation = "greenhouse.sap/cluster-connectivity" ClusterConnectivityKubeconfig = "kubeconfig" ClusterConnectivityOIDC = "oidc" )
cluster annotations
View Source
const ( SecretAPIServerURLAnnotation = "oidc.greenhouse.sap/api-server-url" SecretAPIServerCAKey = "ca.crt" OIDCAudience = "greenhouse" SecretOIDCConfigGeneratedOnAnnotation = "oidc.greenhouse.sap/oidc-token-last-updated" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
GroupVersion schema.GroupVersion
runtime.SchemeBuilder
}
Builder builds a new Scheme for mapping go types to Kubernetes GroupVersionKinds. +kubebuilder:object:generate=false +kubebuilder:object:root=false
func (*Builder) AddToScheme ¶
AddToScheme adds all registered types to s.
func (*Builder) Register ¶
Register adds one or more objects to the SchemeBuilder so they can be added to a Scheme. Register mutates bld.
func (*Builder) RegisterAll ¶
RegisterAll registers all types from the Builder argument. RegisterAll mutates bld.
Click to show internal directories.
Click to hide internal directories.