SealedSecret resources from kubeseal do not conform with the openapi schema in the CRD #1320
Labels
backlog
Issues/PRs that will be included in the project roadmap
bug
help wanted
Feature requests approved by maintainers that are not included in the project roadmap
Which component:
kubeseal version: v0.23.1
Describe the bug
SealedSecrets from kubeseal contains the field
.spec.template.metadata.creationTimestamp: null
, which is not accepted by the CRD schema when tested withkubeconform
(https://github.com/yannh/kubeconform).To Reproduce
Steps to reproduce the behavior:
Convert the CRD OpenAPI file to a JSON schema in a local file, as described here:
Create a sample sealed secret:
Run the
kubeconform
, checking the schemaIn output above you find: ... properties/spec/properties/template/properties/metadata/additionalProperties: additionalProperties 'creationTimestamp' not allowed
Expected behavior
CRD OpenAPI schema should accept SealedSecrets created by kubeseal. With previous versions of SealedSecrets, kubeconform did not complain about the resource being invalid.
Additional context
I'd guess it's this change that's the root cause: ebefedf#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52R58
Currently we workaround this problem by adding
-skip SealedSecret
to kubeconform.The text was updated successfully, but these errors were encountered: