Skip to content

Commit aa5a40c

Browse files
committed
1 parent 6664113 commit aa5a40c

11 files changed

+1267
-1671
lines changed

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,8 @@ operator-sdk:
270270
bundle: manifests kustomize operator-sdk yq ## Generate bundle manifests and metadata, then validate generated files.
271271
$(OPERATOR_SDK) generate kustomize manifests -q
272272
cd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG)
273-
$(KUSTOMIZE) build config/manifests | $(OPERATOR_SDK) generate bundle -q --overwrite --version $(VERSION) $(BUNDLE_METADATA_OPTS)
274-
# Removes placeholder velero deployment used so `$(OPERATOR_SDK) generate bundle` adds velero service account and role to bundle CSV using yq. See https://github.com/mikefarah/yq/#install
275-
$(YQ) eval 'del(.spec.install.spec.deployments.1)' bundle/manifests/oadp-operator.clusterserviceversion.yaml > bundle/manifests/oadp-operator.clusterserviceversion.yaml.yqresult
276-
mv bundle/manifests/oadp-operator.clusterserviceversion.yaml.yqresult bundle/manifests/oadp-operator.clusterserviceversion.yaml
273+
$(KUSTOMIZE) build config/manifests | $(OPERATOR_SDK) generate bundle -q --extra-service-accounts "velero" --overwrite --version $(VERSION) $(BUNDLE_METADATA_OPTS)
274+
@make nullable-crds-bundle nullable-crds-config # patch nullables in CRDs
277275
# Copy updated bundle.Dockerfile to CI's Dockerfile.bundle
278276
# TODO: update CI to use generated one
279277
cp bundle.Dockerfile build/Dockerfile.bundle

build/Dockerfile.bundle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
77
LABEL operators.operatorframework.io.bundle.package.v1=oadp-operator
88
LABEL operators.operatorframework.io.bundle.channels.v1=stable-1.0
99
LABEL operators.operatorframework.io.bundle.channel.default.v1=stable-1.0
10-
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.21.0
10+
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.23.0
1111
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
1212
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3
1313

bundle.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
77
LABEL operators.operatorframework.io.bundle.package.v1=oadp-operator
88
LABEL operators.operatorframework.io.bundle.channels.v1=stable-1.0
99
LABEL operators.operatorframework.io.bundle.channel.default.v1=stable-1.0
10-
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.21.0
10+
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.23.0
1111
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
1212
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3
1313

bundle/manifests/oadp-operator.clusterserviceversion.yaml

Lines changed: 449 additions & 435 deletions
Large diffs are not rendered by default.

bundle/manifests/oadp.openshift.io_dataprotectionapplications.yaml

Lines changed: 406 additions & 552 deletions
Large diffs are not rendered by default.

bundle/metadata/annotations.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ annotations:
66
operators.operatorframework.io.bundle.package.v1: oadp-operator
77
operators.operatorframework.io.bundle.channels.v1: stable-1.0
88
operators.operatorframework.io.bundle.channel.default.v1: stable-1.0
9-
operators.operatorframework.io.metrics.builder: operator-sdk-v1.21.0
9+
operators.operatorframework.io.metrics.builder: operator-sdk-v1.23.0
1010
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
1111
operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v3
1212

config/crd/bases/oadp.openshift.io_dataprotectionapplications.yaml

Lines changed: 406 additions & 554 deletions
Large diffs are not rendered by default.

config/manager/manager.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ spec:
3737
valueFrom:
3838
fieldRef:
3939
fieldPath: metadata.namespace
40-
value: quay.io/konveyor/registry:latest
4140
- name: RELATED_IMAGE_VELERO
4241
value: quay.io/konveyor/velero:oadp-1.0
4342
- name: RELATED_IMAGE_VELERO_RESTIC_RESTORE_HELPER

config/manifests/bases/oadp-operator.clusterserviceversion.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ metadata:
2323
operatorframework.io/arch.arm64: supported
2424
operatorframework.io/arch.ppc64le: supported
2525
operatorframework.io/arch.s390x: supported
26-
name: oadp-operator.v99.0.0
26+
name: oadp-operator.v1.0.5
2727
namespace: openshift-adp
2828
spec:
2929
apiservicedefinitions: {}

config/velero/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ resources:
33
- velero-service_account.yaml
44
- velero-role.yaml
55
- velero-role_binding.yaml
6-
- velero.yaml
76
- dpa_editor_role.yaml
87
- dpa_viewer_role.yaml

0 commit comments

Comments
 (0)