Skip to content

[kuberay] RayJob CRD is missing support for deletion policies based on job status #34795

Open
@cmontemuino

Description

@cmontemuino

Name and Version

bitnami/kuberay 1.4.18

What is the problem this feature will solve?

RayJob CRD is outdated:
https://github.com/bitnami/charts/blob/7bc8596d62919e525934e5847e5106713543e155/bitnami/kuberay/crds/ray.io_rayjobs.yaml#L63-L68

Changes from the upstream's ray-project/kuberay#3731 needs to be applied.

              deletionStrategy:
                 properties:
                   onFailure:
                     properties:
                       policy:
                         type: string
                         x-kubernetes-validations:
                         - message: the policy field value must be either 'DeleteCluster',
                             'DeleteWorkers', 'DeleteSelf', or 'DeleteNone'
                           rule: self in ['DeleteCluster', 'DeleteWorkers', 'DeleteSelf',
                             'DeleteNone']
                     required:
                     - policy
                     type: object
                   onSuccess:
                     properties:
                       policy:
                         type: string
                         x-kubernetes-validations:
                         - message: the policy field value must be either 'DeleteCluster',
                             'DeleteWorkers', 'DeleteSelf', or 'DeleteNone'
                           rule: self in ['DeleteCluster', 'DeleteWorkers', 'DeleteSelf',
                             'DeleteNone']
                     required:
                     - policy
                     type: object
                 required:
                 - onFailure
                 - onSuccess
                 type: object

What is the feature you are proposing to solve the problem?

Update the CRD

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions