Skip to content
This repository was archived by the owner on Jun 23, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
632 changes: 36 additions & 596 deletions Gopkg.lock

Large diffs are not rendered by default.

23 changes: 1 addition & 22 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,3 @@
# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"

ignored = ["k8s.io/client-go/pkg/api/v1"]

# See: https://github.com/golang/dep/issues/1799
Expand Down Expand Up @@ -60,7 +39,7 @@ ignored = ["k8s.io/client-go/pkg/api/v1"]
version = "1.11.1"

[[constraint]]
version = "v1.6.0"
version = "v2.6.0"
name = "github.com/oracle/oci-go-sdk"

[[override]]
Expand Down
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ GO_SRC := $(shell find . -name "*.go")
# Else just equal the build (git hash)
BUILD := $(shell git describe --tags --dirty --always)
ifeq ($(DEV_BUILD), true)
# If DEV_BUILD is set, use the dev format.
VERSION ?= ${BUILD}-${USER}-dev
else
VERSION ?= ${BUILD}
endif

DIR := dist
BIN := oci-volume-provisioner
REGISTRY ?= iad.ocir.io
Expand All @@ -39,6 +39,9 @@ SRC_DIRS := cmd pkg # directories which hold app source (not vendored)
.PHONY: all
all: gofmt golint govet test build

deps:
dep ensure -v

.PHONY: gofmt
gofmt:
@./hack/check-gofmt.sh ${SRC_DIRS}
Expand Down Expand Up @@ -112,10 +115,10 @@ endif
.PHONY: system-test
system-test: system-test-config
docker run -it ${DOCKER_OPTIONS} \
-e KUBECONFIG=$(KUBECONFIG) \
-v $(KUBECONFIG):$(KUBECONFIG) \
-e HTTPS_PROXY=$$HTTPS_PROXY \
${TEST_IMAGE}:${VERSION} ${TEST_IMAGE_ARGS}
-e KUBECONFIG=$(KUBECONFIG) \
-v $(KUBECONFIG):$(KUBECONFIG) \
-e HTTPS_PROXY=$$HTTPS_PROXY \
${TEST_IMAGE}:${VERSION} ${TEST_IMAGE_ARGS}

.PHONY: clean
clean:
Expand Down
6 changes: 3 additions & 3 deletions pkg/provisioner/block/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (block *blockProvisioner) Provision(options controller.VolumeOptions, ad *i
return nil, fmt.Errorf("could not determine volume size for PVC")
}

volSizeMB := int(roundUpSize(capacity.Value(), 1024*1024))
volSizeMB := int64(roundUpSize(capacity.Value(), 1024*1024))

logger := block.logger.With(
"availabilityDomain", *ad.Name,
Expand All @@ -167,7 +167,7 @@ func (block *blockProvisioner) Provision(options controller.VolumeOptions, ad *i

if volumeRoundingEnabled(options.Parameters) {
if block.volumeRoundingEnabled && block.minVolumeSize.Cmp(capacity) == 1 {
volSizeMB = int(roundUpSize(block.minVolumeSize.Value(), 1024*1024))
volSizeMB = int64(roundUpSize(block.minVolumeSize.Value(), 1024*1024))
logger.With("roundedVolumeSize", volSizeMB).Warn("Attempted to provision volume with a capacity less than the minimum. Rounding up to ensure volume creation.")
capacity = block.minVolumeSize
}
Expand All @@ -177,7 +177,7 @@ func (block *blockProvisioner) Provision(options controller.VolumeOptions, ad *i
AvailabilityDomain: ad.Name,
CompartmentId: common.String(block.client.CompartmentOCID()),
DisplayName: common.String(fmt.Sprintf("%s%s", provisioner.GetPrefix(), options.PVC.Name)),
SizeInMBs: common.Int(volSizeMB),
SizeInMBs: common.Int64(volSizeMB),
}

if value, ok := options.PVC.Annotations[OCIVolumeBackupID]; ok {
Expand Down
128 changes: 128 additions & 0 deletions vendor/github.com/oracle/oci-go-sdk/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/oracle/oci-go-sdk/Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions vendor/github.com/oracle/oci-go-sdk/audit/audit_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions vendor/github.com/oracle/oci-go-sdk/audit/audit_event.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions vendor/github.com/oracle/oci-go-sdk/common/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 2 additions & 22 deletions vendor/github.com/oracle/oci-go-sdk/common/client_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions vendor/github.com/oracle/oci-go-sdk/common/common.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading