mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-15 13:57:40 +00:00
* Feat: rewrite Addon API to support new format fix test fix fix add registry query parameter skip enable test add Definition meta fix fix ext add cue rendering return component name update swagger.json refactor addon cue/yaml tmpl to addonElementFile apply app in enable fix cue parse comment swagger enable test update fix bug fix cue render fix apply fail, decode object fix disable addon, todo: fix status api * avoid to render a whole addon when check status * fix * fix * add label * remove todo * fluxcd * fix args * add all path to addon component name * reorder test * add addon application prefix * add * add ns when test * fix Co-authored-by: qiaozp <chivalry.pp@gmail.com>
41 lines
1.4 KiB
Go
41 lines
1.4 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")
|
|
|
|
// ErrGetApplicationFail fail to get addon application
|
|
ErrGetApplicationFail = NewBcode(500, 50013, "fail to get addon application")
|
|
|
|
// 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")
|
|
)
|