Skip to content

Conversation

danielgafni
Copy link

@danielgafni danielgafni commented Sep 2, 2025

Why are these changes needed?

Related issue number

Closes #4033

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

We use [elastic/crd-ref-docs](https://github.com/elastic/crd-ref-docs) to generate API reference for CRDs of KubeRay. The configuration file of `crd-ref-docs` is located at `hack/config.yaml`. Please refer to the documentation for more details.

Generate API refernece:
Generate API reference:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drive-by

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
Just a friendly reminder that the auto-generated docs and Helm chart might need to be updated as well. You can usually regenerate them by running the commands in https://github.com/ray-project/kuberay/blob/master/ray-operator/DEVELOPMENT.md#consistency-check.

// This field is set when TTLSeconds is specified in the RayClusterSpec.
// +nullable
// +optional
TTLExpirationTime *metav1.Time `json:"ttlExpirationTime,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure we need this, can we just use creationTimestamp + ttlSeconds? Or is the TTL timer start once the RayCluster is ready?

}

ttlSeconds := *instance.Spec.TTLSeconds
creationTime := instance.CreationTimestamp.Time
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should expiration time be from RayCluster creation or RayCluster ready state?

@kevin85421
Copy link
Member

I have some questions about the behavior: https://github.com/ray-project/kuberay/issues/4033#issuecomment-3247488390. We should reach a conclusion before moving forward with this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] add ttlSeconds field to RayClusterSpec
4 participants