#
# Copyright (c) 2021 IBM Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
apiVersion: v1
kind: Pod
metadata:
  name: optional-empty-config-test-pod
spec:
  terminationGracePeriodSeconds: 0
  runtimeClassName: kata
  containers:
    - name: test-container
      image: quay.io/prometheus/busybox:latest
      command: ["tail", "-f", "/dev/null"]
      volumeMounts:
        - mountPath: /empty-config
          name: empty-config
        - mountPath: /optional-missing-config
          name: optional-missing-config
  volumes:
    - name: empty-config
      configMap:
        name: empty-config
    - name: optional-missing-config
      configMap:
        name: optional-missing-config
        optional: true
  restartPolicy: Never