Daian Cardoso Sganderlla 69e5e88486 Add FluxCD version of the rook-ceph app
Add new manifest files to rook-ceph enabling FluxCD support.

The spec file will generate a .deb file with the sources
needed to install rook-ceph with FluxCD

The FluxCD archive will contain the following:
.
├── charts
│   ├── rook-ceph-0.1.0.tgz
│   ├── rook-ceph-provisioner-0.1.0.tgz
│   └── rook-operator-0.1.0.tgz
├── checksum.md5
└── fluxcd-manifests
    ├── base
    │   ├── helmrepository.yaml
    │   ├── kustomization.yaml
    │   └── namespace.yaml
    ├── kustomization.yaml
    ├── rook-ceph
    │   ├── helmrelease.yaml
    │   ├── kustomization.yaml
    │   ├── rook-ceph-static-overrides.yaml
    │   └── rook-ceph-system-overrides.yaml
    ├── rook-operator
    │   ├── helmrelease.yaml
    │   ├── kustomization.yaml
    │   ├── rook-operator-static-overrides.yaml
    │   └── rook-operator-system-overrides.yaml
    └── rook-ceph-provisioner
        ├── helmrelease.yaml
        ├── kustomization.yaml
        ├── rook-ceph-provisioner-static-overrides.yaml
        └── rook-ceph-provisioner-system-overrides.yaml

Test Plan:
PASS: AIO-SX - rook-ceph app files uploaded
PASS: AIO-SX - application applied using FluxCD
PASS: AIO-SX - application removed using
      system application-remove

Story: 2009138
Task: 45404

Depends-On: https://review.opendev.org/c/starlingx/rook-ceph/+/846438

Signed-off-by: Daian Cardoso Sganderlla <Daian.CardosoSganderlla@windriver.com>
Change-Id: Ieaa5a3da6625437722ea6e72e3b5b8f785bfbdab
2023-03-06 13:39:11 +00:00

27 lines
600 B
Makefile
Executable File

#!/usr/bin/make -f
# export DH_VERBOSE = 1
export APP_NAME=rook-ceph-apps
export PBR_VERSION=1.0.0
export PYBUILD_NAME=k8sapp-rook
export SKIP_PIP_INSTALL=1
export ROOT=debian/tmp
%:
dh $@ --with=python3 --buildsystem=pybuild
override_dh_auto_install:
python3 setup.py install --install-layout=deb --root $(ROOT)
python3 setup.py bdist_wheel \
--universal \
-d $(ROOT)/plugins/$(APP_NAME)
override_dh_python3:
dh_python3 --shebang=/usr/bin/python3
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
# (tbogue) FIXME
PYTHONDIR=$(CURDIR) stestr run || true
endif