# SPDX-FileCopyrightText: 2020 SAP SE or an SAP affiliate company and Gardener contributors
#
# SPDX-License-Identifier: Apache-2.0

---
apiVersion: v1
kind: Pod
metadata:
  name: example.infra.tf-validate
  namespace: default
spec:
  activeDeadlineSeconds: 1800
  containers:
  - name: terraform
    image: eu.gcr.io/gardener-project/gardener/terraformer:v2.0.0
    imagePullPolicy: IfNotPresent
    command:
    - /terraformer
    - validate
    - --zap-log-level=info
    - --configuration-configmap-name=example.infra.tf-config
    - --state-configmap-name=example.infra.tf-state
    - --variables-secret-name=example.infra.tf-vars
    resources:
      requests:
        cpu: 100m
  restartPolicy: Never
  serviceAccountName: terraformer
  terminationGracePeriodSeconds: 600
