1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-16 09:16:38 +00:00

e2e: ensure C locale when generating random string for namespace

LC_ALL when set takes precedence over LC_CTYPE and might cause
the tr command to fail with 'illegal byte sequence' when
generating the random string.
This commit is contained in:
Jefferson Girao 2018-03-18 12:02:24 +01:00
parent 52a12233e4
commit 9088b8389d

View file

@ -1,6 +1,6 @@
REPO?=quay.io/coreos/prometheus-operator REPO?=quay.io/coreos/prometheus-operator
TAG?=$(shell git rev-parse --short HEAD) TAG?=$(shell git rev-parse --short HEAD)
NAMESPACE?=po-e2e-$(shell LC_CTYPE=C tr -dc a-z0-9 < /dev/urandom | head -c 13 ; echo '') NAMESPACE?=po-e2e-$(shell LC_ALL=C tr -dc a-z0-9 < /dev/urandom | head -c 13 ; echo '')
KUBECONFIG?=$(HOME)/.kube/config KUBECONFIG?=$(HOME)/.kube/config
PROMU := $(GOPATH)/bin/promu PROMU := $(GOPATH)/bin/promu