Skip to content

Commit

Permalink
Fix Controller comments (#1874)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
  • Loading branch information
dvaldivia committed Nov 21, 2023
1 parent c87d4c2 commit d707780
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions pkg/controller/main-controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,16 +208,31 @@ const (
LeaderElection
)

// EventNotification - structure to send messages trough a channel regarding a error event to be handled
// EventNotification - structure to send messages through a channel regarding a error event to be handled
type EventNotification struct {
// Err the error to handle if any, null when is just a message
Err error
// Type the event type to handle
Type EventType
}

// NewController returns a new sample controller
func NewController(podName string, namespacesToWatch set.StringSet, kubeClientSet kubernetes.Interface, k8sClient client.Client, minioClientSet clientset.Interface, promClient promclientset.Interface, statefulSetInformer appsinformers.StatefulSetInformer, deploymentInformer appsinformers.DeploymentInformer, podInformer coreinformers.PodInformer, tenantInformer informers.TenantInformer, policyBindingInformer stsInformers.PolicyBindingInformer, serviceInformer coreinformers.ServiceInformer, hostsTemplate, operatorVersion string) *Controller {
// NewController returns a new Operator Controller
func NewController(
podName string,
namespacesToWatch set.StringSet,
kubeClientSet kubernetes.Interface,
k8sClient client.Client,
minioClientSet clientset.Interface,
promClient promclientset.Interface,
statefulSetInformer appsinformers.StatefulSetInformer,
deploymentInformer appsinformers.DeploymentInformer,
podInformer coreinformers.PodInformer,
tenantInformer informers.TenantInformer,
policyBindingInformer stsInformers.PolicyBindingInformer,
serviceInformer coreinformers.ServiceInformer,
hostsTemplate,
operatorVersion string,
) *Controller {
// Create event broadcaster
// Add minio-controller types to the default Kubernetes Scheme so Events can be
// logged for minio-controller types.
Expand Down

0 comments on commit d707780

Please sign in to comment.