mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-15 05:47:23 +00:00
* Feat: add alias field and fix some code bug * Fix: fix alias check rule bug * Fix: fix addon e2e test bug Co-authored-by: barnettZQG <yiyun.pro>
48 lines
1.7 KiB
Go
48 lines
1.7 KiB
Go
/*
|
|
Copyright 2021 The KubeVela Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
package bcode
|
|
|
|
var (
|
|
|
|
// ErrAddonNotExist addon not exist
|
|
ErrAddonNotExist = NewBcode(404, 50001, "addon not exist")
|
|
|
|
// ErrAddonRegistryExist addon is exist
|
|
ErrAddonRegistryExist = NewBcode(400, 50002, "addon name already exists")
|
|
|
|
// ErrAddonRenderFail fail to render addon application
|
|
ErrAddonRenderFail = NewBcode(500, 50010, "addon render fail")
|
|
|
|
// ErrAddonApplyFail fail to apply application to cluster
|
|
ErrAddonApplyFail = NewBcode(500, 50011, "fail to apply addon application")
|
|
|
|
// ErrGetClientFail fail to get k8s client
|
|
ErrGetClientFail = NewBcode(500, 50012, "fail to initialize kubernetes client")
|
|
|
|
// ErrGetApplicationFail fail to get addon application
|
|
ErrGetApplicationFail = NewBcode(500, 50013, "fail to get addon application")
|
|
|
|
// ErrGetConfigMapAddonFail fail to get addon info in configmap
|
|
ErrGetConfigMapAddonFail = NewBcode(500, 50014, "fail to get addon information in ConfigMap")
|
|
|
|
// ErrAddonDisableFail fail to disable addon
|
|
ErrAddonDisableFail = NewBcode(500, 50016, "fail to disable addon")
|
|
|
|
// ErrAddonNotEnabled means addon can't be disable because it's not enabled
|
|
ErrAddonNotEnabled = NewBcode(400, 50017, "addon not enabled")
|
|
)
|