Skip to content

Commit

Permalink
parameterize the 'ansible-service-broker' namespace with the NAMESPAC…
Browse files Browse the repository at this point in the history
…E variable (openshift#800)
  • Loading branch information
John Kim authored and Erik Nelson committed Mar 1, 2018
1 parent cd985d9 commit 44a2371
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions templates/deploy-ansible-service-broker.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ objects:
kind: ServiceAccount
metadata:
name: asb
namespace: ansible-service-broker
namespace: "${NAMESPACE}"

- apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
Expand All @@ -58,7 +58,7 @@ objects:
subjects:
- kind: ServiceAccount
name: asb
namespace: ansible-service-broker
namespace: "${NAMESPACE}"

- apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
Expand Down Expand Up @@ -101,7 +101,7 @@ objects:
subjects:
- kind: ServiceAccount
name: asb
namespace: ansible-service-broker
namespace: "${NAMESPACE}"
roleRef:
kind: ClusterRole
name: asb-auth
Expand All @@ -119,7 +119,7 @@ objects:
kind: PersistentVolumeClaim
metadata:
name: etcd
namespace: ansible-service-broker
namespace: "${NAMESPACE}"
spec:
accessModes:
- ReadWriteOnce
Expand Down Expand Up @@ -262,7 +262,7 @@ objects:
kind: Secret
metadata:
name: asb-auth-secret
namespace: ansible-service-broker
namespace: "${NAMESPACE}"
data:
username: ${BROKER_USER}
password: ${BROKER_PASS}
Expand All @@ -271,7 +271,7 @@ objects:
kind: Secret
metadata:
name: ${REGISTRY_SECRET_NAME}
namespace: ansible-service-broker
namespace: "${NAMESPACE}"
data:
username: ${DOCKERHUB_USER}
password: ${DOCKERHUB_PASS}
Expand All @@ -280,15 +280,15 @@ objects:
kind: Secret
metadata:
name: etcd-auth-secret
namespace: ansible-service-broker
namespace: "${NAMESPACE}"
data:
ca.crt: ${ETCD_TRUSTED_CA}

- apiVersion: v1
kind: Secret
metadata:
name: broker-etcd-auth-secret
namespace: ansible-service-broker
namespace: "${NAMESPACE}"
data:
client.crt: ${BROKER_CLIENT_CERT}
client.key: ${BROKER_CLIENT_KEY}
Expand All @@ -297,7 +297,7 @@ objects:
kind: ConfigMap
metadata:
name: broker-config
namespace: ansible-service-broker
namespace: "${NAMESPACE}"
labels:
app: ansible-service-broker
data:
Expand Down Expand Up @@ -332,7 +332,7 @@ objects:
bearer_token_file: "${BEARER_TOKEN_FILE}"
image_pull_policy: "${IMAGE_PULL_POLICY}"
sandbox_role: "${SANDBOX_ROLE}"
namespace: ansible-service-broker
namespace: "${NAMESPACE}"
keep_namespace: ${KEEP_NAMESPACE}
keep_namespace_on_error: ${KEEP_NAMESPACE_ON_ERROR}
broker:
Expand All @@ -345,6 +345,7 @@ objects:
ssl_cert_key: /etc/tls/private/tls.key
ssl_cert: /etc/tls/private/tls.crt
auto_escalate: ${AUTO_ESCALATE}
cluster_url: ${NAMESPACE}
auth:
- type: basic
enabled: ${ENABLE_BASIC_AUTH}
Expand All @@ -353,7 +354,7 @@ objects:
kind: ServiceAccount
metadata:
name: ansibleservicebroker-client
namespace: ansible-service-broker
namespace: "${NAMESPACE}"

- apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
Expand All @@ -362,7 +363,7 @@ objects:
subjects:
- kind: ServiceAccount
name: ansibleservicebroker-client
namespace: ansible-service-broker
namespace: "${NAMESPACE}"
roleRef:
kind: ClusterRole
name: access-asb-role
Expand Down Expand Up @@ -397,7 +398,7 @@ objects:
metadata:
name: ansible-service-broker
spec:
url: https://asb.ansible-service-broker.svc:1338${BROKER_URL_PREFIX}/
url: https://asb.${NAMESPACE}.svc:1338${BROKER_URL_PREFIX}/
authInfo:
${{BROKER_AUTH}}
caBundle: ${BROKER_CA_CERT}
Expand Down

0 comments on commit 44a2371

Please sign in to comment.