-
Notifications
You must be signed in to change notification settings - Fork 95
Description
When trying to use OKE Workload configuration provider inside an OKE cluster, I get this error:
can not create resource principal, environment variable: OCI_RESOURCE_PRINCIPAL_VERSION, not present
This is due to the code in common/auth/resource_principal_key_provider.go, line 100-ish:
if version, ok = os.LookupEnv(ResourcePrincipalVersionEnvVar); !ok { err := fmt.Errorf("can not create resource principal, environment variable: %s, not present", ResourcePrincipalVersionEnvVar) return nil, resourcePrincipalError{err: err} }
Neither the java nor the python SDKs look for this envrionment setting. Why does the go driver? I don't see any way this will work, short of me setting that environment variable manually to something like "2.2"?
I've followed all the docs to get the OKE cluster set up and the docs for go located at https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contenggrantingworkloadaccesstoresources.htm#contengmanagingworkloads_topic-grantingworkloadaccesstoresources-golang ... but I still get this error.
I'm using oci-go-sdk as:
require github.com/oracle/oci-go-sdk/v65 v65.61.2