mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-14 06:33:10 +01:00
Compare commits
No commits in common. "6d2d3eb925fd1ac6da51e329f849336e8ad9371c" and "c811749c328cc7b795b146377a64d89f68f1eddc" have entirely different histories.
6d2d3eb925
...
c811749c32
@ -15,7 +15,6 @@ RUN go mod download
|
|||||||
COPY ../cmd/manager/main.go cmd/manager/main.go
|
COPY ../cmd/manager/main.go cmd/manager/main.go
|
||||||
COPY ../api/ api/
|
COPY ../api/ api/
|
||||||
COPY ../internal/ internal/
|
COPY ../internal/ internal/
|
||||||
COPY ../pkg/ pkg/
|
|
||||||
|
|
||||||
ENV GOCACHE=/root/.cache/go-build
|
ENV GOCACHE=/root/.cache/go-build
|
||||||
ENV GOMODCACHE=/go/pkg/mod
|
ENV GOMODCACHE=/go/pkg/mod
|
||||||
|
|||||||
@ -24,7 +24,6 @@ ENV GOMODCACHE=/go/pkg/mod
|
|||||||
COPY ../cmd/manager/main.go cmd/manager/main.go
|
COPY ../cmd/manager/main.go cmd/manager/main.go
|
||||||
COPY ../api/ api/
|
COPY ../api/ api/
|
||||||
COPY ../internal/ internal/
|
COPY ../internal/ internal/
|
||||||
COPY ../pkg/ pkg/
|
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
# the GOARCH has not a default value to allow the binary be built according to the host where the command
|
# the GOARCH has not a default value to allow the binary be built according to the host where the command
|
||||||
|
|||||||
@ -28,7 +28,7 @@ import (
|
|||||||
barmanapi "github.com/cloudnative-pg/barman-cloud/pkg/api"
|
barmanapi "github.com/cloudnative-pg/barman-cloud/pkg/api"
|
||||||
"github.com/cloudnative-pg/barman-cloud/pkg/command"
|
"github.com/cloudnative-pg/barman-cloud/pkg/command"
|
||||||
|
|
||||||
apiv1 "github.com/cloudnative-pg/plugin-barman-cloud/api/v1"
|
barmancloudv1 "github.com/cloudnative-pg/plugin-barman-cloud/api/v1"
|
||||||
"github.com/cloudnative-pg/plugin-barman-cloud/internal/cnpgi/metadata"
|
"github.com/cloudnative-pg/plugin-barman-cloud/internal/cnpgi/metadata"
|
||||||
pluginmetadata "github.com/cloudnative-pg/plugin-barman-cloud/pkg/metadata"
|
pluginmetadata "github.com/cloudnative-pg/plugin-barman-cloud/pkg/metadata"
|
||||||
)
|
)
|
||||||
@ -104,7 +104,7 @@ func BuildCertificateFilePath(objectStoreName string) string {
|
|||||||
|
|
||||||
// ContextWithProviderOptions enriches the context with cloud service provider specific options
|
// ContextWithProviderOptions enriches the context with cloud service provider specific options
|
||||||
// based on the ObjectStore resource
|
// based on the ObjectStore resource
|
||||||
func ContextWithProviderOptions(ctx context.Context, objectStore apiv1.ObjectStore) context.Context {
|
func ContextWithProviderOptions(ctx context.Context, objectStore barmancloudv1.ObjectStore) context.Context {
|
||||||
if objectStore.GetAnnotations()[pluginmetadata.UseDefaultAzureCredentialsAnnotationName] ==
|
if objectStore.GetAnnotations()[pluginmetadata.UseDefaultAzureCredentialsAnnotationName] ==
|
||||||
pluginmetadata.UseDefaultAzureCredentialsTrueValue {
|
pluginmetadata.UseDefaultAzureCredentialsTrueValue {
|
||||||
return command.ContextWithDefaultAzureCredentials(ctx, true)
|
return command.ContextWithDefaultAzureCredentials(ctx, true)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user