All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
In the previous version, if the prometheus_adapter_chart_version
variable was set, the module enabled the Prometheus Adapter installation. This behavior has been changed. Now, to enable the Prometheus Adapter installation, you must set the prometheus_adapter_enabled
variable to true
. The prometheus_adapter_chart_version
variable is now optional and is used if you want to specify a different chart version from the default one. Remember that the shipped chart values are specific to the default chart version.
If you are not using the Prometheus Adapter (you do not specify the prometheus_adapter_chart_version
variable in your configuration), you can safely ignore this breaking change.
If you receive the following error message during the upgrade:
cannot patch "kube-prometheus-stack-prometheus-node-exporter" with kind DaemonSet: DaemonSet.apps "kube-prometheus-stack-prometheus-node-exporter" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"kube-prometheus-stack", "app.kubernetes.io/name":"prometheus-node-exporter"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
you can delete the DaemonSet
(kubectl delete daemonsets kube-prometheus-stack-prometheus-node-exporter
) resource and apply the changes again. The helm release will recreate the DaemonSet
resource with the correct selector. The only drawback is that you will lose the metrics collected by the DaemonSet
during the downtime.
- Add the default versions for
prometheus_stack_chart_version
andprometheus_adapter_chart_version
variables. These values indicate the default chart version to use and the reference to the shipped chart values. - Add the
prometheus_adapter_enabled
variable to enable or disable the Prometheus Adapter installation.
- refs platform/#2586: the
prometheus_stack_additional_values
andprometheus_adapter_additional_values
variables are now lists of strings instead of a single string. This allows to pass multiple values to the chart. - The kubernetes resources are now created using the
v1
version. - The
template_file
data sources are replaced withtemplatefile
function calls.
- The
versions.tf
file is now present in the module root directory.
grafana_admin_user
output variable.
- [BREAKING] - added a
create_namespace
variable to disable namespace creation, default:true
. The namespace is now an array resource. To prevent namespace recreation, use a move resource. See README.md for an example. grafana_admin_user
variable to specify different user, default isadmin
.
- Generate different
grafana
andbasic_auth
passwords.
- Initial Release