Documentation ¶
Index ¶
Constants ¶
const ( // SuccessSynced is used as part of the Event 'reason' when a Foo is synced SuccessSynced = "Synced" // ErrResourceExists is used as part of the Event 'reason' when a Foo fails // to sync due to a Deployment of the same name already existing. ErrResourceExists = "ErrResourceExists" // MessageResourceExists is the message used for Events when a resource // fails to sync due to a Deployment already existing MessageResourceExists = "Resource %q already exists and is not managed by Foo" // MessageResourceSynced is the message used for an Event fired when a Foo // is synced successfully MessageResourceSynced = "Foo synced successfully" )
Variables ¶
This section is empty.
Functions ¶
func ProvideController ¶
func ProvideController(arguments args.InjectArgs) (*controller.GenericController, error)
Types ¶
type OnionServiceController ¶
type OnionServiceController struct { args.InjectArgs // contains filtered or unexported fields }
+kubebuilder:informers:group=core,version=v1,kind=Pod +kubebuilder:rbac:groups=core,resources=pods,verbs=get;list;watch;create;update;patch;delete +kubebuilder:controller:group=tor,version=v1alpha1,kind=OnionService,resource=onionservices +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete +kubebuilder:informers:group=apps,version=v1,kind=Deployment +kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;create;update;patch;delete +kubebuilder:informers:group=core,version=v1,kind=Service +kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list;watch;create;update;patch;delete +kubebuilder:informers:group=core,version=v1,kind=Secret +kubebuilder:rbac:groups=core,resources=serviceaccounts,verbs=get;list;watch;create;update;patch;delete +kubebuilder:informers:group=core,version=v1,kind=ServiceAccount +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=roles,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=rolebindings,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=core,resources=events,verbs=get;list;watch;create;update;patch;delete
func (*OnionServiceController) LookupOnionService ¶
func (bc *OnionServiceController) LookupOnionService(r types.ReconcileKey) (interface{}, error)
LookupOnionService looksup an OnionService from the lister
func (*OnionServiceController) Reconcile ¶
func (bc *OnionServiceController) Reconcile(k types.ReconcileKey) error