Skip to content

stackablectl demo install should optionally ignore existing Jobs #333

@NickLarsenNZ

Description

@NickLarsenNZ

Affected version

24.7.1

Current and expected behavior

I should be able to rerun a demo install to create any missing objects (eg: if I deleted something like a SparkApplication and want to reapply it).

Currently stackablectl fails because the Jobs are immutable (in my case because I want to upgrade from 24.7 to dev), but I don't want the setup jobs to run again.

Possible solution

I have a few ideas in mind to cater to various behaviours:

  1. Continue applying the remaining resources and display which failed to apply at the end. Let the user then decide if certain Jobs should be rerun by them manually deleting the applicable jobs.
  2. Add labels to certain jobs that are idempotent (safe to be recreated and run again), and jobs that should be ignored (initial setup jobs, eg: for Keycloak).

Additional context

See also #312

Environment

Client Version: v1.31.0
Kustomize Version: v5.4.2
Server Version: v1.31.2

Would you like to work on fixing this bug?

maybe

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions