Documentation ¶
Index ¶
- func ApplyCRDs(ctx context.Context, client apiextensionsClient.Interface, ...) error
- func ApplyManifests(ctx context.Context, kubeClient kubernetes.Interface, recorder events.Recorder, ...) error
- func AssetFromFile(manifestFiles embed.FS, config interface{}) resourceapply.AssetFunc
- func DeleteFromManifests(ctx context.Context, kubeClient kubernetes.Interface, recorder events.Recorder, ...) error
- func ForAddon(client addonV1alpha1Client.ManagedClusterAddOnInterface) resource.Interface[*addonV1alpha1.ManagedClusterAddOn]
- func ForClusterAddon(client addonV1alpha1Client.ClusterManagementAddOnInterface) resource.Interface[*addonV1alpha1.ClusterManagementAddOn]
- func ForManagedCluster(client clusterV1Client.ManagedClusterInterface) resource.Interface[*clusterV1.ManagedCluster]
- func ForManagedClusterSet(client clusterV1beta2Client.ManagedClusterSetInterface) resource.Interface[*clusterV1beta2.ManagedClusterSet]
- func ForManifestWork(client workclient.ManifestWorkInterface) resource.Interface[*workv1.ManifestWork]
- func ForSubmarinerConfig(client cfgv1a1clnt.SubmarinerConfigInterface) resource.Interface[*configV1alpha1.SubmarinerConfig]
- func GetCurrentNamespace(defaultNamespace string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyCRDs ¶
func ApplyCRDs(ctx context.Context, client apiextensionsClient.Interface, recorder events.Recorder, ownerRef *metav1.OwnerReference, assetFunc resourceapply.AssetFunc, files ...string, ) error
func ApplyManifests ¶
func ApplyManifests(ctx context.Context, kubeClient kubernetes.Interface, recorder events.Recorder, cache resourceapply.ResourceCache, assetFunc resourceapply.AssetFunc, files ...string, ) error
func AssetFromFile ¶
func AssetFromFile(manifestFiles embed.FS, config interface{}) resourceapply.AssetFunc
func DeleteFromManifests ¶
func DeleteFromManifests(ctx context.Context, kubeClient kubernetes.Interface, recorder events.Recorder, assetFunc resourceapply.AssetFunc, files ...string, ) error
func ForAddon ¶
func ForAddon(client addonV1alpha1Client.ManagedClusterAddOnInterface) resource.Interface[*addonV1alpha1.ManagedClusterAddOn]
func ForClusterAddon ¶
func ForClusterAddon(client addonV1alpha1Client.ClusterManagementAddOnInterface) resource.Interface[*addonV1alpha1.ClusterManagementAddOn]
func ForManagedCluster ¶
func ForManagedCluster(client clusterV1Client.ManagedClusterInterface) resource.Interface[*clusterV1.ManagedCluster]
func ForManagedClusterSet ¶
func ForManagedClusterSet(client clusterV1beta2Client.ManagedClusterSetInterface) resource.Interface[*clusterV1beta2.ManagedClusterSet]
func ForManifestWork ¶
func ForManifestWork(client workclient.ManifestWorkInterface) resource.Interface[*workv1.ManifestWork]
func ForSubmarinerConfig ¶
func ForSubmarinerConfig(client cfgv1a1clnt.SubmarinerConfigInterface) resource.Interface[*configV1alpha1.SubmarinerConfig]
func GetCurrentNamespace ¶
GetCurrentNamespace returns the current namespace from file system, if the namespace is not found, it returns the defaultNamespace.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.