Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

operator: Update Loki operand to v2.7.1 #7910

Merged
merged 3 commits into from
Dec 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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