Documentation ¶
Index ¶
Constants ¶
const ( // ClusterClaim will start a new controller in the spoke-agent to manage the cluster-claim // resources in the managed cluster. // // The cluster-claim controller is majorly for collecting claims and updating claims field // in managedcluster status. When it exceeds the limit specified by "--max-custom-cluster-claims", // the extra claims will be truncated. // // If it is disabled, the user will see empty claims field in managedcluster status. The // deployer who disable the feature may need to update claim field in managed cluster status // itself to avoid impact to users. ClusterClaim featuregate.Feature = "ClusterClaim" // AddonManagement will start new controllers in the spoke-agent to manage the managed cluster addons // registration and maintains the status of managed cluster addons through watching their leases. AddonManagement featuregate.Feature = "AddonManagement" // DefaultClusterSet will make registration hub controller to maintain a default clusterset and a global clusterset. // All clusters without clusterset label will be automatically added into the default clusterset by adding a label // "cluster.open-cluster-management.io/clusterset=default" to the clusters. // All clusters will be included to the global clusterset DefaultClusterSet featuregate.Feature = "DefaultClusterSet" // V1beta1CSRAPICompatibility will make the spoke registration agent to issue CSR requests // via V1beta1 api, so that registration agent can still manage the certificate rotation for the // ManagedCluster and ManagedClusterAddon. // Note that kubernetes release [1.12, 1.18)'s beta CSR api doesn't have the "signerName" field which // means that all the approved CSR objects will be signed by the built-in CSR controller in // kube-controller-manager. V1beta1CSRAPICompatibility featuregate.Feature = "V1beta1CSRAPICompatibility" // NilExecutorValidating will make the work-webhook to validate the manifest work even if its executor is nil, it // will check if the request user has the execute-as permission with the default executor // "system:serviceaccount::klusterlet-work-sa" NilExecutorValidating featuregate.Feature = "NilExecutorValidating" // ExecutorValidatingCaches will start a new controller in the wokrk agent to cache subject access review // validating results for executors. // When using the ManifestWork Executor feature, enabling this can reduce the number of subject access review // requests sent by the work agent to the managed cluster api server. ExecutorValidatingCaches featuregate.Feature = "ExecutorValidatingCaches" )
Variables ¶
var DefaultHubRegistrationFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{ DefaultClusterSet: {Default: false, PreRelease: featuregate.Alpha}, V1beta1CSRAPICompatibility: {Default: false, PreRelease: featuregate.Alpha}, }
DefaultHubRegistrationFeatureGates consists of all known ocm-registration feature keys for registration hub controller. To add a new feature, define a key for it above and add it here.
var DefaultHubWorkFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{ NilExecutorValidating: {Default: false, PreRelease: featuregate.Alpha}, }
DefaultHubWorkFeatureGates consists of all known acm work wehbook feature keys. To add a new feature, define a key for it above and add it here.
var DefaultSpokeRegistrationFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{ ClusterClaim: {Default: true, PreRelease: featuregate.Beta}, AddonManagement: {Default: false, PreRelease: featuregate.Alpha}, V1beta1CSRAPICompatibility: {Default: false, PreRelease: featuregate.Alpha}, }
DefaultSpokeRegistrationFeatureGates consists of all known ocm-registration feature keys for registration agent. To add a new feature, define a key for it above and add it here.
var DefaultSpokeWorkFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{ ExecutorValidatingCaches: {Default: false, PreRelease: featuregate.Alpha}, }
DefaultSpokeWorkFeatureGates consists of all known ocm work feature keys for work agent. To add a new feature, define a key for it above and add it here.
Functions ¶
This section is empty.
Types ¶
This section is empty.