Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reporting operator refactoring #1357

Open
9 of 16 tasks
pweil- opened this issue Aug 4, 2020 · 0 comments
Open
9 of 16 tasks

reporting operator refactoring #1357

pweil- opened this issue Aug 4, 2020 · 0 comments

Comments

@pweil-
Copy link

pweil- commented Aug 4, 2020

Validation

  • break out validation into it's own space and remove it from the types
  • add validation for newPrometheusConnFromURL file check
  • stat the kubeconfig file if set
  • HiveUSETLS + HiveCAFile validation (return fmt.Errorf("error loading Hive CA File: %s", err))
  • HiveUseClientCertAuth - should it only be set to true when HiveUseTLS is true?
  • ensure the *Host fields are valid host/port pairs
  • PrometheusDataSourceMaxBackfillImportDuration and PrometheusDataSourceGlobalImportFromTime: PrometheusDataSourceGlobalImportFromTime overrides duration. Should we validate?
  • Cert/key pairs should be set together (search for CertFile/KeyFile)
  • Stat cert key files
  • AllNamespaces/TargetNamespaces Validation

#1356

Workers

  • determine why we have so many workers threads vs performance gains

TargetNamespaces []string

  • TODO why do we require the setting of both here? In operator.go#New we could just check length of this and do the right thing. Also need to look at how this actually filters the informer.

DependencyResolver

  • should probably be in its own package and not part of the reporting operator types.

operator.go#New

  • remove client configuration loading here and just accept the client (move it to cmd/ pakcage)

operator.go

  • kubeClient corev1.CoreV1Interface As a side note, this also seems a bit strange to me as to why we would use a corev1.Corev1Interface instead of a kubernetes.Interface, but this isn't something we need to tackle here.

cmd

  • refactor to the Complete, Validate, Run pattern
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant