# This patch sets the image used for deployment according to environment variables.
apiVersion: apps/v1
kind: Deployment
metadata:
  name: manager
  namespace: system
spec:
  template:
    spec:
      containers:
      - name: devworkspace-controller
        image: ${DWO_IMG}
        imagePullPolicy: Always
        env:
          - name: RELATED_IMAGE_devworkspace_webhook_server
            value: ${DWO_IMG}
          - name: RELATED_IMAGE_kube_rbac_proxy
            value: ${RBAC_PROXY_IMAGE}
          - name: RELATED_IMAGE_project_clone
            value: ${PROJECT_CLONE_IMG}
      - name: kube-rbac-proxy
        image: ${RBAC_PROXY_IMAGE}
