This method allows to retrieve automatically the authorization endpoint from the api compatible with OCP 3.x and OCP 4.x
Builds the rest client based on provided or default kubernetes configuration.
(object?
= {}
)
settings object for the openshiftClient function
Name | Description |
---|---|
settings.loadSpecFromCluster boolean?
|
load the api spec from a remote cluster. Defaults to false |
settings.config (object | string)?
|
custom config object(KubeConfig or object). String value will assume a config file location. |
settings.config.url string?
|
Openshift cluster url |
settings.config.auth object?
|
- |
settings.config.auth.token string?
|
auth token used to authenticate to the Openshift Cluster |
settings.config.auth.username string?
|
username to authenticate to Openshift |
settings.config.auth.password string?
|
password to authenticate to Openshift |
settings.config.insecureSkipTlsVerify boolean?
|
flag to ignore TLS verification |
Promise
:
Returns the Rest Client