Skip to content

Commit

Permalink
Update proxy core (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgifarashev authored Oct 23, 2018
1 parent 51aeaf1 commit 87f3195
Show file tree
Hide file tree
Showing 918 changed files with 58,459 additions and 33,411 deletions.
82 changes: 43 additions & 39 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@

[[constraint]]
name = "github.com/kubernetes-incubator/service-catalog"
version = "=0.1.27"
version = "=0.1.36"

[[constraint]]
name = "github.com/Peripli/service-broker-proxy"
branch = "master"
version = "0.1.1"

[[constraint]]
name = "github.com/onsi/ginkgo"
Expand Down
16 changes: 9 additions & 7 deletions application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ sm:
request_timeout: 6000ms
skip_ssl_validation: true
resync_period: 1m
app:
user: admin
password: admin
url: http://localhost:8081
k8s:
client:
timeout: 6000ms
reg:
# To run locally you need to create a secret in the k8s cluster
user: admin
password: admin
secret:
name: service-broker-proxy-regsecret
namespace: service-broker-proxy
# To run locally you need to create a secret in the k8s
# cluster with username: app.user and password app.password
secret:
name: service-broker-proxy-regsecret
namespace: service-broker-proxy
4 changes: 2 additions & 2 deletions charts/service-broker-proxy-k8s/templates/broker-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
data:
username: {{ .Values.reg.user | b64enc }}
password: {{ .Values.reg.password | b64enc }}
username: {{ .Values.app.username | b64enc }}
password: {{ .Values.app.password | b64enc }}
30 changes: 15 additions & 15 deletions charts/service-broker-proxy-k8s/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,22 @@ spec:
mountPath: {{ .Values.file.location }}
readOnly: true
env:
- name: K8S_SECRET_NAME
value: {{ template "service-broker-proxy.fullname" . }}-regsecret
- name: K8S_SECRET_NAMESPACE
value: {{ .Release.Namespace }}
- name: APP_URL
value: http://{{ template "service-broker-proxy.name" . }}.{{ .Release.Namespace }}:{{ .Values.service.port }}
value: http://{{ template "service-broker-proxy.fullname" . }}.{{ .Release.Namespace }}:{{ .Values.service.port }}
- name: APP_USERNAME
valueFrom:
secretKeyRef:
name: {{ template "service-broker-proxy.fullname" . }}-regsecret
key: username
- name: APP_PASSWORD
valueFrom:
secretKeyRef:
name: {{ template "service-broker-proxy.fullname" . }}-regsecret
key: password
- name: SM_USER
valueFrom:
secretKeyRef:
Expand All @@ -45,20 +59,6 @@ spec:
secretKeyRef:
name: {{ template "service-broker-proxy.fullname" . }}-secret
key: sm_password
- name: K8S_REG_SECRET_NAME
value: {{ template "service-broker-proxy.fullname" . }}-regsecret
- name: K8S_REG_SECRET_NAMESPACE
value: {{ .Release.Namespace }}
- name: K8S_REG_USER
valueFrom:
secretKeyRef:
name: {{ template "service-broker-proxy.fullname" . }}-regsecret
key: username
- name: K8S_REG_PASSWORD
valueFrom:
secretKeyRef:
name: {{ template "service-broker-proxy.fullname" . }}-regsecret
key: password
ports:
- name: http
containerPort: 8081
Expand Down
4 changes: 2 additions & 2 deletions charts/service-broker-proxy-k8s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ sm:
password: admin

# Credentials used to register the proxy as a broker
reg:
user: admin
app:
username: admin
password: admin

config:
Expand Down
Loading

0 comments on commit 87f3195

Please sign in to comment.