Skip to content

Commit

Permalink
Merge pull request #49 from fnproject/image-comp-cloudshell
Browse files Browse the repository at this point in the history
Add non-root compartment image support to cloud shell and ip
  • Loading branch information
JadeRedworth authored Apr 5, 2022
2 parents d8b70e0 + 03cf416 commit 5c2cbfd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion provider/oracle/cloudshell_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package oracle

import (
"fmt"
"github.com/oracle/oci-go-sdk/v48/functions"
"io/ioutil"
"net/http"
"os"

"github.com/oracle/oci-go-sdk/v48/functions"

"github.com/fnproject/fn_go/provider"
oci "github.com/oracle/oci-go-sdk/v48/common"
"github.com/oracle/oci-go-sdk/v48/common/auth"
Expand Down Expand Up @@ -127,6 +128,7 @@ func NewCSProvider(configSource provider.ConfigSource, passphraseSource provider
Interceptor: interceptor,
DisableCerts: disableCerts,
CompartmentID: compartmentID,
ImageCompartmentID: configSource.GetString(CfgImageCompartmentID),
ConfigurationProvider: configProvider,
ociClient: ociClient,
}, nil
Expand Down
4 changes: 3 additions & 1 deletion provider/oracle/ip_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package oracle

import (
"fmt"
"github.com/oracle/oci-go-sdk/v48/functions"
"io/ioutil"
"net/http"
"net/url"

"github.com/oracle/oci-go-sdk/v48/functions"

"github.com/oracle/oci-go-sdk/v48/common"
"github.com/oracle/oci-go-sdk/v48/common/auth"

Expand Down Expand Up @@ -73,6 +74,7 @@ func NewIPProvider(configSource provider.ConfigSource, passphraseSource provider
Interceptor: nil,
DisableCerts: disableCerts,
CompartmentID: compartmentID,
ImageCompartmentID: configSource.GetString(CfgImageCompartmentID),
ConfigurationProvider: configProvider,
ociClient: ociClient,
}, nil
Expand Down

0 comments on commit 5c2cbfd

Please sign in to comment.