mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-11 22:10:11 +01:00
feat(beta): adding v1 CRD for ZFS-LocalPV
Moving the CRDs to stable v1 version. Signed-off-by: Pawan <pawan@mayadata.io>
This commit is contained in:
parent
307861282a
commit
472fd603ac
28 changed files with 426 additions and 48 deletions
|
|
@ -15,7 +15,7 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
#set -o errexit
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
|
|
@ -28,9 +28,7 @@ then
|
|||
exit 1;
|
||||
fi
|
||||
|
||||
SCRIPT_ROOT=$(unset CDPATH && cd $(dirname "${BASH_SOURCE[0]}")/.. && pwd)
|
||||
|
||||
$CONTROLLER_GEN crd:trivialVersions=true,preserveUnknownFields=false paths=${SCRIPT_ROOT}/pkg/apis/openebs.io/zfs/v1alpha1 output:crd:artifacts:config=deploy/yamls
|
||||
$CONTROLLER_GEN crd:trivialVersions=false,preserveUnknownFields=false paths=./pkg/apis/... output:crd:artifacts:config=deploy/yamls
|
||||
|
||||
## create the the crd yamls
|
||||
|
||||
|
|
@ -74,7 +72,17 @@ echo '# This manifest is autogenerated via `make manifests` command
|
|||
# with associated CRs & RBAC rules.
|
||||
' > deploy/zfs-operator.yaml
|
||||
|
||||
cat deploy/yamls/namespace.yaml deploy/yamls/zfsvolume-crd.yaml deploy/yamls/zfssnapshot-crd.yaml deploy/yamls/zfs-driver.yaml >> deploy/zfs-operator.yaml
|
||||
# Add namespace creation to the Operator yaml
|
||||
cat deploy/yamls/namespace.yaml >> deploy/zfs-operator.yaml
|
||||
|
||||
# Add ZFSVolume v1alpha1 and v1 CRDs to the Operator yaml
|
||||
cat deploy/yamls/zfsvolume-crd.yaml >> deploy/zfs-operator.yaml
|
||||
|
||||
# Add ZFSSnapshot v1alpha1 and v1 CRDs to the Operator yaml
|
||||
cat deploy/yamls/zfssnapshot-crd.yaml >> deploy/zfs-operator.yaml
|
||||
|
||||
# Add the driver deployment to the Operator
|
||||
cat deploy/yamls/zfs-driver.yaml >> deploy/zfs-operator.yaml
|
||||
|
||||
# To use your own boilerplate text use:
|
||||
# --go-header-file ${SCRIPT_ROOT}/hack/custom-boilerplate.go.txt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue