File tree Expand file tree Collapse file tree 6 files changed +35
-3
lines changed Expand file tree Collapse file tree 6 files changed +35
-3
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ jobs:
140140 enable-cache : ' true'
141141 - name : Prepare bundle
142142 env :
143- OPERATOR_IMAGE : ${{ env.GHCR_BUNDLES_REPO }}
143+ OPERATOR_IMAGE : ${{ env.GHCR_BUNDLES_REPO }}:${{ steps.detect-tests.outputs.image_tag }}
144144 VERSION : ${{ steps.detect-tests.outputs.image_tag }}
145145 run : |
146146 devbox run -- make bundle-dev
Original file line number Diff line number Diff line change @@ -59,3 +59,5 @@ bundle.Dockerfile
5959config /manifests /bases /mongodb-atlas-kubernetes.clusterserviceversion.yaml
6060config /manifests /kustomization.yaml
6161config /manager /kustomization.yaml
62+ config /generated /crd /bases /* .yaml
63+ config /generated /rbac /role.yaml
Original file line number Diff line number Diff line change @@ -727,7 +727,7 @@ update-manager-kustomization:
727727 @cd $(CONFIG_MANAGER ) ; \
728728 touch kustomization.yaml; \
729729 $(KUSTOMIZE ) edit add resource bases/; \
730- $(KUSTOMIZE ) edit set image controller=" $( OPERATOR_IMAGE) : $( VERSION ) " ;
730+ $(KUSTOMIZE ) edit set image controller=" $( OPERATOR_IMAGE) " ;
731731 @echo " Manager image set to $( OPERATOR_IMAGE) "
732732
733733$(ALL_IN_ONE_CONFIG ) : manifests update-manager-kustomization
@@ -811,4 +811,9 @@ clean-bundle:
811811 @rm -f $(CONFIG_RBAC ) /clusterwide/role.yaml
812812 @rm -f $(CONFIG_RBAC ) /namespaced/role.yaml
813813 @rm -f $(BUNDLE_DOCKERFILE )
814- @echo " ✅ Cleanup complete."
814+ @echo " ✅ Cleanup complete."
815+
816+ autogenerated-manifests : manifests update-manager-kustomization
817+ @echo " Creating directory..."
818+ @mkdir -p $(TARGET_DIR ) /generated
819+ @$(KUSTOMIZE ) build --load-restrictor LoadRestrictionsNone config/generated > $(TARGET_DIR ) /generated/allinone.yaml
Original file line number Diff line number Diff line change 1+ apiVersion : kustomize.config.k8s.io/v1beta1
2+ kind : Kustomization
3+ resources :
4+ - bases/crds.yaml
Original file line number Diff line number Diff line change 1+ namespace : mongodb-atlas-system
2+
3+ namePrefix : mongodb-atlas-
4+
5+ # Labels to add to all resources and selectors.
6+ labels :
7+ - pairs :
8+ app.kubernetes.io/component : controller
9+ app.kubernetes.io/name : mongodb-atlas-kubernetes-operator
10+ app.kubernetes.io/instance : mongodb-atlas-kubernetes-operator
11+ app.kubernetes.io/part-of : atlas.generated.mongodb.com
12+ includeSelectors : true
13+
14+ resources :
15+ - crd
16+ - ../crd
17+ - ../manager
18+ - rbac # -> autogenerated RBAC
19+ - ../rbac/clusterwide
Original file line number Diff line number Diff line change 1+ resources :
2+ - role.yaml
You can’t perform that action at this time.
0 commit comments