Files
open-cluster-management/hack/verify-crds.sh
Jian Zhu dcf93fa3b9 support deploy klusterlet outside of managed cluster (#172)
* support deploy klusterlet outside of managed cluster

Signed-off-by: zhujian <jiazhu@redhat.com>

* create manged cluster kubeconfig by sa syncer

Signed-off-by: zhujian <jiazhu@redhat.com>

* fix CI issues

Signed-off-by: zhujian <jiazhu@redhat.com>

* add unit test

Signed-off-by: zhujian <jiazhu@redhat.com>

* separate the manifests and operations for klusterlet operator

Signed-off-by: zhujian <jiazhu@redhat.com>

* add unit test

Signed-off-by: zhujian <jiazhu@redhat.com>

* add integration test

Signed-off-by: zhujian <jiazhu@redhat.com>

* add e2e test

Signed-off-by: zhujian <jiazhu@redhat.com>

* address code review comments

Signed-off-by: zhujian <jiazhu@redhat.com>

* distinguish the RBAC resource names of managed cluster and management cluster

Signed-off-by: zhujian <jiazhu@redhat.com>

* ensure the klusterlet namespace early

Signed-off-by: zhujian <jiazhu@redhat.com>

* update csv

Signed-off-by: zhujian <jiazhu@redhat.com>
2022-01-04 08:24:14 +01:00

18 lines
642 B
Bash
Executable File

#!/bin/bash
source "$(dirname "${BASH_SOURCE}")/init.sh"
for f in $HUB_CRD_FILES
do
diff -N $f ./manifests/cluster-manager/$(basename $f) || ( echo 'crd content is incorrect' && false )
done
for f in $SPOKE_CRD_FILES
do
diff -N $f ./manifests/klusterlet/managed/$(basename $f) || ( echo 'crd content is incorrect' && false )
done
diff -N $CLUSTER_MANAGER_CRD_FILE ./deploy/cluster-manager/config/crds/$(basename $CLUSTER_MANAGER_CRD_FILE) || ( echo 'crd content is incorrect' && false )
diff -N $KLUSTERLET_CRD_FILE ./deploy/klusterlet/config/crds/$(basename $KLUSTERLET_CRD_FILE) || ( echo 'crd content is incorrect' && false )