Switch from ThirdPartyResources to CustomResourceDefinitions (#381)
Switch Fission's storage over to the new CustomResourceDefinitions, from the deprecated ThirdPartyResources. This allows us to be compatible with Kubernets 1.8 and onwards. This also adds a CLI tool for dumping state from an old fission version and restoring state into new CRDs. The storage service is unaffected by this change.
This commit is contained in:
committed by
Soam Vasani
parent
746c51901d
commit
5f14b9b0ae
+8
-4
@@ -5,12 +5,16 @@ if [ ! -f ${KUBECONFIG} ]
|
||||
then
|
||||
unset KUBECONFIG
|
||||
else
|
||||
K="kubectl --kubeconfig $KUBECONFIG"
|
||||
K="kubectl --kubeconfig $KUBECONFIG --namespace default"
|
||||
if $K get configmap ok-to-destroy
|
||||
then
|
||||
$K get function.fission.io -o name | cut -f2 -d'/' | xargs $K delete function.fission.io
|
||||
$K get environment.fission.io -o name | cut -f2 -d'/' | xargs $K delete environment.fission.io
|
||||
$K get httptrigger.fission.io -o name | cut -f2 -d'/' | xargs $K delete httptrigger.fission.io
|
||||
$K delete functions --all
|
||||
$K delete environments --all
|
||||
$K delete httptriggers --all
|
||||
$K delete kuberneteswatchtriggers --all
|
||||
$K delete messagequeuetriggers --all
|
||||
$K delete packages --all
|
||||
$K delete timetriggers --all
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user