Documentation ¶
Index ¶
Constants ¶
View Source
const ( // #nosec G101 EncryptionKeySecret = "policy-encryption-key" IVAnnotation = "policy.open-cluster-management.io/encryption-iv" LastRotatedAnnotation = "policy.open-cluster-management.io/last-rotated" )
View Source
const ControllerName string = "policy-propagator"
View Source
const (
TriggerUpdateAnnotation = "policy.open-cluster-management.io/trigger-update"
)
Variables ¶
This section is empty.
Functions ¶
func GenerateEncryptionKey ¶
func Initialize ¶
func Initialize(kubeconfig *rest.Config, kubeclient *kubernetes.Interface)
Types ¶
type PolicyReconciler ¶
PolicyReconciler reconciles a Policy object
func (*PolicyReconciler) Reconcile ¶
func (r *PolicyReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)
Reconcile reads that state of the cluster for a Policy object and makes changes based on the state read and what is in the Policy.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
func (*PolicyReconciler) SetupWithManager ¶
func (r *PolicyReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.