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

feat(operator): add namespace to grafanaDashboard #168

Merged

Conversation

MateSousa
Copy link
Contributor

Closes #138

πŸ“‘ Description

The namespace field has been added to the grafanaDashboard section of the values.yaml file. This allows the Grafana dashboard to be deployed to a specific namespace, which improves organization and separation of concerns.

βœ… Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

@MateSousa MateSousa requested review from a team as code owners June 23, 2023 00:40
@MateSousa MateSousa force-pushed the feat-enable-users-to-define-configmap-ns branch from 200d44f to 946d5a0 Compare June 23, 2023 00:42
@arbreezy
Copy link
Member

hey @MateSousa thanks for the PR and the interest in the project.

I believe we want something similar to what we define in prometheus stanza, whereby if namespace is not defined in values.yaml we deploy the Grafana dashboard's CM in the same namespace where we deploy the operator

The `namespace` field has been added to the `grafanaDashboard` section of the `values.yaml` file. This allows the Grafana dashboard to be deployed to a specific namespace, which improves organization and separation of concerns.

Signed-off-by: MateSousa <matessousa@outlook.com>
The namespace field is added to the metadata section of the Grafana dashboard YAML file. This allows the dashboard to be created in the specified namespace, which improves organization and management of the dashboard.

Signed-off-by: MateSousa <matessousa@outlook.com>
…t-overview dashboard

The namespaceSelector is added to the k8sgpt-overview dashboard to allow it to be displayed in the namespace specified in the values.yaml file. This improves the flexibility of the dashboard as it can now be displayed in any namespace specified in the values.yaml file.

Signed-off-by: MateSousa <matessousa@outlook.com>
…hboard in values.yaml

The namespace field in the grafanaDashboard section of the values.yaml file is not needed as it is commented out and has no value. Removing it improves the readability of the file.

Signed-off-by: MateSousa <matessousa@outlook.com>
@MateSousa MateSousa force-pushed the feat-enable-users-to-define-configmap-ns branch from 58399e6 to a30ac6c Compare June 23, 2023 12:36
@MateSousa
Copy link
Contributor Author

@arbreezy i guess it would be like that, right?

AlexsJones
AlexsJones previously approved these changes Jun 26, 2023
The namespace configuration for the Grafana dashboard has been simplified by removing the unnecessary namespaceSelector block. Instead, the namespace is directly set using the .Values.grafanaDashboard.namespace value, falling back to the default namespace if not provided. This change improves readability and reduces complexity in the configuration file.

Signed-off-by: MateSousa <matessousa@outlook.com>
@arbreezy
Copy link
Member

@MateSousa thank you for your contribution

@arbreezy arbreezy merged commit 9c31c92 into k8sgpt-ai:main Jun 29, 2023
6 checks passed
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

Successfully merging this pull request may close these issues.

[Feature]: Install Grafana dashboard in the namespace where kube-prometheus is located
3 participants