Skip to content

Commit

Permalink
Create go configuration rhobs (#602)
Browse files Browse the repository at this point in the history
* init service_go

Signed-off-by: Thibault Mange <[email protected]>

* wip

Signed-off-by: Thibault Mange <[email protected]>

* add post processing

Signed-off-by: Thibault Mange <[email protected]>

* add store template

Signed-off-by: Thibault Mange <[email protected]>

* add replicas in instance config

Signed-off-by: Thibault Mange <[email protected]>

* update generated files

Signed-off-by: Thibault Mange <[email protected]>

* change dir of generated tamplates

Signed-off-by: Thibault Mange <[email protected]>

* update go.mod

Signed-off-by: Thibault Mange <[email protected]>

* remove store cache

Signed-off-by: Thibault Mange <[email protected]>

* add some comments

Signed-off-by: Thibault Mange <[email protected]>

* remove post process

Signed-off-by: Thibault Mange <[email protected]>

* remove status section from yaml

Signed-off-by: Thibault Mange <[email protected]>

* fix anti affinity namespace

Signed-off-by: Thibault Mange <[email protected]>

* update tracing sidecar reporter host

Signed-off-by: Thibault Mange <[email protected]>

* add preManifests hooks

Signed-off-by: Thibault Mange <[email protected]>

* update store sharding

Signed-off-by: Thibault Mange <[email protected]>

* add pdb

Signed-off-by: Thibault Mange <[email protected]>

* set oauth proxy secret as param

Signed-off-by: Thibault Mange <[email protected]>

* fix type meta

Signed-off-by: Thibault Mange <[email protected]>

* remove oauth secret

Signed-off-by: Thibault Mange <[email protected]>

* remove cookie file config in oauth proxy

Signed-off-by: Thibault Mange <[email protected]>

* upgrade observatorium dep for fixes

Signed-off-by: Thibault Mange <[email protected]>

* improve objstore config management

Signed-off-by: Thibault Mange <[email protected]>

* add route for compactor ui

Signed-off-by: Thibault Mange <[email protected]>

* fix

Signed-off-by: Thibault Mange <[email protected]>

* upgrade go ci image

Signed-off-by: Thibault Mange <[email protected]>

* go mod tidy

Signed-off-by: Thibault Mange <[email protected]>

* upgrade go ci

Signed-off-by: Thibault Mange <[email protected]>

* add template parameters for support

Signed-off-by: Thibault Mange <[email protected]>

* multi tenant observatorium support

Signed-off-by: Thibault Mange <[email protected]>

* add resources in template params

Signed-off-by: Thibault Mange <[email protected]>

* add default tenant, infinite compactor retention

Signed-off-by: Thibault Mange <[email protected]>

---------

Signed-off-by: Thibault Mange <[email protected]>
  • Loading branch information
thibaultmg authored Oct 9, 2023
1 parent 23408c3 commit 702bbe7
Show file tree
Hide file tree
Showing 28 changed files with 6,847 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2.1
jobs:
build:
docker:
- image: cimg/go:1.19
- image: cimg/go:1.21
steps:
- checkout
- run: make vendor_jsonnet
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: 1.21
- name: Vendor
run: make vendor_jsonnet
- name: Build
Expand Down
16 changes: 11 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
module github.com/rhobs/configuration

go 1.19
go 1.21

require (
github.com/bwplotka/mimic v0.1.1-0.20220621130344-a6338e3b8238
github.com/observatorium/api v0.1.3-0.20220621123450-69c5f2661d01
github.com/bwplotka/mimic v0.2.1-0.20230303101552-f705cca2f4a4
github.com/observatorium/api v0.1.3-0.20230711132510-96e8799ade44
github.com/observatorium/observatorium v0.0.0-00010101000000-000000000000
github.com/openshift/api v3.9.0+incompatible
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.68.0
github.com/pyrra-dev/pyrra v0.7.0
gopkg.in/yaml.v3 v3.0.1
k8s.io/api v0.28.2
k8s.io/apimachinery v0.28.2
)

Expand Down Expand Up @@ -50,6 +54,7 @@ require (
github.com/prometheus/prometheus v1.8.2-0.20220211202545-56e14463bccf // indirect
github.com/rodaine/hclencoder v0.0.1 // indirect
github.com/stretchr/testify v1.8.4 // indirect
github.com/thanos-io/thanos v0.32.2 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/goleak v1.2.1 // indirect
go.uber.org/zap v1.26.0 // indirect
Expand All @@ -66,8 +71,6 @@ require (
gopkg.in/alecthomas/kingpin.v2 v2.2.6 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/api v0.28.2 // indirect
k8s.io/apiextensions-apiserver v0.28.2 // indirect
k8s.io/client-go v0.28.2 // indirect
k8s.io/klog/v2 v2.100.1 // indirect
Expand All @@ -78,3 +81,6 @@ require (
sigs.k8s.io/structured-merge-diff/v4 v4.3.0 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
)

// Delete when https://github.com/observatorium/observatorium/pull/543 is merged to main branch
replace github.com/observatorium/observatorium => github.com/thibaultmg/observatorium v0.0.0-20231002130052-3e0c7849c81f
37 changes: 30 additions & 7 deletions go.sum

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions mimic.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"github.com/bwplotka/mimic"
cfgobservatorium "github.com/rhobs/configuration/configuration/observatorium"
services "github.com/rhobs/configuration/services_go"
)

func main() {
Expand All @@ -13,4 +14,8 @@ func main() {
cfgobservatorium.GenSLO(gen.With("observability", "prometheusrules", "pyrra"), gen.With("observability", "prometheusrules"))

cfgobservatorium.GenerateRBAC(gen.With(".tmp", "tenants"))

// Generate the manifests for all observatorium instances.
services.Generate(gen.With("services"))

}
Loading

0 comments on commit 702bbe7

Please sign in to comment.