Documentation
¶
Index ¶
- func Add(mgr manager.Manager) error
- func AddStatusRec(mgr manager.Manager) error
- type ClusterPlacementRuleMapper
- type PolicyPlacementRuleMapper
- type ReconcilePlacementRule
- func (r *ReconcilePlacementRule) GetManagedClusters(clusterRoleName string, clmap map[string]*spokeClusterV1.ManagedCluster) []string
- func (r *ReconcilePlacementRule) Impersonate(user string, groups []string) *kubernetes.Clientset
- func (r *ReconcilePlacementRule) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcilePlacementRule) UnsetImpersonate(user string, groups []string) *kubernetes.Clientset
- func (r *ReconcilePlacementRule) UpdateStatus(instance *appv1alpha1.PlacementRule) error
- func (r *ReconcilePlacementRule) ValidateClustersByClusterRole(user string, groups []string, clmap map[string]*spokeClusterV1.ManagedCluster)
- type ReconcilePlacementRuleStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add creates a new PlacementRule Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.
func AddStatusRec ¶ added in v0.7.0
Types ¶
type ClusterPlacementRuleMapper ¶
ClusterPlacementRuleMapper is defined for PlacementRule to watch clusters
type PolicyPlacementRuleMapper ¶
PolicyPlacementRuleMapper is defined for PlacementRule to watch policies
type ReconcilePlacementRule ¶
ReconcilePlacementRule reconciles a PlacementRule object
func (*ReconcilePlacementRule) GetManagedClusters ¶ added in v0.8.0
func (r *ReconcilePlacementRule) GetManagedClusters(clusterRoleName string, clmap map[string]*spokeClusterV1.ManagedCluster) []string
func (*ReconcilePlacementRule) Impersonate ¶ added in v0.8.0
func (r *ReconcilePlacementRule) Impersonate(user string, groups []string) *kubernetes.Clientset
func (*ReconcilePlacementRule) Reconcile ¶
func (r *ReconcilePlacementRule) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the cluster for a PlacementRule object and makes changes based on the state read and what is in the PlacementRule.Spec a Deployment as an example Automatically generate RBAC rules to allow the Controller to read and write Deployments +kubebuilder:rbac:groups=multicloud-apps.io,resources=placementrules,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=multicloud.io,resources=placementrules/status,verbs=get;update;patch
func (*ReconcilePlacementRule) UnsetImpersonate ¶ added in v0.8.0
func (r *ReconcilePlacementRule) UnsetImpersonate(user string, groups []string) *kubernetes.Clientset
func (*ReconcilePlacementRule) UpdateStatus ¶
func (r *ReconcilePlacementRule) UpdateStatus(instance *appv1alpha1.PlacementRule) error
func (*ReconcilePlacementRule) ValidateClustersByClusterRole ¶ added in v0.8.0
func (r *ReconcilePlacementRule) ValidateClustersByClusterRole(user string, groups []string, clmap map[string]*spokeClusterV1.ManagedCluster)
type ReconcilePlacementRuleStatus ¶ added in v0.7.0
func (*ReconcilePlacementRuleStatus) Reconcile ¶ added in v0.7.0
func (r *ReconcilePlacementRuleStatus) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the cluster for a PlacementRule object and makes changes based on the state read and what is in the PlacementRule.Status a Deployment as an example Automatically generate RBAC rules to allow the Controller to read and write Deployments +kubebuilder:rbac:groups=multicloud-apps.io,resources=placementrules,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=multicloud.io,resources=placementrules/status,verbs=get;update;patch