Update cdk8s imports - #331
Conversation
The external secrets CRD manifest has been vendored and modified to
remove fields that are preventing import due to JSII inability to handle
fields with name matching 'get[A-Z].*'.
The following fields have been removed:
1. getByTitleFallback, KeeperSecurity provider:
- Optional boolean field
- Controls whether to fall back to searching secrets by title when lookup by UID fails
- Not in required: it's optional
- Impact of removing: You simply can't set this behaviour from cdk8s.
It defaults to false in the controller. Reasonable to omit unless you use KeeperSecurity.
2. getParameters, VaultDynamicSecret generator:
- Optional object (map of string arrays) for query-string parameters on Vault GET calls
- Not in required: optional, and the description says "Ignored for non-GET methods"
- Impact of removing: You can't pass query-string params to Vault GET
calls from cdk8s. For POST/write flows you'd use parameters instead,
which is still present.
50df6a8 to
1954cea
Compare
|
Are all the changes inside the two imports folders down to the |
|
|
I'm trying to understand why there's a lot of seemingly unrelated changes, especially to all the |
Those are all the output of the import process, they are not manual changes. |
|
ok, I see what's happening with all those changes now. Worth splitting out each command execution as a single commit in future and explicitly stating the command line used. The update process needs recording in the documentation here so somebody else can do the update to all the CRDs next time. At the very least for this PR, it needs the how to for where to get the external secrets CRD and do the changes you've identified. If it's easier to automate, a script would also be acceptable. |
You usually just have to update
why? it's in the README
how to update the imports is already in the readme
I forgot to put the URL of the upstream manifest for the external-secrets, that can be remediated.
you can identify the changes by looking at the current manifest and search for commented lines: there's no point in describing in detailed what was commented as it might change in the future and depends on the JSII errors you're getting when running the import command; I can add a comment in |
- explain how to find currently deployed version of controllers - add source URL for external-secrets original manifest - explain what needs to be modified in the manifest and why
|
This all makes sense to me, Michele's additional comments in |
Not used anywhere
|
I've realized the VPA CRD is not used anywhere, so I simply removed it from |
The external secrets CRD manifest has been vendored and modified to
remove fields that are preventing import due to JSII inability to handle
fields with name matching
/get[A-Z].*/The following fields have been removed:
getByTitleFallback,KeeperSecurityprovider:It defaults to false in the controller. Reasonable to omit unless you use
KeeperSecurity.getParameters,VaultDynamicSecretgenerator:calls from cdk8s. For POST/write flows you'd use parameters instead,
which is still present.