summaryrefslogtreecommitdiffstats
path: root/roles/template_service_broker/files/template-service-broker-registration.yaml
blob: 95fb729244f06d46458a67b30f850cbc4f11362f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
apiVersion: template.openshift.io/v1
kind: Template
metadata:
  name: template-service-broker-registration
parameters:
- name: TSB_NAMESPACE
  value: openshift-template-service-broker
- name: CA_BUNDLE
  required: true
objects:
# register the tsb with the service catalog
- apiVersion: servicecatalog.k8s.io/v1beta1
  kind: ClusterServiceBroker
  metadata:
    name: template-service-broker
  spec:
    url: https://apiserver.${TSB_NAMESPACE}.svc:443/brokers/template.openshift.io
    insecureSkipTLSVerify: false
    caBundle: ${CA_BUNDLE}
    authInfo:
      bearer:
        secretRef:
          kind:      Secret
          name:      templateservicebroker-client
          namespace: ${TSB_NAMESPACE}