Skip to content

Commit 574eafd

Browse files
tkatilapfl
authored andcommitted
bundle: fix generation and add OpenShift related fixes
Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
1 parent ca9eaf0 commit 574eafd

6 files changed

Lines changed: 72 additions & 6 deletions

File tree

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ IMAGE_TAG_BASE ?= intel/intel-network-operator
3333

3434
# BUNDLE_IMG defines the image:tag used for the bundle.
3535
# You can use it as an arg. (E.g make bundle-build BUNDLE_IMG=<some-registry>/<project-name-bundle>:<tag>)
36-
BUNDLE_IMG ?= $(IMAGE_TAG_BASE)-bundle:v$(VERSION)
36+
BUNDLE_IMG ?= $(IMAGE_TAG_BASE)-bundle:v$(TAG)
3737

3838
# BUNDLE_GEN_FLAGS are the flags passed to the operator-sdk generate bundle command
39-
BUNDLE_GEN_FLAGS ?= -q --overwrite --version $(VERSION) $(BUNDLE_METADATA_OPTS)
39+
BUNDLE_GEN_FLAGS ?= -q --overwrite --version $(TAG) $(BUNDLE_METADATA_OPTS)
4040

4141
# USE_IMAGE_DIGESTS defines if images are resolved via tags or digests
4242
# You can enable this value if you would like to use SHA Based Digests
@@ -342,7 +342,7 @@ endif
342342

343343
.PHONY: bundle
344344
bundle: manifests kustomize operator-sdk ## Generate bundle manifests and metadata, then validate generated files.
345-
$(OPERATOR_SDK) generate kustomize manifests -q
345+
$(OPERATOR_SDK) generate kustomize manifests -q --input-dir config/operator/manifests --output-dir config/operator/manifests
346346
cd config/operator/manager && $(KUSTOMIZE) edit set image controller=$(IMG)
347347
$(KUSTOMIZE) build config/operator/manifests | $(OPERATOR_SDK) generate bundle $(BUNDLE_GEN_FLAGS)
348348
$(OPERATOR_SDK) bundle validate ./bundle

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

Lines changed: 62 additions & 0 deletions
Large diffs are not rendered by default.

config/operator/manifests/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ resources:
44
- bases/network-operator.clusterserviceversion.yaml
55
- ../default
66
- ../samples
7-
- ../scorecard
87

98
# [WEBHOOK] To enable webhooks, uncomment all the sections with [WEBHOOK] prefix.
109
# Do NOT uncomment sections with prefix [CERTMANAGER], as OLM does not support cert-manager.

config/operator/samples/gaudi-l3-metrics.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: intel.com/v1alpha1
22
kind: NetworkClusterPolicy
33
metadata:
4-
name: netconf-gaudi-scale-out-l3
4+
name: netconf-gaudi-scale-out-l3-metrics
55
spec:
66
configurationType: gaudi-so
77
gaudiScaleOut:

config/operator/samples/gaudi-l3-pfc-lldpad-enabled.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: intel.com/v1alpha1
22
kind: NetworkClusterPolicy
33
metadata:
4-
name: netconf-gaudi-scale-out-l3
4+
name: netconf-gaudi-scale-out-l3-pfc-lldpad
55
spec:
66
configurationType: gaudi-so
77
gaudiScaleOut:
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
resources:
2+
- gaudi-l2.yaml
3+
- gaudi-l3-metrics.yaml
4+
- gaudi-l3-pfc-lldpad-enabled.yaml
5+
- gaudi-l3.yaml

0 commit comments

Comments
 (0)