Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the agent v1 API group +k8s:deepcopy-gen=package,register +groupName=agent.open-cluster-management.io
Package v1 contains API Schema definitions for the agent v1 API group +k8s:deepcopy-gen=package,register +groupName=agent.open-cluster-management.io
Index ¶
Constants ¶
const ( OCPGlobalProxyDetected string = "OCPGlobalProxyDetected" ReasonOCPGlobalProxyDetected string = "OCPGlobalProxyDetected" ReasonOCPGlobalProxyNotDetected string = "OCPGlobalProxyNotDetected" ReasonOCPGlobalProxyDetectedFail string = "OCPGlobalProxyNotDetectedFail" )
const ( HTTPProxy = "HTTP_PROXY" HTTPSProxy = "HTTPS_PROXY" NoProxy = "NO_PROXY" )
const ( // UpgradeLabel is to label the upgraded manifestWork. UpgradeLabel = "open-cluster-management.io/upgrade" KlusterletAddonNamespace = "open-cluster-management-agent-addon" )
const ( WorkManagerAddonName = "work-manager" ApplicationAddonName = "application-manager" CertPolicyAddonName = "cert-policy-controller" ConfigPolicyAddonName = "config-policy-controller" IamPolicyAddonName = "iam-policy-controller" // deprecated and removed PolicyAddonName = "policy-controller" PolicyFrameworkAddonName = "governance-policy-framework" SearchAddonName = "search-collector" )
const ( EnvMulticlusterOperatorSubscription = "MULTICLUSTER_OPERATOR_SUBSCRIPTION" EnvConfigPolicyController = "CONFIG_POLICY_CONTROLLER" EnvKubeRBACProxy = "KUBE_RBAC_PROXY" EnvCertPolicyController = "CERT_POLICY_CONTROLLER" EnvGovernancePolicyFrameworkAddon = "GOVERNANCE_POLICY_FRAMEWORK_ADDON" EnvSearchCollector = "SEARCH_COLLECTOR" )
image env names
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "agent.open-cluster-management.io", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
var EnvImageNameMap = map[string]string{ EnvMulticlusterOperatorSubscription: "multicluster_operators_subscription", EnvKubeRBACProxy: "kube_rbac_proxy", EnvCertPolicyController: "cert_policy_controller", EnvConfigPolicyController: "config_policy_controller", EnvGovernancePolicyFrameworkAddon: "governance_policy_framework_addon", EnvSearchCollector: "search_collector", }
EnvImageNameMap is the image env names map
var KlusterletAddonImageNames = map[string][]string{ ApplicationAddonName: {"multicluster_operators_subscription"}, ConfigPolicyAddonName: {"config_policy_controller", "kube_rbac_proxy"}, CertPolicyAddonName: {"cert_policy_controller"}, PolicyAddonName: {"config_policy_controller", "governance_policy_framework_addon"}, PolicyFrameworkAddonName: {"governance_policy_framework_addon", "kube_rbac_proxy"}, SearchAddonName: {"search_collector"}, }
KlusterletAddonImageNames is the image key names for each addon agents in image-manifest configmap
var KlusterletAddons = map[string]bool{ WorkManagerAddonName: false, ApplicationAddonName: true, ConfigPolicyAddonName: true, IamPolicyAddonName: false, CertPolicyAddonName: true, PolicyFrameworkAddonName: true, SearchAddonName: true, }
KlusterletAddons is a list of managedClusterAddons which can be updated by addon-controller. true means it is deployed by addon-controller, can be updated and deleted. false means it is not deployed by addon-controller, do not need to be updated, can be deleted.
Functions ¶
This section is empty.
Types ¶
type AddonAgentConfig ¶
type AddonAgentConfig struct { KlusterletAddonConfig *KlusterletAddonConfig ManagedCluster *clusterv1.ManagedCluster NodeSelector map[string]string ImagePullSecret string ImagePullSecretNamespace string ImagePullPolicy corev1.PullPolicy }
AddonAgentConfig is the configurations for addon agents.
func (*AddonAgentConfig) DeepCopy ¶
func (in *AddonAgentConfig) DeepCopy() *AddonAgentConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonAgentConfig.
func (*AddonAgentConfig) DeepCopyInto ¶
func (in *AddonAgentConfig) DeepCopyInto(out *AddonAgentConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GlobalValues ¶
type GlobalValues struct { ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"` ImagePullSecret string `json:"imagePullSecret,omitempty"` ImageOverrides map[string]string `json:"imageOverrides,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` ProxyConfig map[string]string `json:"proxyConfig,omitempty"` }
GlobalValues defines the global values +k8s:openapi-gen=true
func (*GlobalValues) DeepCopy ¶
func (in *GlobalValues) DeepCopy() *GlobalValues
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalValues.
func (*GlobalValues) DeepCopyInto ¶
func (in *GlobalValues) DeepCopyInto(out *GlobalValues)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KlusterletAddonAgentConfigSpec ¶
type KlusterletAddonAgentConfigSpec struct { // Enabled is the flag to enable/disable the addon. default is false. // +optional Enabled bool `json:"enabled"` // ProxyPolicy defines the policy to set proxy for each addon agent. default is Disabled. // Disabled means that the addon agent pods do not configure the proxy env variables. // OCPGlobalProxy means that the addon agent pods use the cluster-wide proxy config of OCP cluster provisioned by ACM. // CustomProxy means that the addon agent pods use the ProxyConfig specified in KlusterletAddonConfig. // +kubebuilder:validation:Enum=Disabled;OCPGlobalProxy;CustomProxy // +optional ProxyPolicy ProxyPolicy `json:"proxyPolicy,omitempty"` }
KlusterletAddonAgentConfigSpec defines configuration for each addon agent.
func (*KlusterletAddonAgentConfigSpec) DeepCopy ¶
func (in *KlusterletAddonAgentConfigSpec) DeepCopy() *KlusterletAddonAgentConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KlusterletAddonAgentConfigSpec.
func (*KlusterletAddonAgentConfigSpec) DeepCopyInto ¶
func (in *KlusterletAddonAgentConfigSpec) DeepCopyInto(out *KlusterletAddonAgentConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KlusterletAddonConfig ¶
type KlusterletAddonConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec KlusterletAddonConfigSpec `json:"spec,omitempty"` Status KlusterletAddonConfigStatus `json:"status,omitempty"` }
KlusterletAddonConfig is the Schema for the klusterletaddonconfigs API +kubebuilder:subresource:status +kubebuilder:resource:path=klusterletaddonconfigs,scope=Namespaced
func (*KlusterletAddonConfig) DeepCopy ¶
func (in *KlusterletAddonConfig) DeepCopy() *KlusterletAddonConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KlusterletAddonConfig.
func (*KlusterletAddonConfig) DeepCopyInto ¶
func (in *KlusterletAddonConfig) DeepCopyInto(out *KlusterletAddonConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KlusterletAddonConfig) DeepCopyObject ¶
func (in *KlusterletAddonConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KlusterletAddonConfigList ¶
type KlusterletAddonConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []KlusterletAddonConfig `json:"items"` }
KlusterletAddonConfigList contains a list of klusterletAddonConfig
func (*KlusterletAddonConfigList) DeepCopy ¶
func (in *KlusterletAddonConfigList) DeepCopy() *KlusterletAddonConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KlusterletAddonConfigList.
func (*KlusterletAddonConfigList) DeepCopyInto ¶
func (in *KlusterletAddonConfigList) DeepCopyInto(out *KlusterletAddonConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KlusterletAddonConfigList) DeepCopyObject ¶
func (in *KlusterletAddonConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KlusterletAddonConfigSpec ¶
type KlusterletAddonConfigSpec struct { // DEPRECATED in release 2.4 and will be removed in the future since not used anymore. // +optional Version string `json:"version,omitempty"` // DEPRECATED in release 2.4 and will be removed in the future since not used anymore. // +kubebuilder:validation:MinLength=1 // +optional ClusterName string `json:"clusterName,omitempty"` // DEPRECATED in release 2.4 and will be removed in the future since not used anymore. // +kubebuilder:validation:MinLength=1 // +optional ClusterNamespace string `json:"clusterNamespace,omitempty"` // DEPRECATED in release 2.4 and will be removed in the future since not used anymore. // +optional ClusterLabels map[string]string `json:"clusterLabels,omitempty"` // ProxyConfig defines the cluster-wide proxy configuration of the OCP managed cluster. // +optional ProxyConfig ProxyConfig `json:"proxyConfig,omitempty"` // SearchCollectorConfig defines the configurations of SearchCollector addon agent. SearchCollectorConfig KlusterletAddonAgentConfigSpec `json:"searchCollector"` // PolicyController defines the configurations of PolicyController addon agent. PolicyController KlusterletAddonAgentConfigSpec `json:"policyController"` // ApplicationManagerConfig defines the configurations of ApplicationManager addon agent. ApplicationManagerConfig KlusterletAddonAgentConfigSpec `json:"applicationManager"` // CertPolicyControllerConfig defines the configurations of CertPolicyController addon agent. CertPolicyControllerConfig KlusterletAddonAgentConfigSpec `json:"certPolicyController"` // DEPRECATED in release 2.11 and will be removed in the future since not used anymore. IAMPolicyControllerConfig KlusterletAddonAgentConfigSpec `json:"iamPolicyController,omitempty"` }
KlusterletAddonConfigSpec defines the desired state of KlusterletAddonConfig
func (*KlusterletAddonConfigSpec) DeepCopy ¶
func (in *KlusterletAddonConfigSpec) DeepCopy() *KlusterletAddonConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KlusterletAddonConfigSpec.
func (*KlusterletAddonConfigSpec) DeepCopyInto ¶
func (in *KlusterletAddonConfigSpec) DeepCopyInto(out *KlusterletAddonConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KlusterletAddonConfigStatus ¶
type KlusterletAddonConfigStatus struct { // OCPGlobalProxy is the cluster-wide proxy config of the OCP cluster provisioned by ACM // +optional OCPGlobalProxy ProxyConfig `json:"ocpGlobalProxy,omitempty"` // Conditions contains condition information for the klusterletAddonConfig // +optional Conditions []metav1.Condition `json:"conditions,omitempty"` }
KlusterletAddonConfigStatus defines the observed state of KlusterletAddonConfig
func (*KlusterletAddonConfigStatus) DeepCopy ¶
func (in *KlusterletAddonConfigStatus) DeepCopy() *KlusterletAddonConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KlusterletAddonConfigStatus.
func (*KlusterletAddonConfigStatus) DeepCopyInto ¶
func (in *KlusterletAddonConfigStatus) DeepCopyInto(out *KlusterletAddonConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProxyConfig ¶
type ProxyConfig struct { // HTTPProxy is the URL of the proxy for HTTP requests. Empty means unset and will not result in an env var. // +optional HTTPProxy string `json:"httpProxy,omitempty"` // HTTPSProxy is the URL of the proxy for HTTPS requests. Empty means unset and will not result in an env var. // +optional HTTPSProxy string `json:"httpsProxy,omitempty"` // NoProxy is a comma-separated list of hostnames and/or CIDRs for which the proxy should not be used. // Empty means unset and will not result in an env var. // The API Server of Hub cluster should be added here. // And If you scale up workers that are not included in the network defined by the networking.machineNetwork[].cidr // field from the installation configuration, you must add them to this list to prevent connection issues. // +optional NoProxy string `json:"noProxy,omitempty"` }
ProxyConfig defines the global proxy env for OCP cluster
func (*ProxyConfig) DeepCopy ¶
func (in *ProxyConfig) DeepCopy() *ProxyConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxyConfig.
func (*ProxyConfig) DeepCopyInto ¶
func (in *ProxyConfig) DeepCopyInto(out *ProxyConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProxyPolicy ¶
type ProxyPolicy string
const ( ProxyPolicyDisable ProxyPolicy = "Disabled" ProxyPolicyOCPGlobalProxy ProxyPolicy = "OCPGlobalProxy" ProxyPolicyCustomProxy ProxyPolicy = "CustomProxy" )