apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: stargazers
spec:
  schedule: "* */1 * * *" # every day run
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: stargazers
            image: veggiemonk/stargazers:latest # replace with your image
            args:
            - stargazers
            - --repo=ExpressGateway/express-gateway # repo name to check 
            - --token=XXX # github token
            - --id=19agiVeJ-jsn-cbXm2WR4VwAl-fIUaiVK5KOAKKyZpLo # google sheets id
            # - --advanced=true # load all data, several hours to run  
          restartPolicy: OnFailure