-
Notifications
You must be signed in to change notification settings - Fork 988
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
Support JobBackoffLimitPerIndex feature gate fields #2421
Support JobBackoffLimitPerIndex feature gate fields #2421
Conversation
Thanks a lot for the contribution, @theloneexplorerquest We have a long standing policy of not including features still behind feature gates, because there is no mechanism available on the Kubernetes API for the provider to query whether the feature gate is on or off and it would lead to unexpected errors on clusters that don't have the feature on. As I mentioned, we appreciate the contribution and would love to merge this once the feature becomes universally available. Please feel free to keep the PR up to date going forward. Thanks! |
Hi @alexsomesan , Thanks for the update, I will keep this open and wait until this feature become universally available (and do more testing at that time!). |
@@ -57,6 +57,14 @@ func jobSpecFields(specUpdatable bool) map[string]*schema.Schema { | |||
ValidateFunc: validateNonNegativeInteger, | |||
Description: "Specifies the number of retries before marking this job failed. Defaults to 6", | |||
}, | |||
"backoff_limit_per_index": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there's errors with the PR specifically due to the default value being used. Could you address these failures as well as include a test case for these new fields?
This is now supported with the feature gate being set to true by default. Let me know if there's anything unclear from adding tests.
=== NAME TestAccKubernetesCronJobV1_minimalWithPodFailurePolicy
resource_kubernetes_cron_job_v1_test.go:179: Step 1/2 error: Error running apply: exit status 1
Error: CronJob.batch "tf-acc-test-jk4onc8cdw" is invalid: [spec.jobTemplate.spec.backoffLimitPerIndex: Invalid value: 6: requires indexed completion mode, spec.jobTemplate.spec.maxFailedIndexes: Invalid value: 6: requires indexed completion mode]
with kubernetes_cron_job_v1.test,
on terraform_plugin_test.tf line 1, in resource "kubernetes_cron_job_v1" "test":
1: resource "kubernetes_cron_job_v1" "test" {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any help needed on this @theloneexplorerquest ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a heads-up I'll be wrapping this up to get it merged as this is part of our v2.33.0
milestone @theloneexplorerquest
…orm-provider-kubernetes into Support-JobBackoffLimitPerIndex-feature-gate-fields
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
everything is passing, they weren't prior due to needing to insure that this only runs on tests that have a cluster version of >1.29
Description
resolve #2398
Acceptance tests
Output from acceptance testing:
Release Note
Release note for CHANGELOG:
References
Community Note