##---
# Source: spinnaker/templates/hooks/create-bucket.yaml

apiVersion: batch/v1
kind: Job
metadata:
  name: "RELEASE-NAME-create-bucket"
  labels:
    app: RELEASE-NAME-spinnaker
    component: minio
  annotations:
    "helm.sh/hook": post-install
spec:
  template:
    metadata:
      labels:
        app: RELEASE-NAME-spinnaker
        component: minio
    spec:
      restartPolicy: OnFailure
      containers:
      - name: post-install-job
        image: "minio/mc:RELEASE.2018-03-25T01-22-22Z"
        command:
        - sh
        - -c
        - "mc config host add RELEASE-NAME-minio http://RELEASE-NAME-minio:9000 spinnakeradmin spinnakeradmin S3v4 && mc mb -p RELEASE-NAME-minio/spinnaker"
