@@ -312,7 +312,6 @@ bundle-base: manifests kustomize operator-sdk ## Generate bundle manifests and m
312
312
cd config/manifests/base && $(KUSTOMIZE ) edit set image controller=$(IMG ) && $(KUSTOMIZE ) edit set image kube-rbac-proxy=$(RBAC_PROXY_IMAGE )
313
313
cd config/optional/console-plugin && $(KUSTOMIZE ) edit set image console-plugin=${CONSOLE_PLUGIN_IMAGE}
314
314
$(KUSTOMIZE ) build config/manifests/base | $(OPERATOR_SDK ) generate --verbose bundle -q --overwrite --version $(VERSION ) $(BUNDLE_METADATA_OPTS )
315
- $(MAKE ) add-metadata-dependency
316
315
$(MAKE ) bundle-validate
317
316
318
317
export CSV ="./bundle/manifests/$(OPERATOR_NAME ) .clusterserviceversion.yaml"
@@ -345,10 +344,6 @@ add-replaces-field: ## Add replaces field to the CSV
345
344
add-community-edition-to-display-name : # # Add the "Community Edition" suffix to the display name
346
345
sed -r -i " s|displayName: Node Health Check Operator|displayName: Node Health Check Operator - Community Edition|;" ${CSV}
347
346
348
- .PHONY : add-metadata-dependency
349
- add-metadata-dependency : # # Add metadata/dependency.yaml to the bundle
350
- cp config/metadata/dependencies.yaml bundle/metadata/
351
-
352
347
.PHONY : bundle-okd
353
348
bundle-okd : ocp-version-check yq bundle-base # # Generate bundle manifests and metadata for OKD, then validate generated files.
354
349
$(KUSTOMIZE ) build config/manifests/okd | $(OPERATOR_SDK ) generate --verbose bundle -q --overwrite --version $(VERSION ) $(BUNDLE_METADATA_OPTS )
@@ -368,7 +363,6 @@ bundle-ocp: yq bundle-base ## Generate bundle manifests and metadata for OCP, th
368
363
# https://osbs.readthedocs.io/en/osbs_ocp3/users.html?#pinning-pullspecs-for-related-images
369
364
$(YQ ) -i ' ( .spec.install.spec.deployments[0].spec.template.spec.containers[] | select(.name == "manager") | .env) += [{"name": "RELATED_IMAGE_MUST_GATHER", "value": "${MUST_GATHER_IMAGE}"}]' ${CSV}
370
365
$(MAKE ) add-console-plugin-annotation
371
- $(MAKE ) add-metadata-dependency
372
366
# add OCP annotations
373
367
$(YQ ) -i ' .metadata.annotations."operators.openshift.io/valid-subscription" = "[\"OpenShift Kubernetes Engine\", \"OpenShift Container Platform\", \"OpenShift Platform Plus\"]"' ${CSV}
374
368
# new infrastructure annotations see https://docs.engineering.redhat.com/display/CFC/Best_Practices#Best_Practices-(New)RequiredInfrastructureAnnotations
@@ -392,14 +386,6 @@ bundle-ocp-ci: yq ## Generate OCP bundle for CI, without overriding the image pu
392
386
bundle-k8s : bundle-base # # Generate bundle manifests and metadata for K8s community, then validate generated files.
393
387
$(KUSTOMIZE ) build config/manifests/k8s | $(OPERATOR_SDK ) generate --verbose bundle -q --overwrite --version $(VERSION ) $(BUNDLE_METADATA_OPTS )
394
388
395
- sed -r -i "/displayName: Node Health Check Operator/ i\ " ${CSV}
396
- sed -r -i "/displayName: Node Health Check Operator/ i\ # ## Notes" ${CSV}
397
- sed -r -i "/displayName: Node Health Check Operator/ i\ In case Pod Security Admission is used, please allow Pods to run" ${CSV}
398
- sed -r -i "/displayName: Node Health Check Operator/ i\ in the \"privileged\" Pod Security Standard policy." ${CSV}
399
- sed -r -i "/displayName: Node Health Check Operator/ i\ This is required by the dependent Self Node Remediation operator" ${CSV}
400
- sed -r -i "/displayName: Node Health Check Operator/ i\ for rebooting unhealthy nodes, and can be done by labeling the" ${CSV}
401
- sed -r -i "/displayName: Node Health Check Operator/ i\ the target namespace accordingly before installing NHC." ${CSV}
402
- sed -r -i "/displayName: Node Health Check Operator/ i\ For details see https://kubernetes.io/docs/concepts/security/pod-security-admission/ ." ${CSV}
403
389
$(MAKE) add-community-edition-to-display-name
404
390
$(MAKE) bundle-validate
405
391
0 commit comments