Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Generic cronjob #3

Open
jessebot opened this issue Mar 30, 2024 · 0 comments
Open

Add Generic cronjob #3

jessebot opened this issue Mar 30, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jessebot
Copy link
Collaborator

It should look similar to the generic job template, only it needs to have a schedule parameter that should be passed in as a value from values.yaml.

For the values.yaml, you can basically just copy this under a new section called cronjob:

job:
# -- enable a job
enabled: false
# -- replica count if not using autoscaling
replicaCount: 1
# -- restart policy if the job fails; can be never, or always
restartPolicy: never
image:
# -- docker registry if not using docker.io
registry: "docker.io"
# -- docker repo
repository: nginx
# -- image pull policy, set to Always if using latest and it changes frequently
pullPolicy: IfNotPresent
# -- Overrides the image tag whose default is latest
tag: "latest"
# -- optional image pull secrets
imagePullSecrets: []
# -- command to pass to docker container
containerCommand: []
# -- env list for job main container
env: []
# -- env from list for job main container
envFrom: []
# -- extra init containers for the default job
initcontainers: {}
# -- extra pod annotations for the job
podAnnotations: {}
# -- extra pod labels for the job
podLabels: {}
# -- pod securityContext job's main container
podSecurityContext: {}
# fsGroup: 2000
# -- securityContext whole job
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
# -- Additional volumes on the output job definition.
volumes: []
# - name: foo
# secret:
# secretName: mysecret
# optional: false
# -- Additional volumeMounts on the output job definition.
volumeMounts: []
# - name: foo
# mountPath: "/etc/foo"
# readOnly: true
# -- node selector for job
nodeSelector: {}
# -- tolerations of taints on a node
tolerations: []
# -- affinity settings for the job
affinity: {}
# -- resources for the job
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi

@jessebot jessebot added enhancement New feature or request good first issue Good for newcomers labels Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant