Skip to content

CustomProfileConfigProvider is caching file config, no way to invalidate the cache #560

@dariusbakunas

Description

@dariusbakunas

I was working on a client app that uses OCI sdk, which is using external oci cli binary to create new sessions. Problem is, on the first load it caches the oci configuration file in global cache (https://github.com/oracle/oci-go-sdk/blob/master/common/configuration.go#L430) so any new profiles that are created using oci cli are no longer visible to my client after configuration is loaded. It persists even if I call common.CustomProfileConfigProvider("", ociProfileName) multiple times.

So I am not sure if I am missing something or maybe there is a way to invalidate this cache? which currently is internal https://github.com/oracle/oci-go-sdk/blob/master/common/configuration.go#L54

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions