File tree 3 files changed +13
-13
lines changed
3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
- FROM openshift/origin-base AS build
1
+ FROM openshift/origin-release:golang-1.10 AS builder
2
2
3
- ENV GOPATH /go
4
- RUN mkdir $GOPATH
5
- RUN yum install -y golang make
6
-
7
- COPY . $GOPATH/src/github.com/openshift/prom-label-proxy
8
- RUN cd $GOPATH/src/github.com/openshift/prom-label-proxy && make build
3
+ COPY . /go/src/github.com/openshift/prom-label-proxy
4
+ RUN cd /go/src/github.com/openshift/prom-label-proxy && make build
9
5
10
6
FROM openshift/origin-base
11
- COPY --from=build /go/src/github.com/openshift/prom-label-proxy/_output/linux/amd64/prom-label-proxy /usr/bin/prom-kube-proxy
7
+ COPY --from=builder /go/src/github.com/openshift/prom-label-proxy/_output/linux/amd64/prom-label-proxy /usr/bin/prom-kube-proxy
12
8
13
9
LABEL io.k8s.display-name="" \
14
10
io.k8s.description="" \
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ OUT_DIR=_output
7
7
BIN? =prom-label-proxy
8
8
VERSION? =$(shell cat VERSION)
9
9
PKGS =$(shell go list ./... | grep -v /vendor/)
10
- DOCKER_REPO? =quay.io/openshift /prom-label-proxy
10
+ DOCKER_REPO? =quay.io/coreos /prom-label-proxy
11
11
12
12
check-license :
13
13
@echo " >> checking license headers"
@@ -27,6 +27,10 @@ build:
27
27
container :
28
28
docker build -t $(DOCKER_REPO ) :$(VERSION ) .
29
29
30
+ run-curl-container :
31
+ @echo ' Example: curl -v -s -k -H "Authorization: Bearer `cat /var/run/secrets/kubernetes.io/serviceaccount/token`" https://kube-rbac-proxy.default.svc:8443/api/v1/query?query=up\&namespace=default'
32
+ kubectl run -i -t krp-curl --image=quay.io/brancz/krp-curl:v0.0.1 --restart=Never --command -- /bin/sh
33
+
30
34
test :
31
35
@echo " >> running all tests"
32
36
@go test -i $(PKGS )
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ kind: ConfigMap
49
49
metadata :
50
50
name : kube-rbac-proxy
51
51
data :
52
- resource-attributes .yaml : |+
52
+ config .yaml : |+
53
53
authorization:
54
54
rewrites:
55
55
byQueryParameter:
@@ -74,11 +74,11 @@ spec:
74
74
serviceAccountName : kube-rbac-proxy
75
75
containers :
76
76
- name : kube-rbac-proxy
77
- image : quay.io/brancz/kube-rbac-proxy-dev :v0.3.1-c617c88
77
+ image : quay.io/brancz/kube-rbac-proxy:v0.4.0
78
78
args :
79
79
- " --secure-listen-address=0.0.0.0:8443"
80
80
- " --upstream=http://localhost:8080/"
81
- - " --resource-attributes- file=/etc/kube-rbac-proxy/resource-attributes .yaml"
81
+ - " --config- file=/etc/kube-rbac-proxy/config .yaml"
82
82
- " --logtostderr=true"
83
83
- " --v=10"
84
84
ports :
88
88
- name : config
89
89
mountPath : /etc/kube-rbac-proxy
90
90
- name : prom-label-enforcer
91
- image : quay.io/brancz /prom-label-proxy:v0.1.0
91
+ image : quay.io/coreos /prom-label-proxy:v0.1.0
92
92
imagePullPolicy : Always
93
93
args :
94
94
- " --insecure-listen-address=127.0.0.1:8080"
You can’t perform that action at this time.
0 commit comments