-
Notifications
You must be signed in to change notification settings - Fork 297
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
FlowSchema has incorrect Subject parameters for 1.30 #2138
Comments
It looks like the schema is correct in |
The issue might be in the cdk8s import code when there are two Objects with the same name (Subject): https://github.com/cdk8s-team/cdk8s-cli/tree/2.x/src/import |
|
Thanks for reporting this. Yeah this is because there is a basename collision between Marking as p1. |
Another possibly non breaking solution is to provide an option to |
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: