Skip to content

Commit

Permalink
Add second key to thanos-objstore-config in order to unify secrets bu…
Browse files Browse the repository at this point in the history
…t be BC at the same time keeping the old one (#1072)

* Add second key to thanos-objstore-config in order to unify secrets but be BC at the same time keeping the old one

Signed-off-by: Stavros Foteinopoulos <[email protected]>

* [CLD-7923]Add second key to thanos-obj-config for unmanaged prometheus

---------

Signed-off-by: Stavros Foteinopoulos <[email protected]>
Co-authored-by: Andre Leite <[email protected]>
  • Loading branch information
stafot and andrleite authored Sep 12, 2024
1 parent 4cd8481 commit 2933ccd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/provisioner/utility/prometheus_operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ func (p *prometheusOperator) CreateOrUpgrade() error {
Name: "thanos-objstore-config",
},
StringData: map[string]string{
"thanos.yaml": string(secret),
"thanos.yaml": string(secret),
"objstore.yml": string(secret),
},
}

Expand Down
3 changes: 2 additions & 1 deletion internal/provisioner/utility/unmanaged.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ func (u *unmanaged) CreateOrUpgrade() error {
Name: "thanos-objstore-config",
},
StringData: map[string]string{
"thanos.yaml": string(secret),
"thanos.yaml": string(secret),
"objstore.yml": string(secret),
},
}

Expand Down

0 comments on commit 2933ccd

Please sign in to comment.