Open aljoshare opened 2 years ago
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://github.com/aws-controllers-k8s/community.
/lifecycle stale
@RedbackThomson feel like taking a stab at this? I think now that codegen supports nested field configuration options, I think this should be fixable by adding an is_required
to the FieldConfig of Lifecycle.Rules.Status
?
@jaypipes I see that Enabled
is already a required field within LifecycleRule
. I wonder why it's not marked as required by default within the type. If I manually mark this field as required, I would have to mark every other field within all of these other custom configuration fields as well?
@jaypipes I see that
Enabled
is already a required field withinLifecycleRule
. I wonder why it's not marked as required by default within the type. If I manually mark this field as required, I would have to mark every other field within all of these other custom configuration fields as well?
It is indeed.
This must be a bug in the API inference part of the code-generator. I can take a look into it tomorrow.
I think this is very similar to what @embano1 is experiencing in https://github.com/aws-controllers-k8s/community/issues/1645
/remove-lifecycle stale
Potential fix for this: https://github.com/aws-controllers-k8s/code-generator/pull/393
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://github.com/aws-controllers-k8s/community.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://github.com/aws-controllers-k8s/community.
/lifecycle rotten
/remove-lifecycle rotten
Issues go stale after 180d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 60d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://github.com/aws-controllers-k8s/community.
/lifecycle stale
Issues go stale after 180d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 60d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://github.com/aws-controllers-k8s/community.
/lifecycle stale
Describe the bug The documentation says that the status field of the lifecycle rules is optional but in fact it is required. It needs to be set to Enabled or Disabled.
Documentation: https://aws-controllers-k8s.github.io/community/reference/s3/v1alpha1/bucket/
Error message:
Steps to reproduce
Deploy an S3 with a lifecycle configuration and omit the status field, e.g.:
Expected outcome Either the documentation should say that its required or the operator should fill the field with a default value so that truly optional.
Environment