apiVersion: batch/v1
kind: Job
metadata:
  name: v0.16.0-broker-cleanup
  namespace: knative-eventing
  labels:
    eventing.knative.dev/release: "v0.16.1"
spec:
  ttlSecondsAfterFinished: 600
  template:
    metadata:
      annotations:
        sidecar.istio.io/inject: "false"
    spec:
      serviceAccountName: eventing-controller
      restartPolicy: Never
      containers:
      - name: brokers
        image: gcr.io/knative-releases/knative.dev/eventing/cmd/v0.16/broker-cleanup@sha256:b7915f9ff75e90b728c2ccc85417d593ea2025609585c980a1bd0b0fdeeff98d
        env:
        - name: SYSTEM_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace

# Note the following ENVVAR settings exist:
# SYSTEM_NAMESPACE - the namespace of the control plane, defaults to knative-eventing
# REPLACEMENT_BROKER_CLASS - the broker class to update ChannelBroker to, defaults to MTChannelBroker.
# DRY_RUN - a flag to run the script without deleting or updating, defaults to false.

---
