apiVersion: batch/v1
kind: Job
metadata:
  name: sample-extension-metacontroller-install
  namespace: crossplane-system
spec:
  completions: 1
  parallelism: 1
  backoffLimit: 4
  template:
    spec:
      restartPolicy: Never
      containers:
      - name: sample-extension-metacontroller
        image: displague/sample-extension-metacontroller
        args: ["prepare"]
        env:
        - name: POD_NAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
        - name: POD_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
