apiVersion: v1
kind: Secret
metadata:
  name: user-toml
type: Opaque
data:
  # Each item needs to be encoded in base64, as Kubernetes expects that encoding.
  # Plain text content of the secret: "port = 4444"
  # This overrides the port set in the Redis Habitat service.
  user.toml: cG9ydCA9IDQ0NDQ=
---
apiVersion: habitat.sh/v1beta1
metadata:
  name: example-bind-configured-db
spec:
  image: kinvolk/redis-hab
  count: 1
  service:
    name: redis
    # Name of the secret.
    # This is mounted inside of the pod as a user.toml file.
    configSecretName: user-toml
    topology: standalone
---
apiVersion: habitat.sh/v1beta1
kind: Habitat
metadata:
  name: example-bind-configured-web-app
spec:
  image: kinvolk/bindgo-hab
  count: 1
  service:
    name: hab-server-go
    topology: standalone
    bind:
      - name: db
        service: postgresql
        group: default
---
apiVersion: v1
kind: Service
metadata:
  name: web-app
spec:
  selector:
    habitat-name: example-bind-configured-web-app
  type: NodePort
  ports:
  - name: web
    nodePort: 30001
    port: 5555
    protocol: TCP

apiVersion: v1
kind: Secret
metadata:
  name: user-toml
type: Opaque
data:
  # Each item needs to be encoded in base64, as Kubernetes expects that encoding.
  # Plain text content of the secret: "port = 4444"
  # This overrides the port set in the Redis Habitat service.
  user.toml: cG9ydCA9IDQ0NDQ=
---
apiVersion: habitat.sh/v1beta1
metadata:
  name: example-bind-configured-db
spec:
  image: kinvolk/redis-hab
  count: 1
  service:
    name: redis
    # Name of the secret.
    # This is mounted inside of the pod as a user.toml file.
    configSecretName: user-toml
    topology: standalone
---
apiVersion: habitat.sh/v1beta1
kind: Habitat
metadata:
  name: example-bind-configured-web-app
spec:
  image: kinvolk/bindgo-hab
  count: 1
  service:
    name: hab-server-go
    topology: standalone
    bind:
      - name: db
        service: redis
        group: default
---
apiVersion: v1
kind: Service
metadata:
  name: web-app
spec:
  selector:
    habitat-name: example-bind-configured-web-app
  type: NodePort
  ports:
  - name: web
    nodePort: 30001
    port: 5555
    protocol: TCP

Fix remaining reference to postgreql in binding
Fix remaining reference to postgreql in binding

Signed-off-by: Lorenzo Manacorda <86995a091f8a1385082bd10715048b52ee386a6a@kinvolk.io>
