kind: Deployment
apiVersion: apps/v1
metadata:
  name: oneimage
  namespace: app-created-namespace
  labels:
    "acorn.io/app-namespace": "app-namespace"
    "acorn.io/app-name": "app-name"
    "acorn.io/container-name": "oneimage"
    "acorn.io/managed": "true"
  annotations:
    secret-rev.acorn.io/secret_dir_redeploy: "677d9197a43dc1b2d2fcbc026c51462c8d16f90a1cbfc11d58a868b1f0256449"
    secret-rev.acorn.io/secret_env_redeploy: "0b0c304d11b643e599d08d89090ab1bc4e7d25cd0b345e1194f99ce0411c4983"
    secret-rev.acorn.io/secret_file_redeploy: "22e3f3fe588737e91b552db39c1b1abc0760633b6a840e61757fa771735c21a9"
spec:
  selector:
    matchLabels:
      "acorn.io/app-namespace": "app-namespace"
      "acorn.io/app-name": "app-name"
      "acorn.io/container-name": "oneimage"
      "acorn.io/managed": "true"
  template:
    metadata:
      labels:
        "acorn.io/app-namespace": "app-namespace"
        "acorn.io/app-name": "app-name"
        "acorn.io/container-name": "oneimage"
        "acorn.io/managed": "true"
      annotations:
        secret-rev.acorn.io/secret_dir_redeploy: "677d9197a43dc1b2d2fcbc026c51462c8d16f90a1cbfc11d58a868b1f0256449"
        secret-rev.acorn.io/secret_env_redeploy: "0b0c304d11b643e599d08d89090ab1bc4e7d25cd0b345e1194f99ce0411c4983"
        secret-rev.acorn.io/secret_file_redeploy: "22e3f3fe588737e91b552db39c1b1abc0760633b6a840e61757fa771735c21a9"
        acorn.io/container-spec: '{"dirs":{"noaction":{"secret":{"name":"secret_dir_noaction","onChange":"noAction"}},"redeploy":{"secret":{"name":"secret_dir_redeploy","onChange":"redeploy"}}},"environment":[{"name":"NOACTION","secret":{"key":"key","name":"secret_env_noaction","onChange":"noAction"}},{"name":"REDEPLOY","secret":{"key":"key","name":"secret_env_redeploy","onChange":"redeploy"}}],"files":{"mode":{"mode":"0123","secret":{"key":"key","name":"secret_file_noaction","onChange":"noAction"}},"noaction":{"secret":{"key":"key","name":"secret_file_noaction","onChange":"noAction"}},"redeploy":{"secret":{"key":"key","name":"secret_file_redeploy","onChange":"redeploy"}}},"image":"image-name","probes":null}'
    spec:
      hostname: oneimage
      terminationGracePeriodSeconds: 5
      imagePullSecrets:
        - name: oneimage-pull-1234567890ab
      enableServiceLinks: false
      serviceAccountName: oneimage
      containers:
        - name: oneimage
          image: image-name
          env:
          - name: NOACTION
            valueFrom:
              secretKeyRef:
                key: key
                name: secret_env_noaction
          - name: REDEPLOY
            valueFrom:
              secretKeyRef:
                key: key
                name: secret_env_redeploy
          volumeMounts:
          - mountPath: /mode
            name: secret--secret_file_noaction-0123
            subPath: key
          - mountPath: /noaction
            name: secret--secret_file_noaction
            subPath: key
          - mountPath: /redeploy
            name: secret--secret_file_redeploy
            subPath: key
          - mountPath: /noaction
            name: secret--secret_dir_noaction
          - mountPath: /redeploy
            name: secret--secret_dir_redeploy

      volumes:
      - name: secret--secret_dir_noaction
        secret:
          secretName: secret_dir_noaction
      - name: secret--secret_dir_redeploy
        secret:
          secretName: secret_dir_redeploy
      - name: secret--secret_file_noaction
        secret:
          secretName: secret_file_noaction
      - name: secret--secret_file_noaction-0123
        secret:
          defaultMode: 0123
          secretName: secret_file_noaction
      - name: secret--secret_file_redeploy
        secret:
          secretName: secret_file_redeploy

