Documentation ¶
Index ¶
- func CreateAddon(server, accessToken string, cluster *clusterv1.ManagedCluster, ...) error
- func CreateCluster(server, accessToken string, managedCluster *clusterv1.ManagedCluster) error
- func New[T primitive](value T) *T
- func PostAddonStatus(server, accessToken string, cluster *clusterv1.ManagedCluster, ...) error
- func PostClusterLabels(server, accessToken string, managedCluster *clusterv1.ManagedCluster, ...) error
- func PostClusterStatus(server, accessToken string, managedCluster *clusterv1.ManagedCluster, ...) error
- func RemoveClusterLabels(server, accessToken string, managedCluster *clusterv1.ManagedCluster, ...) error
- func RetrieveAccessToken(ctx context.Context, kubeClient kubernetes.Interface) (string, error)
- func UpdateManagedClusterAddonStatus(ctx context.Context, client addonclient.Interface, clusterName string, ...) (*addonv1alpha1.ManagedClusterAddOnStatus, bool, error)
- func UpdateManagedClusterStatus(ctx context.Context, client clusterclient.Interface, spokeClusterName string, ...) (*clusterv1.ManagedClusterStatus, bool, error)
- type AccessTokenCfg
- type RegistryAddress
- type UpdateManagedClusterAddonStatusFunc
- type UpdateManagedClusterStatusFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAddon ¶
func CreateAddon(server, accessToken string, cluster *clusterv1.ManagedCluster, addon *addonv1alpha1.ManagedClusterAddOn) error
func CreateCluster ¶
func CreateCluster(server, accessToken string, managedCluster *clusterv1.ManagedCluster) error
func New ¶
func New[T primitive](value T) *T
New takes any type of primitive and returns a pointer to a copy that is allocated in the heap. This is needed to allow setting values (hard coded or struct members) by reference to the api structs.
func PostAddonStatus ¶
func PostClusterLabels ¶
func PostClusterStatus ¶
func RemoveClusterLabels ¶
func RemoveClusterLabels(server, accessToken string, managedCluster *clusterv1.ManagedCluster, removedLabelKeys []string) error
func RetrieveAccessToken ¶
retrieve access token from pull secret
func UpdateManagedClusterAddonStatus ¶
func UpdateManagedClusterAddonStatus( ctx context.Context, client addonclient.Interface, clusterName string, addonName string, updateFuncs ...UpdateManagedClusterAddonStatusFunc) (*addonv1alpha1.ManagedClusterAddOnStatus, bool, error)
func UpdateManagedClusterStatus ¶
func UpdateManagedClusterStatus( ctx context.Context, client clusterclient.Interface, spokeClusterName string, updateFuncs ...UpdateManagedClusterStatusFunc) (*clusterv1.ManagedClusterStatus, bool, error)
Types ¶
type AccessTokenCfg ¶
type AccessTokenCfg struct {
Auths map[string]RegistryAddress `json:"auths"`
}
type RegistryAddress ¶
type UpdateManagedClusterAddonStatusFunc ¶
type UpdateManagedClusterAddonStatusFunc func(status *addonv1alpha1.ManagedClusterAddOnStatus) error
func UpdateManagedClusterAddonConditionFn ¶
func UpdateManagedClusterAddonConditionFn(cond metav1.Condition) UpdateManagedClusterAddonStatusFunc
type UpdateManagedClusterStatusFunc ¶
type UpdateManagedClusterStatusFunc func(status *clusterv1.ManagedClusterStatus) error
func UpdateManagedClusterConditionFn ¶
func UpdateManagedClusterConditionFn(cond metav1.Condition) UpdateManagedClusterStatusFunc
Click to show internal directories.
Click to hide internal directories.