forked from openservicemesh/osm
-
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.
certificate: consolidate provider related config and helpers
Moves code related to bootstrapping the certificate manager/provider into to `pkg/certificate/providers`. This code will be reused across osm-controller and the sidecar injector app. The sidecar injector component will be moved out of osm-controller as a part of openservicemesh#1939, and this change is required to reuse code across the two apps. The change does the following: - Moves certificate provider related code that needs to be reused into `pkg/certificate/providers`. - Creates structs for the different cert provider options and validation methods for those options. - A `Config` struct to leverage to retrieve CA bundle secret information (currently used by tests). Thi will be leveraged by the osm-injector component to retrieve the CA bundle secret created by osm-controller. - Refactors existing cert provider initialization code for code reusability. - Makes `--ca-bundle-secret-name` mandatory. The Helm charts always pass this option and this is required for issue openservicemesh#1939. Signed-off-by: Shashank Ram <shashr2204@gmail.com>
- Loading branch information
1 parent
13e95e3
commit a31a1db
Showing
10 changed files
with
507 additions
and
279 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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.