ceph csi: include required templates in image
Include the mandatory template files in the rook ceph image so that the user-driven configuration for CSI and flex do not need to differ in this aspect. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
1 parent
7ee207b0fb
commit
f6c15bfb5a
3 files changed
+2
-10
No files matched your search
@@ -34,10 +34,6 @@ spec:
|
||||
name: rook-config
|
||||
- mountPath: /etc/ceph
|
||||
name: default-config-dir
|
||||
- mountPath: /etc/ceph-csi/rbd
|
||||
name: csi-rbd-config
|
||||
- mountPath: /etc/ceph-csi/cephfs
|
||||
name: csi-cephfs-config
|
||||
env:
|
||||
- name: ROOK_CURRENT_NAMESPACE_ONLY
|
||||
value: "true"
|
||||
@@ -78,9 +74,3 @@ spec:
|
||||
emptyDir: {}
|
||||
- name: default-config-dir
|
||||
emptyDir: {}
|
||||
- name: csi-rbd-config
|
||||
configMap:
|
||||
name: csi-rbd-config
|
||||
- name: csi-cephfs-config
|
||||
configMap:
|
||||
name: csi-cephfs-config
|
||||
@@ -23,6 +23,7 @@ RUN curl --fail -sSL -o /tini https://github.com/krallin/tini/releases/download/
|
||||
chmod +x /tini
|
||||
|
||||
COPY rook rookflex toolbox.sh /usr/local/bin/
|
||||
COPY ceph-csi /etc/ceph-csi
|
||||
|
||||
ENTRYPOINT ["/tini", "--", "/usr/local/bin/rook"]
|
||||
CMD [""]
|
||||
@@ -33,6 +33,7 @@ do.build:
|
||||
@cp toolbox.sh $(TEMP)
|
||||
@cp $(OUTPUT_DIR)/bin/linux_$(GOARCH)/rook $(TEMP)
|
||||
@cp $(OUTPUT_DIR)/bin/linux_$(GOARCH)/rookflex $(TEMP)
|
||||
@cp -r ../../cluster/examples/kubernetes/ceph/csi/template $(TEMP)/ceph-csi
|
||||
@cd $(TEMP) && $(SED_CMD) 's|BASEIMAGE|$(BASEIMAGE)|g' Dockerfile
|
||||
@$(DOCKERCMD) build $(BUILD_ARGS) \
|
||||
--build-arg ARCH=$(GOARCH) \
|
||||
|
||||
Reference in new issue
Block a user