Skip to content

Commit

Permalink
chore: cleanup kustomize config
Browse files Browse the repository at this point in the history
- suspend too many WARNING lines from "make bundle"
- remove sample config for components and monitoring

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
  • Loading branch information
zdtsw committed Jan 14, 2025
1 parent 8865ea6 commit 5e2c750
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 89 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,12 @@ $(CRD_REF_DOCS): $(LOCALBIN)
)

BUNDLE_DIR ?= "bundle"
WARNINGMSG = "provided API should have an example annotation"
.PHONY: bundle
bundle: prepare operator-sdk ## Generate bundle manifests and metadata, then validate generated files.
$(OPERATOR_SDK) generate kustomize manifests -q
$(KUSTOMIZE) build config/manifests | $(OPERATOR_SDK) generate bundle $(BUNDLE_GEN_FLAGS)
$(OPERATOR_SDK) bundle validate ./$(BUNDLE_DIR)
$(KUSTOMIZE) build config/manifests | $(OPERATOR_SDK) generate bundle $(BUNDLE_GEN_FLAGS) 2>&1 | grep -v $(WARNINGMSG)
$(OPERATOR_SDK) bundle validate ./$(BUNDLE_DIR) 2>&1 | grep -v $(WARNINGMSG)
mv bundle.Dockerfile Dockerfiles/
rm -f bundle/manifests/opendatahub-operator-webhook-service_v1_service.yaml

Expand Down
6 changes: 0 additions & 6 deletions config/samples/components_v1_codeflare.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions config/samples/components_v1_dashboard.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions config/samples/components_v1_datasciencepipelines.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions config/samples/components_v1_kserve.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions config/samples/components_v1_kueue.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions config/samples/components_v1_modelmeshserving.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions config/samples/components_v1_modelregistry.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions config/samples/components_v1_ray.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions config/samples/components_v1_trainingoperator.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions config/samples/components_v1_trustyai.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions config/samples/components_v1_workbenches.yaml

This file was deleted.

16 changes: 1 addition & 15 deletions config/samples/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,4 @@ kind: Kustomization
resources:
- datasciencecluster_v1_datasciencecluster.yaml
- dscinitialization_v1_dscinitialization.yaml
#- components_v1_dashboard.yaml
#- components_v1_workbenches.yaml
#- components_v1_modelmeshserving.yaml
#- components_v1_datasciencepipelines.yaml
#- components_v1_kserve.yaml
#- components_v1_kueue.yaml
#- components_v1_codeflare.yaml
#- components_v1_ray.yaml
#- components_v1_trustyai.yaml
#- components_v1_modelregistry.yaml
#- components_v1_trainingoperator.yaml
#- services_v1_dscmonitoring.yaml
- services_v1_monitoring.yaml
- services_v1alpha1_auth.yaml
#+kubebuilder:scaffold:manifestskustomizesamples
- services_v1alpha1_auth.yaml
6 changes: 0 additions & 6 deletions config/samples/services_v1_monitoring.yaml

This file was deleted.

0 comments on commit 5e2c750

Please sign in to comment.