Skip to content

Commit f5760c5

Browse files
committed
Merge branch 'develop' into add_csi_addons
Signed-off-by: matancarmeli7 <[email protected]>
2 parents fa2bcbf + fdbd020 commit f5760c5

File tree

3,314 files changed

+6042
-1200021
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,314 files changed

+6042
-1200021
lines changed

.github/dependabot.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "gomod"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"
12+
rebase-strategy: "disabled"
13+
reviewers:
14+
- "IBM/csi-reviewers"
15+
labels:
16+
- go
17+
- dependencies
18+
- package-ecosystem: "github-actions"
19+
directory: "/"
20+
schedule:
21+
interval: "weekly"
22+
rebase-strategy: "disabled"
23+
reviewers:
24+
- "IBM/csi-reviewers"
25+
labels:
26+
- github_actions
27+
- dependencies
28+

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,18 @@ manifests: controller-gen kustomize## Generate WebhookConfiguration, ClusterRole
3939
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
4040
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
4141

42+
CONTROLLER_TOOLS_VERSION ?= v0.10.0
43+
4244
CONTROLLER_GEN = controller-gen
4345
controller-gen: ## Download controller-gen locally if necessary.
44-
$(call go-get-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/[email protected])
46+
test -s controller-gen || go install sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_TOOLS_VERSION)
47+
48+
KUSTOMIZE_VERSION ?= v5.0.1
49+
KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
4550

4651
KUSTOMIZE = kustomize
4752
kustomize: ## Download kustomize locally if necessary.
48-
$(call go-get-tool,$(KUSTOMIZE),sigs.k8s.io/kustomize/kustomize/[email protected])
53+
test -s /go/bin/kustomize || { curl -Ss $(KUSTOMIZE_INSTALL_SCRIPT) | bash -s -- $(subst v,,$(KUSTOMIZE_VERSION)) /go/bin/; }
4954

5055
PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
5156
define go-get-tool

api/v1/ibmblockcsi_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ type IBMBlockCSISpec struct {
5050
ImagePullSecrets []string `json:"imagePullSecrets,omitempty"`
5151

5252
HealthPort uint16 `json:"healthPort,omitempty"`
53+
54+
// +kubebuilder:validation:Optional
55+
// +kubebuilder:default:=true
56+
EnableCallHome bool `json:"enableCallHome,omitempty"`
5357
}
5458

5559
// seems not work in this way, need to figure out why

api/v1/zz_generated.deepcopy.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/Dockerfile.operator

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.16.14
15+
FROM golang:1.19
1616

1717
WORKDIR /go/src/github.com/IBM/ibm-block-csi-operator/
1818
COPY . .
19+
RUN go mod download
1920
RUN CGO_ENABLED=1 GOOS=linux go build \
2021
-o build/_output/bin/ibm-block-csi-operator \
2122
-gcflags all=-trimpath=${GOPATH} \
2223
-asmflags all=-trimpath=${GOPATH} \
23-
-mod=vendor \
2424
main.go
2525

2626

27-
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.7-1049
27+
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.7-1107
2828
MAINTAINER IBM Storage
2929

3030
ARG VERSION=1.12.0

build/ci/Dockerfile.unittest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.16.14
15+
FROM golang:1.19
1616

1717
ENV GO111MODULE=on \
1818
GOROOT=/usr/local/go \
1919
WORKDIR=/go/src/github.com/IBM/ibm-block-csi-operator
2020
ENV IBMBlockCSI_CR_YAML=$WORKDIR/config/samples/csi.ibm.com_v1_ibmblockcsi_cr.yaml \
2121
HostDefiner_CR_YAML=$WORKDIR/config/samples/csi_v1_hostdefiner_cr.yaml
2222
WORKDIR $WORKDIR
23-
RUN go get github.com/onsi/ginkgo/ginkgo@v1.16.4 \
23+
RUN go install github.com/onsi/ginkgo/v2/ginkgo@v2.9.0 \
2424
&& go install sigs.k8s.io/controller-runtime/tools/[email protected]
2525
COPY Makefile .
2626

config/crd/bases/csi.ibm.com_hostdefiners.yaml

Lines changed: 548 additions & 123 deletions
Large diffs are not rendered by default.

config/crd/bases/csi.ibm.com_hostdefinitions.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.7.0
5+
controller-gen.kubebuilder.io/version: v0.10.0
66
creationTimestamp: null
77
labels:
88
app.kubernetes.io/instance: ibm-block-csi-operator
@@ -40,10 +40,14 @@ spec:
4040
description: HostDefinition is the Schema for the hostdefinitions API
4141
properties:
4242
apiVersion:
43-
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
43+
description: 'APIVersion defines the versioned schema of this representation
44+
of an object. Servers should convert recognized schemas to the latest
45+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
4446
type: string
4547
kind:
46-
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
48+
description: 'Kind is a string value representing the REST resource this
49+
object represents. Servers may infer this from the endpoint the client
50+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
4751
type: string
4852
metadata:
4953
type: object
@@ -83,7 +87,8 @@ spec:
8387
- hostDefinition
8488
type: object
8589
status:
86-
description: HostDefinitionStatus defines the status of the host definition on the storage
90+
description: HostDefinitionStatus defines the status of the host definition
91+
on the storage
8792
properties:
8893
phase:
8994
type: string
@@ -95,9 +100,3 @@ spec:
95100
storage: true
96101
subresources:
97102
status: {}
98-
status:
99-
acceptedNames:
100-
kind: ""
101-
plural: ""
102-
conditions: []
103-
storedVersions: []

0 commit comments

Comments
 (0)