Skip to content

Commit

Permalink
[helm] fix race between minio bucket job and enterprise tokengen job (#…
Browse files Browse the repository at this point in the history
…8064)

**What this PR does / why we need it**:

This PR replaces #7985. It solves
the same problem, which is the race condition between the minio create
bucket job and the enterprise tokengen job, but without removing minio.
  • Loading branch information
trevorwhitney authored Jan 11, 2023
1 parent eb6ba61 commit 3f9b9cc
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 17 deletions.
3 changes: 3 additions & 0 deletions production/helm/loki/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ Entries should include a reference to the pull request that introduced the chang
## 3.8.2

- [FEATURE] Added `extraObjects` helm values to extra manifests.
## 3.9.0

- [BUGFIX] Fix race condition between minio create bucket job and enterprise tokengen job

## 3.8.1

Expand Down
2 changes: 1 addition & 1 deletion production/helm/loki/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: loki
description: Helm chart for Grafana Loki in simple, scalable mode
type: application
appVersion: 2.7.0
version: 3.8.2
version: 3.9.0
home: https://grafana.github.io/helm-charts
sources:
- https://github.com/grafana/loki
Expand Down
2 changes: 1 addition & 1 deletion production/helm/loki/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# loki

![Version: 3.8.2](https://img.shields.io/badge/Version-3.8.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.7.0](https://img.shields.io/badge/AppVersion-2.7.0-informational?style=flat-square)
![Version: 3.9.0](https://img.shields.io/badge/Version-3.9.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.7.0](https://img.shields.io/badge/AppVersion-2.7.0-informational?style=flat-square)

Helm chart for Grafana Loki in simple, scalable mode

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
"helm.sh/hook": post-install
"helm.sh/hook-weight": "10"
"helm.sh/hook-weight": "15"
spec:
backoffLimit: 6
completions: 1
Expand Down
2 changes: 1 addition & 1 deletion production/helm/loki/templates/tokengen/job-tokengen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
"helm.sh/hook": post-install
"helm.sh/hook-weight": "0"
"helm.sh/hook-weight": "10"
spec:
backoffLimit: 6
completions: 1
Expand Down
6 changes: 3 additions & 3 deletions tools/dev/k3d/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ secrets: secrets/grafana.jwt secrets/gel.jwt

secrets/grafana.jwt:
mkdir -p secrets/
op document get "loki/grafana.jwt" > $(CURDIR)/secrets/grafana.jwt
op document get "loki/grafana.jwt" --output=$(CURDIR)/secrets/grafana.jwt

secrets/gel.jwt:
mkdir -p secrets/
op document get "loki/gel.jwt" > $(CURDIR)/secrets/gel.jwt
op document get "loki/gel.jwt" --output=$(CURDIR)/secrets/gel.jwt

prepare: create-registry update-repos secrets

Expand All @@ -81,4 +81,4 @@ build-latest-image:

HELM_DIR := $(shell cd $(CURDIR)/../../../production/helm/loki && pwd)
helm-install-enterprise-logs:
helm install loki "$(HELM_DIR)" -n loki --values "$(CURDIR)/environments/helm-cluster/values/enterprise-logs.yaml"
helm install enterprise-logs-test-fixture "$(HELM_DIR)" -n loki --create-namespace --values "$(CURDIR)/environments/helm-cluster/values/enterprise-logs.yaml"
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
enterprise:
enabled: true
adminTokenSecret: "gel-admin-token"
useExternalLicense: true
externalLicenseName: gel-license
provisioner:
provisionedSecretPrefix: "provisioned-secret"
tenants:
Expand All @@ -12,3 +14,5 @@ monitoring:
serviceMonitor:
labels:
release: "prometheus"
minio:
enabled: true
20 changes: 10 additions & 10 deletions tools/dev/k3d/jsonnetfile.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"subdir": "consul"
}
},
"version": "d68f9a6e0b1af7c4c4056dc2b43fb8f3bac01f43",
"version": "bb39488d030dd783ac8ceaa1ff936be14be993f0",
"sum": "Po3c1Ic96ngrJCtOazic/7OsLkoILOKZWXWyZWl+od8="
},
{
Expand All @@ -18,7 +18,7 @@
"subdir": "enterprise-metrics"
}
},
"version": "d68f9a6e0b1af7c4c4056dc2b43fb8f3bac01f43",
"version": "bb39488d030dd783ac8ceaa1ff936be14be993f0",
"sum": "hi2ZpHKl7qWXmSZ46sAycjWEQK6oGsoECuDKQT1dA+k="
},
{
Expand All @@ -28,7 +28,7 @@
"subdir": "etcd-operator"
}
},
"version": "d68f9a6e0b1af7c4c4056dc2b43fb8f3bac01f43",
"version": "bb39488d030dd783ac8ceaa1ff936be14be993f0",
"sum": "duHm6wmUju5KHQurOe6dnXoKgl5gTUsfGplgbmAOsHw="
},
{
Expand All @@ -38,7 +38,7 @@
"subdir": "grafana"
}
},
"version": "d68f9a6e0b1af7c4c4056dc2b43fb8f3bac01f43",
"version": "bb39488d030dd783ac8ceaa1ff936be14be993f0",
"sum": "Y5nheroSOIwmE+djEVPq4OvvTxKenzdHhpEwaR3Ebjs="
},
{
Expand All @@ -48,7 +48,7 @@
"subdir": "jaeger-agent-mixin"
}
},
"version": "d68f9a6e0b1af7c4c4056dc2b43fb8f3bac01f43",
"version": "bb39488d030dd783ac8ceaa1ff936be14be993f0",
"sum": "nsukyr2SS8h97I2mxvBazXZp2fxu1i6eg+rKq3/NRwY="
},
{
Expand All @@ -58,7 +58,7 @@
"subdir": "ksonnet-util"
}
},
"version": "d68f9a6e0b1af7c4c4056dc2b43fb8f3bac01f43",
"version": "bb39488d030dd783ac8ceaa1ff936be14be993f0",
"sum": "/pkNOLhRqvQoPA0yYdUuJvpPHqhkCLauAUMD2ZHMIkE="
},
{
Expand All @@ -78,7 +78,7 @@
"subdir": "memcached"
}
},
"version": "d68f9a6e0b1af7c4c4056dc2b43fb8f3bac01f43",
"version": "bb39488d030dd783ac8ceaa1ff936be14be993f0",
"sum": "SWywAq4U0MRPMbASU0Ez8O9ArRNeoZzb75sEuReueow="
},
{
Expand All @@ -88,7 +88,7 @@
"subdir": "tanka-util"
}
},
"version": "d68f9a6e0b1af7c4c4056dc2b43fb8f3bac01f43",
"version": "bb39488d030dd783ac8ceaa1ff936be14be993f0",
"sum": "ShSIissXdvCy1izTCDZX6tY7qxCoepE5L+WJ52Hw7ZQ="
},
{
Expand Down Expand Up @@ -118,8 +118,8 @@
"subdir": "1.20"
}
},
"version": "21f1224e3d351cf85951221d91d015eef790ed48",
"sum": "Sj/Xxz4AvIDs3HI3uQ3TYOiAO2zcYs1veMBRFpPsc0Q="
"version": "4613c97af18622848e4ffac3c4a78a9349f1d716",
"sum": "KZac8iaWuW0tiN54OE9uE+Squ6SVnOHz6Wk2QgmPe3o="
}
],
"legacyImports": false
Expand Down

0 comments on commit 3f9b9cc

Please sign in to comment.