apiVersion: batch/v1
kind: Job
metadata:
  name: loadsingletest
  namespace: testbus
  labels:
    app: loadsingletest
spec:
  template:
    metadata:
      labels:
        app: loadsingletest
    spec:
      containers:
      - name: testbus
        image: jieshe/testbus:latest
        imagePullPolicy: Always
        command: ["testbus"]
        args: [
          "load-single",
          "--conn-str=$(SERVICEBUS_CONNECTION_STRING)"
        ]
        env:
          - name: SERVICEBUS_CONNECTION_STRING
            valueFrom:
              secretKeyRef:
                name: testbus-secret
                key: connStr
      restartPolicy: Never
  backoffLimit: 1
