Skip to content

Suggestion on howto handle Jobs? #727

Answered by julienduchesne
strowi asked this question in Q&A
Discussion options

You must be logged in to vote

You can add a random string to the job name depending on parameters (keycloak version?). We have this for Flux (deploying Flux with Flux):

  } + {
      // Hash the whole job object and add the hash to its name
      // The job's template is immutable, so this ensures that any modification recreates it completely.
      local hash = std.md5(std.toString(super.job_flux2_flux_check)),
      job_flux2_flux_check+: k.batch.v1.job.metadata.withName('flux2-check-' + hash),
    },

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Duologic
Comment options

Answer selected by strowi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants