Skip to content

Commit

Permalink
disable grafana-agent pod logs crds as they are causing issues with a…
Browse files Browse the repository at this point in the history
…lloy-logs (#251)

* disable grafana-agent pod logs crds as they are causing issues with alloy-logs

* fix crds uncreate

* fix pytest-helm-chart version
  • Loading branch information
QuentinBisson authored Oct 31, 2024
1 parent 0bafef3 commit 3da6ff2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Reconcile clusters when the observability bundle version changes.

### Fixed

- Disable crd installation from grafana agent as this is causing issues with the new v29 releases.

## [0.14.0] - 2024-10-29

### Changed
Expand Down
8 changes: 8 additions & 0 deletions pkg/resource/grafana-agent-config/grafana-agent-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type values struct {
type grafanaAgent struct {
Agent agent `yaml:"agent" json:"agent"`
Controller controller `yaml:"controller" json:"controller"`
CRDs crds `yaml:"crds" json:"crds"`
}

type agent struct {
Expand All @@ -45,6 +46,10 @@ type controller struct {
Type ControllerType `yaml:"type" json:"type"`
}

type crds struct {
Create bool `yaml:"create" json:"create"`
}

// ConfigMeta returns metadata for the grafana-agent-config
func ConfigMeta(lc loggedcluster.Interface) metav1.ObjectMeta {
metadata := metav1.ObjectMeta{
Expand Down Expand Up @@ -109,6 +114,9 @@ loki.write "default" {
Replicas: 1,
Type: deployment,
},
CRDs: crds{
Create: false,
},
},
}

Expand Down

0 comments on commit 3da6ff2

Please sign in to comment.