# Functions
AgentNamespace returns the namespace to deploy the agents.
AgentPriorityClassName return the name of the PriorityClass that should be used for the klusterlet agents.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DetermineReplica determines the replica of deployment based on: - mode: if it is Hosted mode will return 1 - kube version: if the kube version is less than v1.14 reutn 1 - node: list master nodes in the cluster and return 1 if the number of master nodes is equal or less than 1.
DetermineReplicaByNodes determines the replica of deployment based on: list master nodes in the cluster and return 1 if the number of master nodes is equal or less than 1.
FeatureGateEnabled checks if a feature is enabled or disabled in operator API, or fallback to use the the default setting.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetHubKubeconfig is used to get the kubeconfig of the hub cluster.
No description provided by the author
No description provided by the author
No description provided by the author
IsSingleton returns if agent is deployed in singleton mode either hosted or not.
No description provided by the author
KlusterletNamespace returns the klusterlet namespace on the managed cluster.
No description provided by the author
LoadClientConfigFromSecret returns a client config loaded from the given secret.
No description provided by the author
No description provided by the author
NumOfUnavailablePod is to check if a deployment is in degraded state.
No description provided by the author
No description provided by the author
No description provided by the author
ResourceRequirements get resource requirements overridden by user for ResourceQosClassResourceRequirement type.
ResourceType set default and return resource requirements override by user.
SATokenGetter get the saToken of target sa.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SyncSecret forked from: https://github.com/openshift/library-go/blob/d9cdfbd844ea08465b938c46a16bed2ea23207e4/pkg/operator/resource/resourceapply/core.go#L357, add an addition targetClient parameter to support sync secret to another cluster.
# Constants
AgentLabelKey is used to filter resources in informers.
#nosec G101.
No description provided by the author
ClusterManagerDefaultNamespace is the default namespace of clustermanager.
DefaultAddonNamespace is the default namespace for agent addon.
DefaultComponentNamespace is the default namespace in which the operator is deployed.
ExternalHubKubeConfig is the secret name of kubeconfig secret to connecting to the hub cluster.
ExternalManagedKubeConfig is the secret name of kubeconfig secret to connecting to the managed cluster Only applicable to Hosted mode, klusterlet-operator uses it to install resources on the managed cluster.
ExternalManagedKubeConfigAgent is the secret name of kubeconfig secret to connecting to the managed cluster Only applicable to SingletonHosted mode, agent uses it to connect to the managed cluster.
ExternalManagedKubeConfigRegistration is the secret name of kubeconfig secret to connecting to the managed cluster Only applicable to Hosted mode, registration-agent uses it to connect to the managed cluster.
ExternalManagedKubeConfigWork is the secret name of kubeconfig secret to connecting to the managed cluster Only applicable to Hosted mode, work-agent uses it to connect to the managed cluster.
No description provided by the author
No description provided by the author
No description provided by the author
HubKubeConfig is the secret name of kubeconfig secret to connect to hub with mtls.
ImagePullSecret is the image pull secret for operator components, which is synced from the operator ns to hub/spoke/addon ns.
KlusterletDefaultNamespace is the default namespace of klusterlet.
No description provided by the author
No description provided by the author
No description provided by the author
WorkDriverConfigSecret is the secret that contains the work driver configuration.
#nosec G101.
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author