-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: lazy configuration of oci auth and signature verification s…
…ecrets (#168) ## Description Previously we were required to configure auth and signature verification secrets before we even add any oci rules. Now we can lazily create the auth and signature verification secrets as we create the rules. ie no need to prep all your pubkeys and creds before you even set up your rule. This PR also does the following: - Refactors readOciPluginRules to follow the same pattern as all the other plugins. - This change addresses an issue with `--reconfigure`ing oci rules. Previously rule updates werent getting properly persisted - ~Refactors integration tests~ - ~It ensures that we actually run the `validator install --apply` tests which should really bump our code coverage up by a lot~ - ~Covers the case of provisioning a new kind cluster or using a pre-provisioned cluster~ - Fixes a bug where `validator install --apply` was no longer working due to the kind cluster not starting up ### ~Context on the integration test refactor~ ~The reason for the big changes in the integration tests were that i had noticed the oci plugin integration tests were passing without me updating any of the prompts when they clearly shouldnt pass. This got me down a rabbit hole of investigating why they were passing and eventually making the necessary changes. While doing this, it uncovered a few other issues. For the sake of not adding even more to this PR, i've marked some `TODOs` around things that need to be fixed. IMO we should fix them in follow ups shortly after this PR is eventually merged.~ ### Out of scope follow up work 1. Add support for oci auth being configured with no secrets. This will allow us to run `validator rules check` on a private oci registry 2. Fix and re-enable maas integration tests 3. Fix the minor UX issues noted for the vsphere plugin values
- Loading branch information
1 parent
0912f6e
commit cc2c056
Showing
6 changed files
with
151 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.