-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow CNF Cert Suite app's go-clients to work in a k8s pod. (#1543)
This change will allow the go-clients to be initialized properly in case the app is running inside a pod in a k8s/OCP cluster. The method rest.InClusterConfig() reads the pod's SA tokens/creentials and returns a rest.Config struct that can be used to initialize all the go-clients. If that method returns an error, it assumes it's running outside a cluster, using the provided filenames to create the rest.Config.
- Loading branch information
Showing
1 changed file
with
72 additions
and
16 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