Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Introduce Beat CRD First pass at Beats in ECK, features include: - native support for Filebeat (daemonset only) - initial support for other Beats (deployment only) - RBAC for autodiscovery setup (can be disabled via operator flag) - providing Beat status - basic webhook/non-webhook validation - rollout for config/version changes - labelling for all created resources - support for pod template/config overriding - basic apm/events/logging * Exclude BeatList from doc generation * Add autodiscovery rbac flag to manager cmd, fix rbac for the operator * Add metricbeat driver * Change autodiscover RBAC flag from disable... to enable... * Improve godoc wording * Rename beat_controller.go to controller.go * Fix comment wording * Fix update path for autodiscover resources * Add image validation if Beat type is not well known * Regenerate CRDs and api docs * Expand and improve Beat samples * Refactor config and pod vehicle reconcilation * Make new linter happy * Add e2e tests, update smoke test * Add UTs * Move writing derefed secret to hash to common * Split config.go file * Set default replica count for unknown beats * Fix setting labels on daemonset * Fix not returning error when association secret key isn't found * Add UTs for beat common and config * Fix imports * Make config file mount path the same for all Beats * Fix some comments * Make path strings const * Remove pv for now * Fix permissions for the operator * Apply suggestions from code review Co-authored-by: Peter Brachwitz <[email protected]> * Fix builder security context setting * Fix syntax errors * Adhere to testing conventions * Fix redundant syntax * Regenerate docs * Remove unnecessary comment from beat sample * Move validation to DriverParams * Fix flag name and value * Move setting default vehicle to driver constructor * Remove unused otherbeat type name * Expand comments and rename func for modifying pod template * Fix e2e permissions * Support Beat Builder in samples test * Add SecurityContext to log generating pod * Fix permissions for the operator, create autodiscover role * Fix Metricbeat e2e test * PR fixes * Fix autodiscover cluster role name * Use empty dict instead of null for values * Clean up comments * Fix Beat sample * Filter events so that controller sees only the ones relevant for Beats * Remove watching dynamic secrets as there are none atm * Clean up autodiscover ClusterRoleBinding on delete * Rename default Beat Service Account * Change min supported Beat version to 7.0.0 * move * refactor * Post merge fixes * Add/fix comments * Fix removing comments from yamls * Revert accidental comment * Renames and comments around autodiscover * Refactor to avoid passing state around unnecessarily * Set security context on pod instead of on container * Loosen beat psp * Fix adding beats to v1beta1 scheme * Clean up comments on Beat type * Generated files * Fixes for OpenShift E2E tests * Set template hash label to ClusterRoleBinding * Rename roles.yaml to beat-roles.yaml, common.go to driver.go * Conditionally add empty namespace to cached namespaces * Reword comments, logs * Fix comments * Drop 'operator' from autodiscover resource names * Move validating Beat spec to a separate func * Tighten beat PSP, fix comments, regenerate * Unit test derefing secret for config hash * Fix beat-roles.yaml file name in Makefile * Remove some metricsets from default metricbeat cfg This is to avoid needing more permissions than the pod has through autodiscovery Improve checks in e2e tests * PR fixes Co-authored-by: Peter Brachwitz <[email protected]>
- Loading branch information