Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add datasources to org cr's status (#144)
* add org CRD in helm chart * layout foundations for CRD with kubebuilder * remove useless files * update CRD names * add generated crd * applying suggestions * fix naming issues * update Dockerfile with copy command for the api package * update changelog * add symlink to crd in helm chart and updated crd * fix symlink * fix symlink * Update main.go Co-authored-by: Quentin Bisson <[email protected]> * add symlink back * add finalizer * Apply suggestions from code review Co-authored-by: Théo Brigitte <[email protected]> * regenerate crd * update sample * add logic to grafana organization reconciler * fix build * Split grafana client creation in its own folder * add exclusions to golangci * add crds template in chart * Apply suggestions from code review Co-authored-by: Quentin Bisson <[email protected]> * update const names in files * Update pkg/grafana/client/client.go Co-authored-by: Quentin Bisson <[email protected]> * fix const name in client * rework getAdminCredentials function * remove unused variable in client * fix missing return statement error * add authorizations for grafanaorganizations in operator rbac * Apply suggestions from code review Co-authored-by: Quentin Bisson <[email protected]> * fix merging errors * rename main org * sort imports * Enable grafanaOrganization creation * first draft for org creation * refactor code * Apply suggestions from code review Co-authored-by: Quentin Bisson <[email protected]> * make orgID and dataSource ID int * try out dirty trick * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Jose Armesto <[email protected]> * update error handling * Apply suggestions from code review Co-authored-by: Théo Brigitte <[email protected]> * fix errors in code * remove connection to Grafana check * enhance error handling * rename variables * add back deleted code * changelog * update crd sample * add debug logs to solve current issue * fix grafana admin secret name for admin-user * remove debug logs * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Quentin Bisson <[email protected]> * Apply suggestions from code review Co-authored-by: Quentin Bisson <[email protected]> * fix name error * refacto code * refactor code * refactor code for better readability * fix grafana isNotFound error handling * add organization type * remove one level of indentation * improve status update handling * add and fix comments * remove unecessary type casting * refacto and add todos to make the code cleaner * add initial org mapping (#133) * add org CRD in helm chart * layout foundations for CRD with kubebuilder * remove useless files * update CRD names * add generated crd * applying suggestions * fix naming issues * update Dockerfile with copy command for the api package * update changelog * add symlink to crd in helm chart and updated crd * fix symlink * fix symlink * Update main.go Co-authored-by: Quentin Bisson <[email protected]> * add symlink back * add finalizer * Apply suggestions from code review Co-authored-by: Théo Brigitte <[email protected]> * regenerate crd * update sample * add logic to grafana organization reconciler * fix build * Split grafana client creation in its own folder * add exclusions to golangci * add crds template in chart * Apply suggestions from code review Co-authored-by: Quentin Bisson <[email protected]> * update const names in files * Update pkg/grafana/client/client.go Co-authored-by: Quentin Bisson <[email protected]> * fix const name in client * rework getAdminCredentials function * remove unused variable in client * fix missing return statement error * add authorizations for grafanaorganizations in operator rbac * Apply suggestions from code review Co-authored-by: Quentin Bisson <[email protected]> * fix merging errors * rename main org * sort imports * add initial org mapping * move crds to helm official repo to respect installation order * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Théo Brigitte <[email protected]> * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Théo Brigitte <[email protected]> * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Théo Brigitte <[email protected]> * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Quentin Bisson <[email protected]> * Set alloy wal truncate_frequency to 15m (#130) * try truncate frequency * Add flag to be able to set truncate_frequency * set default monitoring agent to alloy (#134) * Release v0.8.0 (#135) * fix flag redefined error (#136) * Release v0.8.1 (#137) * add logic to grafana organization reconciler (#129) * add org CRD in helm chart * layout foundations for CRD with kubebuilder * remove useless files * update CRD names * add generated crd * applying suggestions * fix naming issues * update Dockerfile with copy command for the api package * update changelog * add symlink to crd in helm chart and updated crd * fix symlink * fix symlink * Update main.go Co-authored-by: Quentin Bisson <[email protected]> * add symlink back * add finalizer * Apply suggestions from code review Co-authored-by: Théo Brigitte <[email protected]> * regenerate crd * update sample * add logic to grafana organization reconciler * fix build * Split grafana client creation in its own folder * add exclusions to golangci * add crds template in chart * Apply suggestions from code review Co-authored-by: Quentin Bisson <[email protected]> * update const names in files * Update pkg/grafana/client/client.go Co-authored-by: Quentin Bisson <[email protected]> * fix const name in client * rework getAdminCredentials function * remove unused variable in client * fix missing return statement error * add authorizations for grafanaorganizations in operator rbac * Apply suggestions from code review Co-authored-by: Quentin Bisson <[email protected]> * fix merging errors * rename main org * sort imports * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Jose Armesto <[email protected]> * Apply suggestions from code review Co-authored-by: Théo Brigitte <[email protected]> * fix errors in code * address reviews * address reviews --------- Co-authored-by: QuentinBisson <[email protected]> Co-authored-by: Théo Brigitte <[email protected]> Co-authored-by: Jose Armesto <[email protected]> * Update github.com/grafana/grafana-openapi-client-go digest to 9d96c20 (#138) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update module github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring to v0.77.2 (#139) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update internal/controller/grafanaorganization_controller.go --------- Co-authored-by: QuantumEnigmaa <[email protected]> Co-authored-by: Zirko <[email protected]> Co-authored-by: Théo Brigitte <[email protected]> Co-authored-by: Taylor Bot <[email protected]> Co-authored-by: Jose Armesto <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix grafana admin password in deployment * fix grafana admin password in deployment * Update CHANGELOG.md * fix go build * add deletion * move grafana templating to another pkg * make datasources field in the CR optional * add watches over the grafana pod * add rule for watching & listing pods in clusterrole * add datasources to org cr's status * reduce scope of grafana pod watch * push unfinished changes * disable configureGrafana function for testing * fix grafana pod reconciliation * add configureGrafana back * create both loki and mimir datasources for each org * fix datasource creation * trying a simple datasource addition * fix watch * add access mode to datasource * reverting test code * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Hervé Nicol <[email protected]> * Apply suggestions from code review Co-authored-by: Quentin Bisson <[email protected]> * apply more suggestions * fix comment * fix comment * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Hervé Nicol <[email protected]> * fix comment * fix comment * disable alloy-metrics pod logs crds as they are causing issues with alloy-logs (#148) * Update module github.com/onsi/gomega to v1.35.1 (#151) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Théo Brigitte <[email protected]> * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Théo Brigitte <[email protected]> * Update pkg/grafana/grafana.go Co-authored-by: Théo Brigitte <[email protected]> * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Théo Brigitte <[email protected]> * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Théo Brigitte <[email protected]> * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Théo Brigitte <[email protected]> * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Théo Brigitte <[email protected]> * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Théo Brigitte <[email protected]> * Update internal/controller/grafanaorganization_controller.go * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Théo Brigitte <[email protected]> * refactor * address-reviews * Update internal/controller/grafanaorganization_controller.go * Update internal/controller/grafanaorganization_controller.go * nits * Update internal/controller/grafanaorganization_controller.go * Update internal/controller/grafanaorganization_controller.go * Update internal/controller/grafanaorganization_controller.go * add-datasource-in-org * Update tests/test-values.yaml * set tenant to anonymous for mimir and alertmanager * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Théo Brigitte <[email protected]> * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Théo Brigitte <[email protected]> * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Théo Brigitte <[email protected]> * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Théo Brigitte <[email protected]> * Update internal/controller/grafanaorganization_controller.go * Update internal/controller/grafanaorganization_controller.go * Update internal/controller/grafanaorganization_controller.go * Update internal/controller/grafanaorganization_controller.go * Update internal/controller/grafanaorganization_controller.go * Update internal/controller/grafanaorganization_controller.go * Update internal/controller/grafanaorganization_controller.go * Update internal/controller/grafanaorganization_controller.go * Update internal/controller/predicates/predicates.go Co-authored-by: Théo Brigitte <[email protected]> * Update pkg/grafana/grafana.go Co-authored-by: Théo Brigitte <[email protected]> * Update pkg/grafana/types.go Co-authored-by: Théo Brigitte <[email protected]> * Update pkg/grafana/types.go Co-authored-by: Théo Brigitte <[email protected]> * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Théo Brigitte <[email protected]> * fix build * comment * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Théo Brigitte <[email protected]> * address review * edit roles for shared org * edit roles for shared org * Update internal/controller/grafanaorganization_controller.go Co-authored-by: Théo Brigitte <[email protected]> * Update pkg/grafana/templating/templating.go Co-authored-by: Théo Brigitte <[email protected]> * reviews * improve watch predicate * fix --------- Co-authored-by: QuentinBisson <[email protected]> Co-authored-by: Théo Brigitte <[email protected]> Co-authored-by: Jose Armesto <[email protected]> Co-authored-by: Taylor Bot <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Hervé Nicol <[email protected]>
- Loading branch information