Skip to content

Commit

Permalink
Merge pull request grafana#94 from periklis/backport-pr-7910
Browse files Browse the repository at this point in the history
[release-5.6] Backport PR grafana#7910
  • Loading branch information
periklis authored Dec 12, 2022
2 parents f406f35 + 1fc4346 commit 3806c3c
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 23 deletions.
1 change: 1 addition & 0 deletions operator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Main

- [7910](https://github.com/grafana/loki/pull/7910) **periklis**: Update Loki operand to v2.7.1
- [7815](https://github.com/grafana/loki/pull/7815) **periklis**: Apply delete client changes for compat with release-2.7.x
- [7809](https://github.com/grafana/loki/pull/7809) **xperimental**: Fix histogram-based alerting rules
- [7808](https://github.com/grafana/loki/pull/7808) **xperimental**: Replace fifocache usage by embedded_cache
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1260,7 +1260,7 @@ spec:
- /manager
env:
- name: RELATED_IMAGE_LOKI
value: quay.io/openshift-logging/loki:v2.7.0-pre
value: quay.io/openshift-logging/loki:v2.7.1
- name: RELATED_IMAGE_GATEWAY
value: quay.io/observatorium/api:latest
- name: RELATED_IMAGE_OPA
Expand Down Expand Up @@ -1388,7 +1388,7 @@ spec:
provider:
name: Grafana.com
relatedImages:
- image: quay.io/openshift-logging/loki:v2.7.0-pre
- image: quay.io/openshift-logging/loki:v2.7.1
name: loki
- image: quay.io/observatorium/api:latest
name: gateway
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ spec:
- name: manager
env:
- name: RELATED_IMAGE_LOKI
value: docker.io/grafana/loki:k120-26d2989
value: docker.io/grafana/loki:2.7.1
- name: RELATED_IMAGE_GATEWAY
value: quay.io/observatorium/api:latest
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
- name: manager
env:
- name: RELATED_IMAGE_LOKI
value: quay.io/openshift-logging/loki:v2.7.0-pre
value: quay.io/openshift-logging/loki:v2.7.1
- name: RELATED_IMAGE_GATEWAY
value: quay.io/observatorium/api:latest
- name: RELATED_IMAGE_OPA
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ spec:
- name: manager
env:
- name: RELATED_IMAGE_LOKI
value: docker.io/grafana/loki:main-ec0bf70
value: docker.io/grafana/loki:2.7.1
- name: RELATED_IMAGE_GATEWAY
value: quay.io/observatorium/api:latest
3 changes: 1 addition & 2 deletions operator/docs/operator/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ Due to the use of apiextensions.k8s.io/v1 CustomResourceDefinitions, requires Ku

The versions of Loki compatible to be run with the Loki Operator are:

* v2.6.0
* v2.6.1
* v2.7.1
4 changes: 2 additions & 2 deletions operator/internal/manifests/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ func ConfigOptions(opt Options) config.Options {
},
ServerNames: config.TLSServerNames{
GRPC: config.GRPCServerNames{
Compactor: fqdn(serviceNameCompactorGRPC(opt.Name), opt.Namespace),
IndexGateway: fqdn(serviceNameIndexGatewayGRPC(opt.Name), opt.Namespace),
Ingester: fqdn(serviceNameIngesterGRPC(opt.Name), opt.Namespace),
QueryFrontend: fqdn(serviceNameQueryFrontendGRPC(opt.Name), opt.Namespace),
Ruler: fqdn(serviceNameRulerGRPC(opt.Name), opt.Namespace),
},
HTTP: config.HTTPServerNames{
Compactor: fqdn(serviceNameCompactorHTTP(opt.Name), opt.Namespace),
Querier: fqdn(serviceNameQuerierHTTP(opt.Name), opt.Namespace),
Querier: fqdn(serviceNameQuerierHTTP(opt.Name), opt.Namespace),
},
},
},
Expand Down
12 changes: 6 additions & 6 deletions operator/internal/manifests/internal/config/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2440,12 +2440,12 @@ querier:
max_concurrent: 2
query_ingesters_within: 3h
tail_max_duration: 1h
delete_client:
compactor_grpc_client:
tls_enabled: true
tls_cert_path: /var/run/tls/http/tls.crt
tls_key_path: /var/run/tls/http/tls.key
tls_cert_path: /var/run/tls/grpc/tls.crt
tls_key_path: /var/run/tls/grpc/tls.key
tls_ca_path: /var/run/tls/ca.pem
tls_server_name: compactor-http.svc
tls_server_name: compactor-grpc.svc
tls_cipher_suites: cipher1,cipher2
tls_min_version: VersionTLS12
query_range:
Expand Down Expand Up @@ -2568,14 +2568,14 @@ overrides:
},
ServerNames: TLSServerNames{
GRPC: GRPCServerNames{
Compactor: "compactor-grpc.svc",
IndexGateway: "index-gateway-grpc.svc",
Ingester: "ingester-grpc.svc",
QueryFrontend: "query-frontend-grpc.svc",
Ruler: "ruler-grpc.svc",
},
HTTP: HTTPServerNames{
Compactor: "compactor-http.svc",
Querier: "querier-http.svc",
Querier: "querier-http.svc",
},
},
},
Expand Down
10 changes: 5 additions & 5 deletions operator/internal/manifests/internal/config/loki-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ querier:
query_ingesters_within: 3h
tail_max_duration: 1h
max_concurrent: {{ .MaxConcurrent.AvailableQuerierCPUCores }}
{{- if .Gates.HTTPEncryption }}
delete_client:
{{- if .Gates.GRPCEncryption }}
compactor_grpc_client:
tls_enabled: true
tls_cert_path: {{ .TLS.Paths.HTTP.Certificate }}
tls_key_path: {{ .TLS.Paths.HTTP.Key }}
tls_cert_path: {{ .TLS.Paths.GRPC.Certificate }}
tls_key_path: {{ .TLS.Paths.GRPC.Key }}
tls_ca_path: {{ .TLS.Paths.CA }}
tls_server_name: {{ .TLS.ServerNames.HTTP.Compactor }}
tls_server_name: {{ .TLS.ServerNames.GRPC.Compactor }}
tls_cipher_suites: {{ .TLS.CipherSuitesString }}
tls_min_version: {{ .TLS.MinTLSVersion }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions operator/internal/manifests/internal/config/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,13 @@ type TLSServerNames struct {
}

type GRPCServerNames struct {
Compactor string
IndexGateway string
Ingester string
QueryFrontend string
Ruler string
}

type HTTPServerNames struct {
Compactor string
Querier string
Querier string
}
2 changes: 1 addition & 1 deletion operator/internal/manifests/var.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const (
EnvRelatedImageGateway = "RELATED_IMAGE_GATEWAY"

// DefaultContainerImage declares the default fallback for loki image.
DefaultContainerImage = "docker.io/grafana/loki:2.6.1"
DefaultContainerImage = "docker.io/grafana/loki:2.7.1"

// DefaultLokiStackGatewayImage declares the default image for lokiStack-gateway.
DefaultLokiStackGatewayImage = "quay.io/observatorium/api:latest"
Expand Down

0 comments on commit 3806c3c

Please sign in to comment.