FlowSchema has incorrect Subject parameters for 1.30 #2138
Labels
bug
Something isn't working
@component/cdk8s-cli
Issue related to cdk8s-cli
effort/large
1+ weeks
priority/p1
Should be on near term plans
Description of the bug:
When creating a FlowSchema in cdk8s with the 1.30 imports it does not have the correct parameters for the
Subject
object under.spec.rules.subjects
. It looks like it is reusing the RBAC Subjects field which does not have the same fields.There should be a
serviceAccount
anduser
field. Instead it hasname
andnamespace
at the top level, which is not inkubectl explain flowschema.spec.rules.subjects
. Usingname
andnamespace
as specified in the typescript schema does not apply to a 1.30.0 cluster.Reproduction Steps:
Start a new cdk8s project.
Make a FlowSchema with at least one
.spec.rules.subjects
.Attempt to apply the result to a 1.30 cluster.
Error Log:
Environment:
Other:
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: