Compare commits

...

1670 Commits

Author SHA1 Message Date
KubeSphere CI Bot
066dfe7066 Merge pull request #3674 from junotx/ca
fix case-insensitive keyword query and consistent state for alerting
2021-04-02 11:07:10 +08:00
KubeSphere CI Bot
524f98c50f Merge pull request #3662 from RolandMa1986/fix-fedgroup
fix:group was updated continuously in member cluster
2021-04-02 11:06:53 +08:00
junotx
935df8622a make func more readable for alerting
Signed-off-by: junotx <junotxiang@yunify.com>
2021-04-02 10:53:44 +08:00
junotx
66c0e0dad1 fix consistent state for alerting rule
Signed-off-by: junotx <junotxiang@yunify.com>
2021-04-02 10:53:05 +08:00
junotx
68b0b8f4ba fix case-insensitive keyword query for alerting
Signed-off-by: junotx <junotxiang@yunify.com>
2021-04-02 10:51:14 +08:00
KubeSphere CI Bot
0c40dd854d Merge pull request #3627 from wansir/fix-3598
decoupling with Jenkins and LDAP
2021-04-02 10:14:53 +08:00
KubeSphere CI Bot
e0cecf9fa4 Merge pull request #3663 from yuswift/update_verify-goimports.sh
ignore pkg/apis dir when running make goimports
2021-04-02 10:09:10 +08:00
KubeSphere CI Bot
6973f7895c Merge pull request #3667 from wansir/fix-3652
Fix workspace controller manager
2021-04-01 19:04:52 +08:00
KubeSphere CI Bot
364c806ddd Merge pull request #3659 from RolandMa1986/fix-3620
Renew kubeconfig certificate
2021-04-01 17:45:52 +08:00
hongming
f23771b3eb Fix owner reference conflict
Signed-off-by: hongming <talonwan@yunify.com>
2021-04-01 12:09:38 +08:00
Roland.Ma
8e1aa7848d refine comments
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2021-04-01 03:15:14 +00:00
hongming
3e8597cf76 decoupling Jenkins and LDAP
Signed-off-by: hongming <talonwan@yunify.com>
2021-04-01 11:10:02 +08:00
KubeSphere CI Bot
cae0c6c37e Merge pull request #3654 from wansir/fix-3652
Fix owner reference conflict
2021-04-01 11:02:53 +08:00
yuswift
9bc6e6eedb ignore pkg/apis dir when running make goimports
Signed-off-by: yuswift <yuswiftli@yunify.com>
2021-04-01 10:29:30 +08:00
hongming
b7f0ce44f2 Fix owner reference conflict
Signed-off-by: hongming <talonwan@yunify.com>
2021-04-01 09:59:15 +08:00
Roland.Ma
60f1f5240b fix:group was updated continuously in member cluster
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2021-03-31 14:16:27 +00:00
KubeSphere CI Bot
a7cbc6f878 Merge pull request #3651 from xyz-li/app-fix
Fix: fix app repo and helm app bugs
2021-03-31 20:29:52 +08:00
KubeSphere CI Bot
20106d9f92 Merge pull request #3658 from yuswift/upgrade_kubefed
upgrade kubefed to v0.7.0
2021-03-31 19:49:52 +08:00
Roland.Ma
23b6ca3806 renew kubeconfig certificate
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2021-03-31 10:13:37 +00:00
yuswift
b34c9fb9f5 upgrade kubefed to v0.7.0
Signed-off-by: yuswift <yuswiftli@yunify.com>
2021-03-31 18:12:10 +08:00
LiHui
610393bb57 Fix: show app icon
Signed-off-by: LiHui <andrewli@yunify.com>
2021-03-31 15:00:37 +08:00
LiHui
61a990c75e Fix: update repo
Signed-off-by: LiHui <andrewli@yunify.com>
2021-03-31 15:00:37 +08:00
LiHui
2ae3823a5e Fix: show app name in review list
Signed-off-by: LiHui <andrewli@yunify.com>
2021-03-31 15:00:30 +08:00
KubeSphere CI Bot
6cdbf33635 Merge pull request #3526 from zhu733756/add-pod-level-metrics
Add pod level metrics for edge node
2021-03-31 14:43:48 +08:00
zhu733756
96d60da98e add pod level metrics for edge node
Signed-off-by: zhu733756 <talonzhu@yunify.com>
2021-03-31 11:54:33 +08:00
LiHui
9e235ce0df Fix: update application status when it has changed
Signed-off-by: LiHui <andrewli@yunify.com>
2021-03-31 11:48:58 +08:00
KubeSphere CI Bot
ea93f3832d Merge pull request #3638 from LinuxSuRen/bitbucket-org-key
Add Bitbucket organization field "key"
2021-03-30 16:53:09 +08:00
KubeSphere CI Bot
2dfa248952 Merge pull request #3441 from yunkunrao/master
Update metering csv export format and intergrate metering module.
2021-03-30 16:52:35 +08:00
Rao Yunkun
d08e402384 Integate metering module and support metering data csv format export.
Signed-off-by: Rao Yunkun <yunkunrao@yunify.com>
2021-03-30 15:46:16 +08:00
rick
2ecaff3b6e Add Bitbucket organization field "key"
Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com>
2021-03-30 14:18:07 +08:00
zryfish
ac275b6e98 add goimports format action (#3630)
Signed-off-by: Jeff <jeffzhang@yunify.com>
2021-03-30 13:44:24 +08:00
KubeSphere CI Bot
40e3751e43 Merge pull request #3588 from LinuxSuRen/pipeline-json-missing-env
Fix fields missing when convert Jenkinsfile to JSON
2021-03-29 18:07:30 +08:00
KubeSphere CI Bot
64fc89212f Merge pull request #3590 from xyz-li/app-fix1
Fix: remove checks when delete release
2021-03-29 14:54:47 +08:00
KubeSphere CI Bot
7d661e90b9 Merge pull request #3486 from wansir/update-vendor
update vendor directory
2021-03-29 10:54:47 +08:00
rick
a545effee9 Fix fields missing when convert Jenkinsfile to JSON
Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com>
2021-03-29 10:50:24 +08:00
KubeSphere CI Bot
652c1a4c68 Merge pull request #3595 from LinuxSuRen/fix-pipe-input-admin
Fix that devops admin users cannot approve a Pipeline input
2021-03-29 10:42:09 +08:00
KubeSphere CI Bot
0f2ac8ae17 Merge pull request #3584 from wansir/refactor
Remove useless log output
2021-03-29 09:04:09 +08:00
KubeSphere CI Bot
f9c807fab3 Merge pull request #3594 from zhu733756/fix-request-edgenode-metrics-everytime
Request edge metrics only if prometheus metrics data is empty
2021-03-29 08:35:47 +08:00
KubeSphere CI Bot
c356789aca Merge pull request #3600 from yuswift/change_http_code
change http response code to 400 when the cluster is not ready
2021-03-29 08:34:09 +08:00
yuswift
fe23feff85 change http response code to 400 when the cluster is not ready
Signed-off-by: yuswift <yuswiftli@yunify.com>
2021-03-26 16:00:29 +08:00
rick
baa7ae4d69 Fix that devops admin users cannot approve a Pipeline input
Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com>
2021-03-26 13:29:25 +08:00
zhu733756
78a97fea05 fix variable naming errors
Signed-off-by: zhu733756 <talonzhu@yunify.com>
2021-03-26 11:18:47 +08:00
hongming
b83b3232cb remove useless log output
Signed-off-by: hongming <talonwan@yunify.com>
2021-03-26 11:15:45 +08:00
zhu733756
5b3bced5d7 Request edge metrics only if prometheus metrics data is empty
Signed-off-by: zhu733756 <talonzhu@yunify.com>
2021-03-26 10:30:18 +08:00
KubeSphere CI Bot
fbd200b4ab Merge pull request #3589 from yuswift/fix/502_error_when_joining_clusters_again
fix 502 error when joining the same cluster with a different name
2021-03-26 09:32:29 +08:00
天璇
cba14936c5 Update powered-by-kubesphere.md (#3576) 2021-03-26 09:25:48 +08:00
KubeSphere CI Bot
40e5920c3e Merge pull request #3574 from xyz-li/app-fix
Fix: handle invalid semver
2021-03-26 09:24:45 +08:00
KubeSphere CI Bot
84d28f3186 Merge pull request #3575 from RolandMa1986/fix-uttimeout
fix ut timeout issue example
2021-03-26 09:19:07 +08:00
LiHui
cac5daa429 Fix: save description when install release
Signed-off-by: LiHui <andrewli@yunify.com>
2021-03-25 23:57:39 +08:00
LiHui
9fc0f8d89b Fix: remove checks of the exists of release when delete app and repo
Signed-off-by: LiHui <andrewli@yunify.com>
2021-03-25 23:57:39 +08:00
LiHui
542eb180c5 Fix: return app creator
Signed-off-by: LiHui <andrewli@yunify.com>
2021-03-25 23:57:33 +08:00
yuswift
ce3b5a026a fix 502 error when joining the same cluster with a different name
Signed-off-by: yuswift <yuswiftli@yunify.com>
2021-03-25 22:08:08 +08:00
LiHui
231d2213d3 Fix: handlet invalid semver
Signed-off-by: LiHui <andrewli@yunify.com>
2021-03-25 21:52:34 +08:00
KubeSphere CI Bot
8ca0c86b39 Merge pull request #3577 from wansir/fix-unit-test
fix unit test timeout
2021-03-25 12:18:07 +08:00
hongming
c1574175e1 update vendor directory
Signed-off-by: hongming <talonwan@yunify.com>
2021-03-25 11:33:41 +08:00
hongming
4663f70ec4 fix unit test timeout
Signed-off-by: hongming <talonwan@yunify.com>
2021-03-25 11:28:13 +08:00
Roland.Ma
702d181fb6 fix ut timeout issue
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2021-03-25 02:00:00 +00:00
KubeSphere CI Bot
e6bbff1111 Merge pull request #3548 from zackzhangkai/master
fix import error
2021-03-25 08:56:46 +08:00
KubeSphere CI Bot
d5fdfd5172 Merge pull request #3550 from LinuxSuRen/fix-url-redundant-check
Fix the BitBucket endpoint URL redundant checking
2021-03-25 08:55:45 +08:00
KubeSphere CI Bot
46e064870e Merge pull request #3522 from LinuxSuRen/fix-pipeline-runs-paging
Fix the Pipeline runs paging issues caused by BlueOcean plugin
2021-03-24 09:42:44 +08:00
KubeSphere CI Bot
8d96805592 Merge pull request #3527 from wanjunlei/nm
fix bug can not delete notification secret
2021-03-24 09:07:07 +08:00
rick
57ffd36282 Fix the BitBucket endpoint URL redundant checking
Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com>
2021-03-23 10:25:52 +08:00
zackzhangkai
ab7abe5e35 fix import error
Signed-off-by: zackzhangkai <zhangkaiamm@gmail.com>
2021-03-23 09:33:18 +08:00
rick
a2ef07ed82 Move the code lines about getting pipelineRuns with remote paging into a new function: listPipelineRunsByRemotePaging
Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com>
2021-03-22 13:38:09 +08:00
KubeSphere CI Bot
6fbaedfaf2 Merge pull request #3524 from LinuxSuRen/set-default-weather-score
Set default value of weatherScore to 100
2021-03-22 13:17:06 +08:00
zryfish
fb2db3e164 fix concurrent map writes (#3529)
Signed-off-by: Jeff <jeffzhang@yunify.com>
2021-03-22 13:14:14 +08:00
wanjunlei
1fdeeaeb42 fix bug can not delete notification secret
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2021-03-21 09:50:34 +08:00
rick
727dffffe2 Set default value of weatherScore to 100
Having a ressonable default value can avoid confusing result. 0 should not be default value of weatherScore

Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com>
2021-03-19 15:12:37 +08:00
KubeSphere CI Bot
9c614bef98 Merge pull request #3490 from wanjunlei/nm
change kubesphere-monitoring-federated to system namespace
2021-03-19 14:48:06 +08:00
KubeSphere CI Bot
d6c7b0ae9e Merge pull request #3505 from LinuxSuRen/fix-multi-branch-input
Fix Pipeline input failed in multi-branch mode
2021-03-19 14:22:05 +08:00
KubeSphere CI Bot
0a40cfdf0c Merge pull request #3465 from xyz-li/app-fix
Fix nil pointer and delete helmRelease
2021-03-19 14:20:05 +08:00
KubeSphere CI Bot
b2fc11808b Merge pull request #3462 from junotx/cmfix
add monitoring dashboard query api
2021-03-19 14:19:05 +08:00
rick
8d8f685dc3 Fix the Pipeline runs paging issues caused by BlueOcean plugin
Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com>
2021-03-19 09:14:06 +08:00
LiHui
dd8429c542 Fix: nil s3Client of attachment api
Signed-off-by: LiHui <andrewli@yunify.com>

format code

Signed-off-by: LiHui <andrewli@yunify.com>

Fix: delete helmRelease on host when delete member cluster

Signed-off-by: LiHui <andrewli@yunify.com>

Fix: modify repo credential

Signed-off-by: LiHui <andrewli@yunify.com>

remove not exitsts charts from helm repo

Signed-off-by: LiHui <andrewli@yunify.com>
2021-03-18 15:26:23 +08:00
rick
bc0be03603 Fix Pipeline input failed in multi-branch mode
Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com>
2021-03-18 08:36:21 +08:00
KubeSphere CI Bot
ac3e83b4eb Merge pull request #3491 from duanjiong/ippool
modify ippool api resource to namespace scope
2021-03-17 10:15:41 +08:00
Duan Jiong
ff1587f445 modify ippool api resource to namespace scope
sync namespace annotation when ippool is deleting

Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2021-03-16 19:41:26 +08:00
wanjunlei
3ff10a65d2 resolve conversation
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2021-03-16 19:13:04 +08:00
wanjunlei
8e28925df3 change kubesphere-monitoring-federated to system namespace
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2021-03-16 18:40:26 +08:00
KubeSphere CI Bot
3a79df0da5 Merge pull request #3467 from RolandMa1986/feat-e2e-restclient
Refine group e2e test
2021-03-16 11:49:40 +08:00
junotx
a8b9211416 updating dashboard dependency version and resolve conflicts
Signed-off-by: junotx <junotx@126.com>
2021-03-16 10:49:49 +08:00
junotx
0c1f994695 monitoring dashboard dependency vendor
Signed-off-by: junotx <junotx@126.com>
2021-03-16 10:27:20 +08:00
junotx
4f5c1378f8 add monitoring dashboard query api
Signed-off-by: junotx <junotx@126.com>
2021-03-16 10:27:19 +08:00
Roland.Ma
8a1c453412 refine group e2e test
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2021-03-15 02:54:31 +00:00
KubeSphere CI Bot
b573d7ec58 Merge pull request #3461 from wansir/fix-3460
fix unauthorized resource access
2021-03-14 21:08:39 +08:00
KubeSphere CI Bot
686b180f3f Merge pull request #3442 from xyz-li/app
add extra annotations and labels to helm release
2021-03-14 21:04:02 +08:00
hongming
ad38e692ff fix unauthorized resource access
Signed-off-by: hongming <talonwan@yunify.com>
2021-03-12 18:13:00 +08:00
KubeSphere CI Bot
147f502257 Merge pull request #3356 from wanjunlei/nm
support customize notification receiver
2021-03-12 16:53:01 +08:00
KubeSphere CI Bot
fcdcdbee0c Merge pull request #3458 from xyz-li/app-fix
Fix nil pointer and missing router
2021-03-12 14:21:01 +08:00
LiHui
263f07fe30 Fix: add router
Signed-off-by: LiHui <andrewli@yunify.com>
2021-03-12 10:05:44 +08:00
LiHui
0b1a119f76 Fix: add extra annotations and labels to helm release
Signed-off-by: LiHui <andrewli@yunify.com>
2021-03-11 23:34:06 +08:00
LiHui
87c71ed2dd Fix: handle openpititx config
Signed-off-by: LiHui <andrewli@yunify.com>
2021-03-11 18:25:49 +08:00
KubeSphere CI Bot
4f8fc3d483 Merge pull request #3447 from wanjunlei/es
fix bug can not search auditing logs with nil namespace
2021-03-11 11:40:01 +08:00
KubeSphere CI Bot
93ede4b770 Merge pull request #3440 from junotx/ca
fix alerts not retriggered when updating rule
2021-03-11 11:39:37 +08:00
KubeSphere CI Bot
2407511da3 Merge pull request #3437 from zackzhangkai/support_multi_port
support virtualservice multi port
2021-03-11 11:33:01 +08:00
zackzhangkai
676062d760 support virtualservice multi port
Signed-off-by: zackzhangkai <zhangkaiamm@gmail.com>
2021-03-11 11:12:51 +08:00
wanjunlei
e3cf58e84b Integrate all receivers into one crd, and all configs into another crd
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2021-03-10 18:55:46 +08:00
wanjunlei
d6d2cf002f resolve conversation
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2021-03-10 17:40:51 +08:00
wanjunlei
f4f5f8283e change notification crd version to v2alpha1
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2021-03-10 17:36:06 +08:00
wanjunlei
d79104b8a2 change api version to v2alpha1
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2021-03-10 17:33:30 +08:00
wanjunlei
5e39b7c752 add tenant-level apis for notification secret
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2021-03-10 17:32:49 +08:00
wanjunlei
d4a8f9bf88 resolve conversation
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2021-03-10 17:32:49 +08:00
wanjunlei
f9213fcdc8 support customize notification receiver
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2021-03-10 17:32:48 +08:00
wanjunlei
a6cb91e6fb fix bug can not search auditing logs with nil namespace
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2021-03-10 14:56:42 +08:00
KubeSphere CI Bot
01600081f6 Merge pull request #3334 from xyz-li/app
manage openpitrix with crd
2021-03-09 19:36:00 +08:00
LiHui
83e6221f3a openpitrix crd
Signed-off-by: LiHui <andrewli@yunify.com>

delete helm repo, release and app

Signed-off-by: LiHui <andrewli@yunify.com>

Fix Dockerfile

Signed-off-by: LiHui <andrewli@yunify.com>

add unit test for category controller

Signed-off-by: LiHui <andrewli@yunify.com>

resource api

Signed-off-by: LiHui <andrewli@yunify.com>

miscellaneous

Signed-off-by: LiHui <andrewli@yunify.com>

resource api

Signed-off-by: LiHui <andrewli@yunify.com>

add s3 repo indx

Signed-off-by: LiHui <andrewli@yunify.com>

attachment api

Signed-off-by: LiHui <andrewli@yunify.com>

repo controller test

Signed-off-by: LiHui <andrewli@yunify.com>

application controller test

Signed-off-by: LiHui <andrewli@yunify.com>

release metric

Signed-off-by: LiHui <andrewli@yunify.com>

helm release controller test

Signed-off-by: LiHui <andrewli@yunify.com>

move constants to /pkg/apis/application

Signed-off-by: LiHui <andrewli@yunify.com>

remove unused code

Signed-off-by: LiHui <andrewli@yunify.com>

add license header

Signed-off-by: LiHui <andrewli@yunify.com>

Fix bugs

Signed-off-by: LiHui <andrewli@yunify.com>

cluster cluent

Signed-off-by: LiHui <andrewli@yunify.com>

format code

Signed-off-by: LiHui <andrewli@yunify.com>

move workspace,cluster from spec to labels

Signed-off-by: LiHui <andrewli@yunify.com>

add license header

Signed-off-by: LiHui <andrewli@yunify.com>

openpitrix test

Signed-off-by: LiHui <andrewli@yunify.com>

add worksapce labels for app in appstore

Signed-off-by: LiHui <andrewli@yunify.com>
2021-03-09 18:30:02 +08:00
junotx
a3d44252f2 fix alerts unretriggered when updating rule
Signed-off-by: junotx <junotx@126.com>
2021-03-09 18:22:05 +08:00
KubeSphere CI Bot
f652be4395 Merge pull request #3436 from lshmouse/typo
Fix a typo of Amazon and the doc link of GKE
2021-03-09 16:41:36 +08:00
Shaohui Liu
2e3d8c4e3b Fix a typo of Amazon and some wrong doc links in README.md
Signed-off-by: Shaohui Liu <liushaohui@xiaomi.com>
2021-03-08 20:09:24 +08:00
KubeSphere CI Bot
6f719e0af6 Merge pull request #3427 from Ma-Dan/master
Add kubeedge API
2021-03-08 19:24:36 +08:00
root
eaf937b15f Add kubeedge API
Signed-off-by: Ma-Dan <danma@yunify.com>
2021-03-08 17:09:05 +08:00
KubeSphere CI Bot
000acad7aa Merge pull request #3432 from LinuxSuRen/fix-choices-param
Fix the issues caused by the differences XML structure between the simple pipline and the multi-branch pipeline
2021-03-08 14:29:36 +08:00
KubeSphere CI Bot
737639020b Merge pull request #3433 from wansir/loginrecord
limit login record entries
2021-03-06 19:47:04 +08:00
KubeSphere CI Bot
88eb1af436 Merge pull request #3409 from junotx/ca
add alerting rule bulk api
2021-03-06 19:46:29 +08:00
hongming
70a0ee40d6 limit login record entries
Signed-off-by: hongming <talonwan@yunify.com>
2021-03-06 14:45:11 +08:00
junotx
302000a650 tweak some variables and comments to alerting bulk
Signed-off-by: junotx <junotx@126.com>
2021-03-05 21:54:56 +08:00
KubeSphere CI Bot
490bb9ec30 Merge pull request #3018 from yunkunrao/metering
Add metering api
2021-03-05 15:34:29 +08:00
Rao Yunkun
d9b681dd8d Merge branch 'master' into metering
Signed-off-by: Rao Yunkun <yunkunrao@yunify.com>
2021-03-05 14:43:30 +08:00
Rao Yunkun
36a6b6682d code clean
Signed-off-by: Rao Yunkun <yunkunrao@yunify.com>
2021-03-05 14:33:51 +08:00
KubeSphere CI Bot
9e3324d5c1 Merge pull request #3431 from LinuxSuRen/fix-boolean-param
Fix unmarshal bool into Go struct due to the boolean parameter
2021-03-05 14:19:28 +08:00
KubeSphere CI Bot
6428160dae Merge pull request #3410 from duanjiong/ippool
fix ippool status statistics
2021-03-05 13:39:03 +08:00
junotx
c92431547f add some comments to alerting bulk
Signed-off-by: junotx <junotx@126.com>
2021-03-05 10:57:39 +08:00
junotx
91f85254aa add alerting rule bulk api
Signed-off-by: junotx <junotx@126.com>
2021-03-05 10:57:39 +08:00
junotx
390647c82a limit size of a rule group
Signed-off-by: junotx <junotx@126.com>
2021-03-05 10:57:39 +08:00
KubeSphere CI Bot
5acce77ad0 Merge pull request #3429 from RolandMa1986/staging-rules
Update staging repo sync rules
2021-03-04 19:04:27 +08:00
Duan Jiong
67cbff464f fix ippool status statistics
and delete ippool label while workspace is deleted

sync default ippool to namespace annotation

Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2021-03-04 17:50:14 +08:00
rick
39af05f8eb Fix the issues caused by the differences XML structure between the simple pipline and the multi-branch pipeline
Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com>
2021-03-04 16:46:44 +08:00
rick
fe2f2172ba Fix unmarshal bool into Go struct due to the boolean parameter
Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com>
2021-03-04 16:32:33 +08:00
Roland.Ma
e058f938d1 staging repo sync rules
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2021-03-04 06:51:20 +00:00
KubeSphere CI Bot
65f935d0df Merge pull request #3344 from wansir/workspace-quota
support workspace resource quota
2021-03-03 11:19:59 +08:00
KubeSphere CI Bot
b4b7cc4d67 Merge pull request #3412 from yuswift/update_roadmap
update roadmap for multi-cluster
2021-03-03 09:58:25 +08:00
KubeSphere CI Bot
3004ed0eb1 Merge pull request #3423 from RolandMa1986/fix-vendor
Fix update-vendor.sh script
2021-03-02 16:26:24 +08:00
KubeSphere CI Bot
454ffb3288 Merge pull request #3424 from shaowenchen/master
fix: pipeline sync annotations
2021-03-02 15:29:24 +08:00
shaowenchen
921341d8ce fix: pipeline sync annotations
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2021-03-02 15:11:12 +08:00
Roland.Ma
298a5d3827 fix update vendor script
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2021-03-02 05:35:05 +00:00
Rao Yunkun
5bddda51e7 Change metering exported format to csv.
Signed-off-by: Rao Yunkun <yunkunrao@yunify.com>
2021-03-02 11:56:08 +08:00
hongming
70fa24010c support workspace resource quota
Signed-off-by: hongming <talonwan@yunify.com>
2021-03-02 10:42:09 +08:00
KubeSphere CI Bot
d412fdae98 Merge pull request #3416 from zryfish/fix_fmt_issue
fix code format issues
2021-03-01 15:47:58 +08:00
Jeff
a2ede11ee7 fix code format issues
Signed-off-by: Jeff <jeffzhang@yunify.com>
2021-03-01 15:21:15 +08:00
KubeSphere CI Bot
12f8407218 Merge pull request #3403 from zryfish/reconcile_application_with_specified_label
support selective application reconcilation
2021-03-01 15:19:24 +08:00
Jeff
c28afabdd5 application controller will only reconcile applications matched with given label selector
Signed-off-by: Jeff <jeffzhang@yunify.com>
2021-03-01 13:19:26 +08:00
yuswift
88eb5b8f3a update roadmap for multi-cluster
Signed-off-by: yuswift <yuswiftli@yunify.com>
2021-03-01 11:16:45 +08:00
KubeSphere CI Bot
befebadc21 Merge pull request #3408 from wansir/fix-3407
Fix cannot modify UserSpec
2021-02-27 17:23:23 +08:00
hongming
7929dd361e Fix cannot modify UserSpec
Signed-off-by: hongming <talonwan@yunify.com>
2021-02-26 16:13:25 +08:00
KubeSphere CI Bot
ee9c2d114c Merge pull request #3375 from RolandMa1986/feat-e2e-pipeline
add e2e github action
2021-02-26 13:53:10 +08:00
KubeSphere CI Bot
1ff873141a Merge pull request #3396 from RolandMa1986/fix-devopsrole
DevOps roles not been initialed
2021-02-26 13:52:56 +08:00
Roland.Ma
d0c766c311 fix: devops roles not been initialed
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2021-02-25 06:32:44 +00:00
KubeSphere CI Bot
8500a22803 Merge pull request #3394 from duanjiong/ippool
Update calico lib
2021-02-25 11:42:21 +08:00
KubeSphere CI Bot
a57359e97a Merge pull request #3383 from shaowenchen/add_annotations_to_pipeline
feature: add annotations to pipelines for getting syncstatus
2021-02-25 11:05:17 +08:00
KubeSphere CI Bot
e48306d74b Merge pull request #3380 from yuswift/refactor_cluster_controller
refactor cluster controller
2021-02-25 10:52:58 +08:00
Duan Jiong
2705d25e83 Update calico lib
fix struct definition error in v3

Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2021-02-24 18:06:36 +08:00
Roland.Ma
7aa602e124 e2e github action
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2021-02-24 06:56:23 +00:00
shaowenchen
f6bcdc50fd feature: add annotations to pipelines for getting syncstatus
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2021-02-24 14:19:09 +08:00
yuswift
194d054973 refactor cluster controller
Signed-off-by: yuswift <yuswiftli@yunify.com>
2021-02-24 10:12:42 +08:00
KubeSphere CI Bot
000d309785 Merge pull request #3376 from duanjiong/ippool
Don't exit while synchronizing calico ippool
2021-02-23 14:51:57 +08:00
Duan Jiong
78c7b81ce5 Don't exit while synchronizing calico ippool
Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2021-02-23 11:31:05 +08:00
KubeSphere CI Bot
a4310e67ee Merge pull request #3372 from benjaminhuo/master
Update roadmap for o11y & edge
2021-02-23 10:16:57 +08:00
KubeSphere CI Bot
68ff7b8328 Merge pull request #3364 from LinuxSuRen/devops-credential-sync
Fix the issues that devops credentials cannot be deleted
2021-02-22 16:54:56 +08:00
KubeSphere CI Bot
898ba72bcb Merge pull request #3370 from zheng1/master
Update OpenPitrix and Network roadmap
2021-02-22 16:38:19 +08:00
Benjamin
27eb3f7da6 Update roadmap for o11y & edge
Signed-off-by: Benjamin <benjamin@yunify.com>
2021-02-22 15:43:34 +08:00
Zhengyi Lai
c7e522afc2 Update OpenPitrix and Network roadmap
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
2021-02-22 14:51:05 +08:00
KubeSphere CI Bot
e74ca0ead0 Merge pull request #3335 from LinuxSuRen/fix-pipeline-run-err-count
Fix the wrong count of total Pipeline Run number
2021-02-22 14:32:19 +08:00
yunkunrao
e9073f0486 Add metering api.
Signed-off-by: yunkunrao <yunkunrao@yunify.com>
2021-02-22 14:31:10 +08:00
rick
a5ec7b4b00 Set a explicit loggger level in func SendPureRequestWithHeaderResp
Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com>
2021-02-22 14:29:53 +08:00
rick
054d85e6c4 Fix the wrong count of total Pipeline Run number
Signed-off-by: rick <rick@jenkins-zh.cn>
2021-02-22 14:22:08 +08:00
KubeSphere CI Bot
2f5202f38a Merge pull request #3366 from RolandMa1986/feat-e2e
e2e: add client library
2021-02-22 12:19:52 +08:00
KubeSphere CI Bot
dfa1566bb9 Merge pull request #3342 from LinuxSuRen/fix-pip-filter
Fix the Pipeline name filter issues
2021-02-22 11:59:19 +08:00
Roland.Ma
72441f4f14 update e2e build script
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2021-02-22 02:01:13 +00:00
KubeSphere CI Bot
470a87ef63 Merge pull request #3352 from wansir/feature-cas
support CAS identity provider
2021-02-21 11:39:19 +08:00
Rick
6fc5baaca0 Fix the issues that devops credentials cannot be deleted
Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com>
2021-02-20 18:49:08 +08:00
Roland.Ma
fd2f213f3a e2e test framework
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2021-02-20 07:34:31 +00:00
hongming
5f0727cf34 support CAS identity provider
Signed-off-by: hongming <talonwan@yunify.com>
2021-02-20 10:45:55 +08:00
KubeSphere CI Bot
5972c4b66a Merge pull request #3349 from LinuxSuRen/get-latest-resource-version
Trying to avoid the error of `Operation cannot be fulfilled on` by getting the latest resourceVersion
2021-02-20 10:11:18 +08:00
KubeSphere CI Bot
2d73e777f4 Merge pull request #3362 from LinuxSuRen/remove-k8s.io-module
Remove k8s.io/kubernetes from go.mod
2021-02-19 11:59:53 +08:00
rick
5a8e8ca35e Remove k8s.io/kubernetes from go.mod
Signed-off-by: rick <rick@jenkins-zh.cn>
2021-02-19 10:05:19 +08:00
KubeSphere CI Bot
5d9445d18a Merge pull request #3254 from yuswift/feature/validate-member_cluster-config
validate member cluster config while joining member clusters.
2021-02-18 16:57:26 +08:00
KubeSphere CI Bot
e477a213b5 Merge pull request #3360 from yuswift/update_dependency
run update-vendor.sh to update dependencies
2021-02-18 16:38:27 +08:00
yuswift
dcf451dd41 run update-vendor.sh to update dependcy
Signed-off-by: yuswift <yuswiftli@yunify.com>
2021-02-18 15:49:08 +08:00
yuswift
93addfd1cc validate member cluster config
Signed-off-by: yuswift <yuswiftli@yunify.com>
2021-02-18 15:36:36 +08:00
KubeSphere CI Bot
57d72472c3 Merge pull request #3286 from LinuxSuRen/fix-pip-input-approve-check
Fix the incorrect approvable check of Pipeline input
2021-02-18 10:41:26 +08:00
KubeSphere CI Bot
a0780e2bee Merge pull request #3338 from junotx/ca
custom alerting tuning
2021-02-18 10:40:26 +08:00
rick
ff384d30a6 trying to avoid the error of Operation cannot be fulfilled on by getting the latest resourceVersion
Signed-off-by: rick <rick@jenkins-zh.cn>
2021-02-05 09:43:52 +08:00
KubeSphere CI Bot
166dd4ff73 Merge pull request #3346 from RolandMa1986/fix-3343
Fix workspace member count
2021-02-04 22:18:46 +08:00
KubeSphere CI Bot
71b038990b Merge pull request #3330 from zackzhangkai/application-unit-test
add application unit test files
2021-02-04 22:08:46 +08:00
KubeSphere CI Bot
5331ad8fa5 Merge pull request #3319 from yuswift/remove_http1.1_support_code
remove http1.1 support code
2021-02-04 22:07:46 +08:00
Roland.Ma
dc9f0ed4cf fix workspace member count
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2021-02-03 06:38:30 +00:00
junotx
bac3d66fd2 alerting rules default to sort by update time
Signed-off-by: junotx <junotx@126.com>
2021-02-02 17:52:48 +08:00
rick
cab4915795 Fix the Pipeline name filter issues
Signed-off-by: rick <rick@jenkins-zh.cn>
2021-02-02 15:19:55 +08:00
yuswift
c83a0a508e remove_http1.1_support_code
Signed-off-by: yuswift <yuswiftli@yunify.com>
2021-02-02 14:43:45 +08:00
junotx
f57d91511d optimize operations for the latest rule resources
Signed-off-by: junotx <junotx@126.com>
2021-02-02 10:24:49 +08:00
KubeSphere CI Bot
f32e53fce3 Merge pull request #3294 from LinuxSuRen/fix-jenkins-api-proxy
Add support to proxy Jenkins API with POST method
2021-02-01 17:39:17 +08:00
KubeSphere CI Bot
b83b8f89a6 Merge pull request #3337 from shaowenchen/clear_devops
improvement: update owners for devops
2021-02-01 17:34:17 +08:00
junotx
5e7f40e6b9 exclude alerting rule replica label
Signed-off-by: junotx <junotx@126.com>
2021-02-01 17:25:56 +08:00
junotx
a120969be7 optimize alerting rule concurrency
Signed-off-by: junotx <junotx@126.com>
2021-02-01 17:25:30 +08:00
junotx
2893f4cc0e update alerting page param
Signed-off-by: junotx <junotx@126.com>
2021-02-01 17:24:45 +08:00
junotx
cdbce887dd enhance the alerting rule validation
Signed-off-by: junotx <junotx@126.com>
2021-02-01 17:23:35 +08:00
junotx
3a0e089129 add request err with api not enabled to alerting
Signed-off-by: junotx <junotx@126.com>
2021-02-01 17:22:43 +08:00
junotx
5467b2a1a3 make the responses of listing alerts apis consistent
Signed-off-by: junotx <junotx@126.com>
2021-02-01 17:22:18 +08:00
KubeSphere CI Bot
2f490470db Merge pull request #3317 from shaowenchen/fix_query_image
add parameter to allow ignore cert
2021-02-01 17:17:17 +08:00
shaowenchen
2380c3b5cc improvement: update owners for devops
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2021-02-01 17:11:02 +08:00
KubeSphere CI Bot
626c30b9ab Merge pull request #3296 from SxunS/bugfix/ipv4
When the ip4 addres is nil, it should try the next.
2021-02-01 10:59:44 +08:00
zackzhang
31f5f8477b add application unit test files
Signed-off-by: zackzhang <zackzhang@yunify.com>
2021-02-01 09:59:04 +08:00
shaowenchen
774cefcbee add parameter to allow ignore cert
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2021-01-29 18:17:35 +08:00
KubeSphere CI Bot
4fd6e3e95f Merge pull request #3173 from Ma-Dan/master
Add metrics-server client to monitoring
2021-01-29 15:55:43 +08:00
KubeSphere CI Bot
011c4853cc Merge pull request #3291 from LinuxSuRen/pipeline-choice-param
Fix the wrong XML parse of Pipeline choice parameter
2021-01-29 15:23:44 +08:00
KubeSphere CI Bot
c029751dc0 Merge pull request #3289 from yuswift/bugfix/proxy-upgrade
fix proxy upgrade error when using kubeconfig with token
2021-01-29 15:21:43 +08:00
yuswift
a97048b08d fix proxy upgrade error when using kubeconfig with token
Signed-off-by: yuswift <yuswiftli@yunify.com>
2021-01-28 16:07:39 +08:00
rick
530c6911a5 Fix the incorrect approvable check of Pipeline input
Signed-off-by: rick <rick@jenkins-zh.cn>
2021-01-27 11:25:14 +08:00
root
3095fd9403 Add test code to metrics client, and fix metrics items process
Signed-off-by: root <danma@yunify.com>
2021-01-26 08:30:41 +00:00
黎咏
cd4cbf1962 When the ip4 addres is nil, it should try the next.
Signed-off-by: 黎咏 <s_xun_s@163.com>
2021-01-26 12:42:56 +08:00
root
8c86c9e1a5 Add metrics-server client to monitoring
Signed-off-by: root <danma@yunify.com>
2021-01-25 07:10:41 +00:00
KubeSphere CI Bot
38eaa5cde0 Merge pull request #3279 from LinuxSuRen/fix-pipe-list
Fix the pipeline list with incorrect paging calculating
2021-01-25 14:58:41 +08:00
KubeSphere CI Bot
e6365c62d5 Merge pull request #3214 from yuswift/feature/support_configurable_cluster_resync_perioud
Configurable cluster resync perioud
2021-01-25 14:04:42 +08:00
rick
81c0df01fe Fix the wrong XML parse of Pipeline choice parameter
Signed-off-by: rick <rick@jenkins-zh.cn>
2021-01-25 12:01:04 +08:00
rick
2e9367fb70 Add support to proxy Jenkins API with POST method
Signed-off-by: rick <rick@jenkins-zh.cn>
2021-01-25 11:25:59 +08:00
yuswift
9e0a4b69e8 support configurable cluster resync perioud
Signed-off-by: yuswift <yuswiftli@yunify.com>
2021-01-22 18:06:13 +08:00
KubeSphere CI Bot
3c79548262 Merge pull request #3268 from RolandMa1986/feat-sa
Feat ServiceAccount management
2021-01-21 20:03:40 +08:00
KubeSphere CI Bot
7ab1eb1d6a Merge pull request #3189 from wansir/oidc
support OIDC identity provider
2021-01-21 16:13:40 +08:00
KubeSphere CI Bot
eca6a2d07c Merge pull request #3267 from zackzhangkai/fix-controller-manager
fix application reconcile
2021-01-21 15:57:40 +08:00
KubeSphere CI Bot
2e9b42eaf1 Merge pull request #3242 from zackzhangkai/roadmap
add microservice roadmap
2021-01-19 17:11:39 +08:00
KubeSphere CI Bot
bed6465993 Merge pull request #3212 from wanjunlei/es
add a es client for auditing, events, and logging
2021-01-19 17:09:19 +08:00
zackzhang
2b0b36672b fix application reconcile
Signed-off-by: zackzhang <zackzhang@yunify.com>
2021-01-19 14:58:07 +08:00
hongming
ac2bdf2509 support oidc identity provider
Signed-off-by: hongming <talonwan@yunify.com>
2021-01-18 15:12:35 +08:00
rick
c72a106bab Fix the pipeline list with incorrect paging calculating
Signed-off-by: rick <rick@jenkins-zh.cn>
2021-01-18 10:48:35 +08:00
KubeSphere CI Bot
1f4d5cb686 Merge pull request #3181 from junotx/custom-alerting
feature: custom alerting
2021-01-18 10:19:14 +08:00
KubeSphere CI Bot
edbbd682b5 Merge pull request #3239 from yuswift/multi-cluster-roadmap
add roadmap for multi-cluster
2021-01-18 10:17:38 +08:00
yuswift
99c33b37ef add roadmap for multi-cluster
Signed-off-by: yuswift <yuswiftli@yunify.com>
2021-01-18 10:10:37 +08:00
junotx
514fec7eb4 custom alerting use the same API group and flagset to alerting
Signed-off-by: junotx <junotx@126.com>
2021-01-15 13:48:48 +08:00
Roland.Ma
02b0d9247f add serviceaccount contorller
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2021-01-15 05:23:58 +00:00
Roland.Ma
35f7e46c65 feat: add serviceaccounts api
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2021-01-15 05:23:57 +00:00
zackzhang
1ddea23f27 add microservice roadmap
Signed-off-by: zackzhang <zackzhang@yunify.com>
2021-01-15 12:13:34 +08:00
KubeSphere CI Bot
f5e2b05240 Merge pull request #3220 from xyz-li/master
add metrics
2021-01-15 10:16:37 +08:00
KubeSphere CI Bot
ff0861bd1c Merge pull request #3243 from zheng1/roadmap
Add AppStore/Network/Metering Roadmap in v3.1
2021-01-15 10:07:08 +08:00
junotx
6f9d306368 custom alerting resolve conflicts
Signed-off-by: junotx <junotx@126.com>
2021-01-12 16:52:37 +08:00
junotx
9831eb3533 custom alerting optimize
Signed-off-by: junotx <junotx@126.com>
2021-01-12 16:52:36 +08:00
junotx
371c9b187d custom alerting
Signed-off-by: junotx <junotx@126.com>
2021-01-12 16:52:36 +08:00
KubeSphere CI Bot
242193ddb0 Merge pull request #3255 from benjaminhuo/master
Add roadmap for O11y and Edge
2021-01-12 13:57:35 +08:00
KubeSphere CI Bot
a638df58ab Merge pull request #3235 from LinuxSuRen/fix-pipeline-not-sync
Fix the pipeline do not sync with Jenkins
2021-01-11 10:13:35 +08:00
KubeSphere CI Bot
3788124641 Merge pull request #3256 from zheng1/network.topology
Add network.topology into conf.ToMap()
2021-01-11 10:03:35 +08:00
LiHui
e57e602b69 change method name
Signed-off-by: LiHui <andrewli@yunify.com>
2021-01-08 14:16:02 +08:00
KubeSphere CI Bot
b3b7f53583 Merge pull request #3224 from junotx/cme
fix metrics query bug for pods with duplicate name in one node
2021-01-08 14:01:34 +08:00
junotx
9304e839b1 fix metrics query bug for pods with duplicate name in one node
Signed-off-by: junotx <junotx@126.com>
2021-01-08 13:53:49 +08:00
Benjamin
1cfe84d217 Add roadmap for O11y and Edge
Signed-off-by: Benjamin <benjamin@yunify.com>
2021-01-07 18:07:42 +08:00
Zhengyi Lai
492b4ae8c2 Add network.topology into conf.ToMap()
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
2021-01-06 15:04:43 +08:00
LiHui
bc9fe7f656 add process and goroutine metrics
Signed-off-by: LiHui <andrewli@yunify.com>
2021-01-06 10:23:30 +08:00
LiHui
1ecec78379 enable metrics by default
Signed-off-by: LiHui <andrewli@yunify.com>
2021-01-06 10:18:14 +08:00
LiHui
611f1c6991 add metrics to controller-manager
Signed-off-by: LiHui <andrewli@yunify.com>
2021-01-06 10:18:14 +08:00
LiHui
056bebdec6 fix test
Signed-off-by: LiHui <andrewli@yunify.com>
2021-01-06 10:18:14 +08:00
LiHui
5c8ac10d26 add metrics
Signed-off-by: LiHui <andrewli@yunify.com>
2021-01-06 10:18:14 +08:00
rick
14367d1954 Fix the pipeline do not sync with Jenkins
Signed-off-by: rick <rick@jenkins-zh.cn>
2021-01-06 10:11:59 +08:00
KubeSphere CI Bot
f2e96bce7f Merge pull request #3250 from zackzhangkai/support-customized-repo
support pass customized repo
2021-01-06 09:56:33 +08:00
KubeSphere CI Bot
80a6faf95a Merge pull request #3249 from shaowenchen/feature_devops_roadmap
feature: add devops roadmap
2021-01-06 09:55:33 +08:00
KubeSphere CI Bot
db54eff566 Merge pull request #3240 from wansir/roadmap
update roadmap
2021-01-06 09:54:33 +08:00
KubeSphere CI Bot
ee373b8e55 Merge pull request #3247 from RolandMa1986/group-parent
Cascading deletion of children groups
2021-01-06 09:50:33 +08:00
KubeSphere CI Bot
a7c58617e1 Merge pull request #3222 from wansir/master
update dependencies
2021-01-06 09:47:33 +08:00
zackzhang
324f4aebbb support pass customized repo
Signed-off-by: zackzhang <zackzhang@yunify.com>
2021-01-05 16:21:25 +08:00
Zhengyi Lai
a4cc1d189a Add AppStore/Network/Metering Roadmap in v3.1
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
2021-01-05 13:34:47 +08:00
shaowenchen
e97947870e feature: add devops 3.1 roadmap
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2021-01-05 11:41:35 +08:00
Zack Zhang
f20c1f33f1 refactor application controller
Signed-off-by: zackzhang <zackzhang@yunify.com>
2021-01-04 16:34:04 +08:00
Roland.Ma
2d6b7fef8b cascading deletion of children groups
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2021-01-04 07:39:50 +00:00
hongming
fe6c5de00f update dependencies
Signed-off-by: hongming <talonwan@yunify.com>
2021-01-04 15:35:32 +08:00
hongming
6a68925d19 update roadmap
Signed-off-by: hongming <talonwan@yunify.com>
2021-01-04 13:18:57 +08:00
KubeSphere CI Bot
4a11a50544 Merge pull request #3238 from RolandMa1986/roadmap
Updates roadmap
2021-01-04 10:48:56 +08:00
Roland.Ma
c8d47446ae update roadmap
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-12-31 03:04:58 +00:00
zryfish
d7c214acf5 add v3.1 roadmap (#3237)
Signed-off-by: Jeff <jeffzhang@yunify.com>
2020-12-30 20:17:52 +08:00
KubeSphere CI Bot
078dead7fe Merge pull request #3216 from duanjiong/ippool
add ippool resource api
2020-12-29 19:47:52 +08:00
wanjunlei
83c010c691 resolve conversation
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2020-12-29 14:58:26 +08:00
Duan Jiong
27b335a9c9 Support ippool configuration status field
Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2020-12-29 14:32:21 +08:00
Duan Jiong
24e3ac865f add ippool resource api
add ippool webhook and fix some bugs

Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2020-12-29 14:32:21 +08:00
wanjunlei
039507c9ae add a es client for auditing, events, and logging
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2020-12-29 14:17:21 +08:00
KubeSphere CI Bot
8a6ce2d7ac Merge pull request #3233 from wansir/informer
fix no informer found
2020-12-29 11:02:52 +08:00
KubeSphere CI Bot
7b0d0682a8 Merge pull request #3228 from LinuxSuRen/daily-build
Add a GitHub action for building nightly images
2020-12-29 10:57:52 +08:00
hongming
0fa3dab250 fix no informer found
Signed-off-by: hongming <talonwan@yunify.com>
2020-12-29 10:26:38 +08:00
KubeSphere CI Bot
d7a8490cde Merge pull request #3229 from wanjunlei/audit-ldap
fix bug Failed to configure LDAP login, error message: socket hang up
2020-12-29 10:23:53 +08:00
KubeSphere CI Bot
d672b6cc98 Merge pull request #3179 from wansir/workspace
refactor workspace controller
2020-12-28 15:06:52 +08:00
hongming
a900b6af4e refactor workspace controller
Signed-off-by: hongming <talonwan@yunify.com>
2020-12-28 14:31:48 +08:00
KubeSphere CI Bot
51c853c886 Merge pull request #3203 from yuswift/bugfix/proxy-cluster-status-sync
[BugFix] Fix cluster unjoin federation plane when using proxy connection
2020-12-28 13:55:52 +08:00
KubeSphere CI Bot
ed18749172 Merge pull request #3201 from wanjunlei/auditing-log2
fix bug get goroutine for audit timeout
2020-12-28 13:55:40 +08:00
KubeSphere CI Bot
eaf8cc40c4 Merge pull request #3217 from RolandMa1986/feat-groupapi
add group api
2020-12-25 22:29:50 +08:00
KubeSphere CI Bot
5ffc76dee9 Merge pull request #3206 from RolandMa1986/fix-clusterjoin
Validate member cluster's workspaces when joining clusters
2020-12-25 17:53:50 +08:00
wanjunlei
ea34bda865 fix bug #3226
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2020-12-25 11:56:02 +08:00
rick
490a2802c1 Add a GitHub action for building nightly images
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-12-25 11:16:52 +08:00
Roland.Ma
84f5fb7e69 valid member cluster's workspaces when joining
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-12-25 03:16:03 +00:00
Roland.Ma
ab6e1f171c UT
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-12-24 10:10:39 +00:00
Roland.Ma
bec38d7e0f add group api
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-12-24 09:27:59 +00:00
KubeSphere CI Bot
d814d5db7b Merge pull request #3195 from LinuxSuRen/fix/devops-project-del
Fix devops project cannot be deleted due to mess up with finalizer control
2020-12-18 14:03:47 +08:00
KubeSphere CI Bot
ce9ca401c3 Merge pull request #3146 from zackzhangkai/kiali-use-pod-2
using Kiali API directly
2020-12-18 14:02:48 +08:00
zackzhangkai
f153390468 support using Kiali API directly
Signed-off-by: zackzhangkai <zackzhang@yunify.com>
2020-12-17 21:28:16 +08:00
rick
f908aa42f7 Fix devops project cannot be deleted due to mess up with finalizer control
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-12-16 10:08:34 +08:00
KubeSphere CI Bot
ce0f417949 Merge pull request #3149 from LinuxSuRen/import-pipeline-list
Mix up the pipeline list between ks and Jenkins
2020-12-15 11:35:46 +08:00
zryfish
6da7ab03dd remove unused package (#3204)
Signed-off-by: Jeff <jeffzhang@yunify.com>
2020-12-15 11:32:05 +08:00
KubeSphere CI Bot
41fc9636c3 Merge pull request #3199 from fafucoder/master
fixed: check the cluster has initialized
2020-12-14 16:05:45 +08:00
wanjunlei
ee95aeff15 resolve conversation
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2020-12-14 15:38:11 +08:00
yuswift
ee13aa7c8a fix #3202
Signed-off-by: yuswift <yuswiftli@yunify.com>
2020-12-14 15:30:48 +08:00
linruichao
98ae80207f fixed: check the cluster has initialized
Previously, always check whether the cluster has been initialized, but the updateClusterCondition function always removes the old condition and then adds the new condition, resulting in always returning after updating the initialized condition.

This commit check the cluster has initialized, if initialized will not updated condition

Signed-off-by: linruichao <linruichao@ruijie.com.cn>
2020-12-14 15:02:30 +08:00
wanjunlei
b543ae1a12 fix bug get goroutine for audit timeout
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2020-12-14 11:10:40 +08:00
rick
e2fee2cd90 Fix two issues according to review opinions
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-12-11 13:38:25 +08:00
rick
3d12019e23 Mix up the pipeline list between ks and Jenkins
Technically we should take the Pipeline list from ks or mixup the instead of only taking it from Jenkins. Because we always manipulate Pipeline from ks.

Signed-off-by: rick <rick@jenkins-zh.cn>
2020-12-11 13:38:20 +08:00
KubeSphere CI Bot
a314b31bf0 Merge pull request #3177 from LinuxSuRen/fix/multi-branch-panic-with-nil
Fix ks-controller panic due to missing nil checking in mutli-branch pipeline
2020-12-11 12:00:45 +08:00
KubeSphere CI Bot
d7607b3eaf Merge pull request #3167 from wansir/sensitive-config
config data desensitization
2020-12-11 10:06:45 +08:00
KubeSphere CI Bot
af5b1fe6be Merge pull request #3193 from junotx/custom-monitoring-enhance
custom monitoring with cluster level
2020-12-11 09:54:45 +08:00
KubeSphere CI Bot
cdc03e78e6 Merge pull request #3190 from LinuxSuRen/fix/artifact-download-er
Fix devops artifact cannot be download due to auth checking
2020-12-10 21:48:44 +08:00
rick
4d9268be3d Fix devops artifact cannot be download due to auth checking
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-12-10 20:33:42 +08:00
KubeSphere CI Bot
1e5fdea5f2 Merge pull request #3140 from wansir/identity-provider
improve identity provider plugin
2020-12-10 19:39:44 +08:00
junotx
933d0b5571 custom monitoring with cluster level
Signed-off-by: junotx <junotx@126.com>
2020-12-10 17:16:38 +08:00
KubeSphere CI Bot
8330e9eb7a Merge pull request #3186 from junotx/monitoring
support for querying pods metrics from the cluster level
2020-12-10 14:38:44 +08:00
hongming
dfaefa5ffb improve identity provider plugin
Signed-off-by: hongming <talonwan@yunify.com>
2020-12-10 14:35:56 +08:00
KubeSphere CI Bot
dab0842a32 Merge pull request #3161 from RolandMa1986/feat-group-fedsync
enable multicluster sync for groups
2020-12-09 15:17:43 +08:00
rick
f50f30e6a3 Refactory pr discover with Bitbucket, avoid using number to compare
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-12-09 14:27:06 +08:00
KubeSphere CI Bot
e4e6405c8c Merge pull request #3178 from RolandMa1986/feat-group-api
filter groupbinding by user field
2020-12-09 13:59:43 +08:00
rick
e4782b37f0 Remove the specified version of jenkins plugin scm-api
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-12-09 13:41:01 +08:00
junotx
1df035ed06 support for querying pods metrics from the cluster level
Signed-off-by: junotx <junotx@126.com>
2020-12-09 10:23:33 +08:00
Roland.Ma
ca041bf4bd filter groupbinding by user field
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-12-08 14:27:20 +00:00
KubeSphere CI Bot
91c2e05616 Merge pull request #3180 from LinuxSuRen/fix/pipeline-finalizer
Fix pipeline cannot be removed due to finalizers
2020-12-08 18:01:40 +08:00
KubeSphere CI Bot
1d2204cdfa Merge pull request #3165 from LinuxSuRen/fix/pipeline-cron-tips
Fix the inapproprite errors handle with cron expression checking
2020-12-08 17:59:43 +08:00
KubeSphere CI Bot
bfdef0e67b Merge pull request #3156 from LinuxSuRen/pipeline-approve
Restrict only specific users or admin can approve a pipeline
2020-12-08 17:49:43 +08:00
KubeSphere CI Bot
68979b8f02 Merge pull request #3175 from zackzhangkai/master
add kubeconfig check
2020-12-07 11:55:42 +08:00
rick
4d19c4dbb4 Provide a specific log level instead of using log.error
unifi variable declare style

Signed-off-by: rick <rick@jenkins-zh.cn>
2020-12-07 11:09:37 +08:00
rick
349a4ac965 Fix pipeline cannot be removed due to finalizers
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-12-04 10:22:57 +08:00
Roland.Ma
5248e622f2 enable multicluster sync for groups
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-12-03 07:19:31 +00:00
zackzhangkai
062c688287 kiali add kubeconfig check
Signed-off-by: zackzhangkai <zackzhang@yunify.com>
2020-12-03 14:58:42 +08:00
rick
0b4ed3f8c8 Fix ks-controller panic due to missing nil checking in mutli-branch pipeline
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-12-03 13:48:25 +08:00
rick
730657166c Add more error handling when request cron validation
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-12-03 09:45:25 +08:00
KubeSphere CI Bot
e16219be55 Merge pull request #3163 from LinuxSuRen/improve-docker-build
Improve the process of build docker images.
2020-12-02 17:47:40 +08:00
KubeSphere CI Bot
18bb1c116b Merge pull request #3145 from LinuxSuRen/master
Provide a hunman readable error message instead of the raw
2020-12-02 17:44:40 +08:00
KubeSphere CI Bot
efde8dc9a5 Merge pull request #3168 from zackzhangkai/fix_comments
fix comments
2020-12-02 17:41:40 +08:00
rick
164ffbbfda Discard these changes base the discussion on github
discussion thread is here https://github.com/kubesphere/kubesphere/pull/3163#discussion_r533959311

Signed-off-by: rick <rick@jenkins-zh.cn>
2020-12-02 16:12:41 +08:00
rick
92e7349cf9 Fix an issue which the pipeline owner cannot approve his pipeline
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-12-02 14:07:55 +08:00
hongming
13ede7dacc config data desensitization
Signed-off-by: hongming <talonwan@yunify.com>
2020-12-01 15:08:00 +08:00
zackzhangkai
96fe71173a fix comments
Signed-off-by: zackzhangkai <zackzhang@yunify.com>
2020-12-01 12:50:30 +08:00
KubeSphere CI Bot
a31b8dc1cb Merge pull request #3159 from LinuxSuRen/fix/docker-login-issues
Fix the docker login isseus
2020-12-01 11:22:39 +08:00
rick
66dd5ac784 Keep the orignal error messages with log printing instead swallow them
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-12-01 11:14:42 +08:00
KubeSphere CI Bot
2845d4b03b Merge pull request #3151 from zackzhangkai/kiali-filter-ns
just filter out namespace started with kube-
2020-12-01 11:11:39 +08:00
KubeSphere CI Bot
0ce8564535 Merge pull request #3148 from RolandMa1986/feat-userapi
add group filter for user api
2020-12-01 11:09:40 +08:00
KubeSphere CI Bot
fafe5f14e6 Merge pull request #3131 from LinuxSuRen/gitlab-multi-branch-pipeline
Add gitlab multi-branch pipeline support
2020-12-01 10:56:39 +08:00
rick
039dbf8033 Fix the inapproprite errors handle with cron expression checking
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-12-01 10:07:57 +08:00
rick
53c3204902 Allow users to specific goos via env variable
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-30 15:20:33 +08:00
rick
8451c18277 Add unit tests for pipeline approve functions
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-30 14:09:44 +08:00
rick
df34ee9978 Adding approvable field to indicate if current user can approve a particular step
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-30 11:42:41 +08:00
rick
8f4a6d9b93 Restrict only specific users or admin can approve a pipeline
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-30 09:28:08 +08:00
zackzhangkai
d78d7f0ad0 just filter out kube-* namespaces
Signed-off-by: zackzhangkai <zackzhang@yunify.com>
2020-11-29 22:30:18 +08:00
rick
dab77ef369 Fix the docker login isseus
It was caused by a unknown situation after improve docker_build.sh.

Fixes #3158

Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-28 21:31:25 +08:00
KubeSphere CI Bot
c5de21af4a Merge pull request #3129 from LinuxSuRen/fix-docker-login-issues
Avoid docker login everytime even it is done before
2020-11-26 19:35:37 +08:00
KubeSphere CI Bot
1e1c976bca Merge pull request #3147 from LinuxSuRen/fix/default-jenkinsfile
Fix panic against with pipeline-multibranch-defaults-plugin
2020-11-25 19:56:32 +08:00
Roland.Ma
30216c411b add group filter for user api
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-11-25 09:41:26 +00:00
rick
00e8b0e5ef Fix panic against with pipeline-multibranch-defaults-plugin
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-25 15:38:07 +08:00
rick
d35e22f0be Provide a hunman readable error message instead of the raw
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-25 09:07:20 +08:00
zryfish
2e1d75f383 fix makefile build on mac (#3144)
Signed-off-by: Jeff <jeffzhang@yunify.com>
2020-11-24 20:49:51 +08:00
rick
af471bce59 Add unit test cases for gitlab multi-branch pipeline
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-24 16:40:26 +08:00
KubeSphere CI Bot
f6186a39c3 Merge pull request #3141 from LinuxSuRen/feature-request-template
Adding a feature request issue template
2020-11-24 14:28:36 +08:00
rick
52c6f5f479 Use camel case style according to review comments
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-24 13:54:35 +08:00
rick
573dab2208 Make the logger level as 8 in the DevOps code lines
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-24 13:48:29 +08:00
rick
3293948b33 Add gitlab multi-branch pipeline support
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-24 13:48:25 +08:00
KubeSphere CI Bot
75e0cf27e4 Merge pull request #3126 from shaowenchen/add_state_for_pipeline
feature: add sync state for devops
2020-11-24 11:46:36 +08:00
KubeSphere CI Bot
5a816f72fc Merge pull request #3125 from LinuxSuRen/discover-tag-support
Add support discover tags for multi-branch pipeline
2020-11-24 11:35:36 +08:00
KubeSphere CI Bot
ab7ecee910 Merge pull request #3138 from RolandMa1986/controller-refactoring
refactor controllers
2020-11-24 11:30:36 +08:00
KubeSphere CI Bot
b5e2037f88 Merge pull request #3139 from wansir/ldap-idp
improve LDAP identity provider
2020-11-24 11:29:36 +08:00
KubeSphere CI Bot
6ca2ecf4b6 Merge pull request #3127 from RolandMa1986/feat-group-rolebinding
add rolebinding api
2020-11-24 11:26:36 +08:00
hongming
00920d3d51 improve LDAP identity provider
Signed-off-by: hongming <talonwan@yunify.com>
2020-11-23 17:29:46 +08:00
Roland.Ma
2f916f4dd9 move package
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-11-23 08:47:09 +00:00
Roland.Ma
f8903f19f6 refactor controllers
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-11-23 08:47:09 +00:00
Roland.Ma
aa471f998c refine methods
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-11-23 06:11:49 +00:00
rick
d8397a1c13 Fix the potential issue caused by commented area mark
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-23 11:29:59 +08:00
Roland.Ma
079b43e301 add rolebinding api
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-11-23 02:59:48 +00:00
rick
c240fe11e6 Typo fixes
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-23 10:47:27 +08:00
rick
1a41519b8b Adding a feature request issue template
Using an issue template is always a good practice when we try to submit an issue.

Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-23 10:31:48 +08:00
rick
cec7793534 Make the logger level as 8 in the DevOps code lines
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-23 09:31:56 +08:00
KubeSphere CI Bot
08d3726da3 Merge pull request #3136 from yuswift/bugfix/multi-cluster-condition
bugfix: multi-cluster-status-condition
2020-11-20 18:13:35 +08:00
yuswift
62b39810a4 bugfix: multi-cluster-status-condition
Signed-off-by: yuswift <yuswiftli@yunify.com>
2020-11-20 16:19:42 +08:00
KubeSphere CI Bot
0d0b1d888f Merge pull request #3098 from wansir/fix-2912
fix: cascade delete resources
2020-11-20 12:09:34 +08:00
KubeSphere CI Bot
954a425e20 Merge pull request #3113 from wansir/fix-3112
fix: private key not match public key
2020-11-20 12:04:34 +08:00
rick
9a9b768aca Add a command to builder docker image without test
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-19 15:37:39 +08:00
rick
1783b75c98 Add support discover tags for multi-branch pipeline
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-19 15:29:44 +08:00
rick
eb503f4051 Avoid docker login everytime even it is done before
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-18 22:35:08 +08:00
KubeSphere CI Bot
f6fea24a75 Merge pull request #3097 from zackzhangkai/update-prom-client-2
Upgrade prometheus dependencies
2020-11-18 10:08:33 +08:00
shaowenchen
38ca2ea39b feature: add sync state for devops
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-11-18 00:21:56 +08:00
hongming
f2c99071c2 fix wrong owner reference
Signed-off-by: hongming <talonwan@yunify.com>
2020-11-17 18:27:22 +08:00
zackzhangkai
745ede8519 upgrade prometheus client-go
Signed-off-by: zackzhangkai <zackzhang@yunify.com>
2020-11-17 18:13:43 +08:00
KubeSphere CI Bot
89de94dbf8 Merge pull request #3121 from LinuxSuRen/fix/vet-errs
Fix the errors found by go vet
2020-11-17 18:03:33 +08:00
KubeSphere CI Bot
01cc686cd3 Merge pull request #3080 from zheng1/weave
Add param WeaveScopeHost
2020-11-17 17:25:33 +08:00
Zhengyi Lai
c8f814acf2 Add param WeaveScopeHost
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
2020-11-17 16:57:11 +08:00
KubeSphere CI Bot
343b2e60f4 Merge pull request #3120 from yuswift/feature/lightweight-membercluster-installation
Feat: support runnig ks-apiserver without redis option && change log level
2020-11-17 11:32:25 +08:00
yuswift
2278132d08 Feat: support runnig ks-apiserver without redis option && change log level
Signed-off-by: yuswift <yuswiftli@yunify.com>
2020-11-17 10:51:07 +08:00
rick
4d19901025 Fix the errors found by go vet
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-17 09:23:07 +08:00
KubeSphere CI Bot
e9f709057a Merge pull request #3042 from wansir/fix-3041
Fix container terminal security risk
2020-11-16 13:35:33 +08:00
KubeSphere CI Bot
e7a5955aa5 Merge pull request #3118 from yuswift/feature/lightweight-membercluster-installation
Feat: support runnig ks-controller-manager without ldap option
2020-11-16 13:34:32 +08:00
yuswift
69a27e40aa Feat: support runnig ks-controller-manager without ldap option
Signed-off-by: yuswift <yuswiftli@yunify.com>
2020-11-16 12:19:07 +08:00
hongming
617e969a55 fix: private key not match public key
Signed-off-by: hongming <talonwan@yunify.com>
2020-11-13 18:40:52 +08:00
KubeSphere CI Bot
0b18c571a4 Merge pull request #3109 from RolandMa1986/fix-e2e
fix e2e build issue
2020-11-13 16:38:32 +08:00
hongming
cd99f78768 Fix container terminal security risk
Signed-off-by: hongming <talonwan@yunify.com>
2020-11-13 16:37:33 +08:00
KubeSphere CI Bot
1cb1eb4f6d Merge pull request #3104 from LinuxSuRen/imporove-issues-template
Make the issues template can keep comment section
2020-11-13 14:28:08 +08:00
Roland.Ma
37abb4f313 fix e2e build issue
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-11-13 02:26:07 +00:00
rick
4bbb18f902 Make the issues template can keep comment section
Always clean the unnecessary part of issues template is really a boring thing. But we can just keep it by using comment syntax of markdown

Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-12 09:45:37 +08:00
KubeSphere CI Bot
b14081ce9f Merge pull request #3073 from RolandMa1986/feat-group-api
feat: group auth, add group & groupbinding api
2020-11-11 17:10:30 +08:00
KubeSphere CI Bot
6736379888 Merge pull request #3032 from RolandMa1986/feat-group-auth-v5
feat: add group and groupbinding controller
2020-11-11 17:05:32 +08:00
Roland.Ma
0a5e04d186 Add UT
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-11-11 05:31:25 +00:00
Roland.Ma
5500e93b5f update comments
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-11-11 05:31:25 +00:00
Roland.Ma
fc5235ae29 refine groupbinding controller
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-11-11 05:31:25 +00:00
Roland.Ma
80f3db3d42 feat: authentication users with group's RoleBindings in API Server
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-11-11 05:31:25 +00:00
Roland.Ma
447a5a562f feat: add group and groupbinding controller
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-11-11 05:31:25 +00:00
KubeSphere CI Bot
6f7e59ca16 Merge pull request #3045 from zackzhangkai/ks-kiali-support-out-cluster
kiali k8s client support out-cluster
2020-11-11 10:49:31 +08:00
Roland.Ma
af271a49ce feat: group auth, add group & groupbinding api
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-11-10 07:19:59 +00:00
zackzhangkai
e4049e4e66 kiali k8s client support out-cluster
Signed-off-by: zackzhangkai <zackzhang@yunify.com>
2020-11-07 17:53:49 +08:00
KubeSphere CI Bot
675823b978 Merge pull request #3087 from yuswift/bugfix/print-configfile-load-error
fix issue #3086
2020-11-06 18:02:37 +08:00
KubeSphere CI Bot
1b0bcb5d63 Merge pull request #3069 from huanggze/master
minor cleanup
2020-11-06 17:49:38 +08:00
KubeSphere CI Bot
aa64c745c9 Merge pull request #3033 from duanjiong/ippool
implement ippool
2020-11-06 17:32:43 +08:00
KubeSphere CI Bot
c86dfbc7ad Merge pull request #3002 from yunkunrao/add_kubelet_pleg_relist_quantile
Add node metric: node_pleg_quantile
2020-11-06 17:24:58 +08:00
KubeSphere CI Bot
ed271f0205 Merge pull request #3046 from shaowenchen/fix_inscm_bool_parameter
fix: adapt to  different parameter types for pipeline
2020-11-06 17:19:45 +08:00
KubeSphere CI Bot
a227f04e84 Merge pull request #3016 from OhBonsai/master
chore: fix typing error
2020-11-05 18:17:24 +08:00
yuswift
51168c730c fix issue #3086
Signed-off-by: yuswift <yuswiftli@yunify.com>
2020-11-05 15:26:12 +08:00
huanggze
10fedfe432 minor cleanup
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-11-03 11:58:16 +08:00
KubeSphere CI Bot
f61d882046 Merge pull request #3050 from FeynmanZhou/master
Fix the out-of-date slack invitation link in the issue and PR templates
2020-11-01 18:26:50 +08:00
FeynmanZhou
2f5cfae35e fix the out-of-date slack invitation link
Signed-off-by: FeynmanZhou <pengfeizhou@yunify.com>
2020-11-01 18:07:48 +08:00
FeynmanZhou
5e9c6fc02a Merge branch 'master' of https://github.com/kubesphere/kubesphere 2020-11-01 11:10:19 +08:00
shaowenchen
635de6da45 fix: adapt to different parameter types for pipeline
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-10-30 15:22:29 +08:00
pengfei
b4ab781439 Merge pull request #3039 from stoneshi-yunify/fix-readme
fix dead links in readme
2020-10-29 11:07:29 +08:00
Duan Jiong
43d1d6f243 implement ippool
1. support vlan ippool management
2. support calico ippool management

Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2020-10-29 09:59:27 +08:00
stoneshi-yunify
b792438106 fix dead links in readme
Signed-off-by: stoneshi-yunify <stoneshi@yunify.com>
2020-10-28 18:02:16 +08:00
KubeSphere CI Bot
abe9975b95 Merge pull request #3029 from wansir/master
refine api docs
2020-10-27 20:01:32 +08:00
hongming
496db42be6 refine api docs
Signed-off-by: hongming <talonwan@yunify.com>
2020-10-27 18:48:36 +08:00
KubeSphere CI Bot
a7d31930f8 Merge pull request #3023 from RolandMa1986/feat-group-auth-crds
feat: group authorization
2020-10-23 10:25:59 +08:00
Roland.Ma
7c6723da46 feat:group authorizetion. Add group and groupbinding crds, generated clientset
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-10-21 08:26:50 +00:00
zryfish
44799ae68a skip reconcile cluster if not join federation (#3021)
Signed-off-by: Jeff <jeffzhang@yunify.com>
2020-10-15 17:11:05 +08:00
KubeSphere CI Bot
ffa995f2a4 Merge pull request #3014 from zackzhangkai/fix_app_status
fix application status
2020-10-15 16:50:26 +08:00
OhBonsai
419d66e7c1 chore: fix typing error
Signed-off-by: OhBonsai <letbonsaibe@gmail.com>
2020-10-14 16:52:43 +08:00
zackzhangkai
d1e7f35b3e fix application status
Signed-off-by: zackzhangkai <zackzhang@yunify.com>
2020-10-13 10:13:51 +08:00
KubeSphere CI Bot
9961a1df60 Merge pull request #2997 from lxm/oauth-aliyunidaas
support aliyun idaas oauth login
2020-10-09 19:50:47 +08:00
KubeSphere CI Bot
686dfef96b Merge pull request #3003 from Howie59/master
Fix for issue #2832
2020-10-09 19:47:47 +08:00
lihaowei
d5c1d93fe5 Merge branch 'master' of https://github.com/kubesphere/kubesphere 2020-10-09 19:32:14 +08:00
min zhang
34d84dc865 fmt (#3004)
Signed-off-by: zhangmin <arminzhang@yunify.com>
2020-10-09 15:00:03 +08:00
lihaowei
2c1fdd35f6 squash err handle
Signed-off-by: lihaowei <haoweili35@gmail.com>
2020-10-09 14:34:10 +08:00
KubeSphere CI Bot
98bcc70b0d Merge pull request #2980 from min-zh/dev
add status deleting of volumesnapshot
2020-10-09 10:25:47 +08:00
KubeSphere CI Bot
5e7561ecaa Merge pull request #2935 from shaowenchen/fix_update_credential
fix: upgrade credential
2020-10-09 10:04:25 +08:00
Rao Yunkun
97b054d99d Add node metric: node_pleg_quantile
Signed-off-by: Rao Yunkun <yunkunrao@yunify.com>
2020-10-06 20:06:27 +08:00
luxingmin
1a39d62f63 support aliyun idaas oauth login
Signed-off-by: luxingmin <luxingmin@hongyaa.com.cn>
2020-09-29 11:14:23 +08:00
KubeSphere CI Bot
a8c9be6dae Merge pull request #2992 from stoneshi-yunify/addreviewer
add stone as reviewer
2020-09-25 17:38:56 +08:00
stoneshi-yunify
320a7dd1a7 add stone as reviewer
Signed-off-by: stoneshi-yunify <stoneshi@yunify.com>
2020-09-25 16:51:26 +08:00
KubeSphere CI Bot
c8e8dc66bb Merge pull request #2987 from zheng1/op_swagger
Add OpenPitrix API in swagger file
2020-09-23 13:48:13 +08:00
Zhengyi Lai
8cb40c46cd Add OpenPitrix API in swagger file
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
2020-09-23 12:08:57 +08:00
KubeSphere CI Bot
84e815f620 Merge pull request #2984 from RolandMa1986/fix-build
optimize docker build
2020-09-22 19:05:02 +08:00
Roland.Ma
979cfdaf38 optimize docker build
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2020-09-22 09:14:52 +00:00
Zhengyi Lai
0689ec6049 Merge pull request #2976 from stoneshi-yunify/fix1109
fix: add nil check for storage class name
2020-09-21 13:21:40 +08:00
zhangmin
20f4c4ba7d add status deleting of volumesnapshot
Signed-off-by: zhangmin <arminzhang@yunify.com>
2020-09-21 11:43:42 +08:00
stoneshi-yunify
7fe78e485b add ut for storageclasses.go
Signed-off-by: stoneshi-yunify <70880165+stoneshi-yunify@users.noreply.github.com>
2020-09-21 10:44:20 +08:00
stoneshi-yunify
81fe75fae2 fix: add nil check for storage class name
Signed-off-by: stoneshi-yunify <70880165+stoneshi-yunify@users.noreply.github.com>
2020-09-14 18:40:07 +08:00
pengfei
6f12f72d3a update Readme-zh to v3.0.0 (#2972)
Signed-off-by: FeynmanZhou <pengfeizhou@yunify.com>
2020-09-14 09:14:42 +08:00
FeynmanZhou
c99badb230 update Readme-zh to v3.0.0
Signed-off-by: FeynmanZhou <pengfeizhou@yunify.com>
2020-09-11 17:04:22 +08:00
KubeSphere CI Bot
ca34a8ce87 Merge pull request #2971 from FeynmanZhou/master
update readme to v3.0.0.
2020-09-11 12:34:06 +08:00
FeynmanZhou
22aa18bfa8 update the URLs to v3.0.0
Signed-off-by: FeynmanZhou <pengfeizhou@yunify.com>
2020-09-10 18:39:13 +08:00
FeynmanZhou
18a945c4b9 update readme to 3.00.
Signed-off-by: FeynmanZhou <pengfeizhou@yunify.com>
2020-09-10 15:47:51 +08:00
zryfish
454caf27dd Create codeql-analysis.yml
Setup codeql analysis
2020-09-10 10:38:10 +08:00
zryfish
05fe1d9e1d Update build.yml (#2968)
Add release branch to pull request ci
2020-09-08 17:45:55 +08:00
shaowenchen
1bd6c7f489 fix: upgrade credential
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-08-28 20:44:24 +08:00
KubeSphere CI Bot
d567f438ff Merge pull request #2934 from shaowenchen/fix_scm_choice
fix: scm choices
2020-08-28 18:04:59 +08:00
shaowenchen
018a18e784 fix: scm choices
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-08-28 17:44:25 +08:00
KubeSphere CI Bot
34d5bee27d Merge pull request #2931 from shaowenchen/fix_credential_sync
fix crendential sync
2020-08-28 17:34:59 +08:00
shaowenchen
2dcabb0bdb fix crendential sync
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-08-28 16:54:07 +08:00
zryfish
f5b3491d7f fix unauthorized if using token kubeconfig (#2930)
Signed-off-by: Jeff <jeffzhang@yunify.com>
2020-08-27 22:51:00 +08:00
KubeSphere CI Bot
d6ab60bdb4 Merge pull request #2910 from shaowenchen/fix_multibranch_sonarqube
fix:multibranch sonarqube missing
2020-08-23 08:07:59 +08:00
shaowenchen
2bdf23ae98 fix:multibranch sonarqube missing
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-08-21 15:21:46 +08:00
KubeSphere CI Bot
fddf7202e8 Merge pull request #2907 from wansir/master
fix: missing role template after upgrade
2020-08-20 23:39:57 +08:00
hongming
66d79aaf75 fix: missing role template after upgrade
Signed-off-by: hongming <talonwan@yunify.com>
2020-08-20 23:06:59 +08:00
zryfish
1fcef6966f fix search node with invalid name bug (#2902)
Signed-off-by: Jeff <jeffzhang@yunify.com>
2020-08-20 15:04:44 +08:00
shaowenchen
8b4028cc30 fix jenkins download (#2898)
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-08-20 09:57:58 +08:00
zryfish
b5d9d29fc6 fix servicemesh strategy not applied bug (#2892)
Signed-off-by: Jeff <jeffzhang@yunify.com>
2020-08-19 14:50:18 +08:00
zryfish
9eba26b707 fix node resources requests not returned bug (#2877)
Signed-off-by: Jeff <jeffzhang@yunify.com>
2020-08-14 17:34:20 +08:00
KubeSphere CI Bot
2aa120f8f5 Merge pull request #2871 from huanggze/master
fix: time skew in monitoring responses
2020-08-14 09:42:55 +08:00
huanggze
0f09020359 fix: time skew in monitoring responses
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-08-13 17:33:36 +08:00
zryfish
95cd23b7a3 fix servicemesh controller nil pointer exception (#2870)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-08-13 15:33:00 +08:00
zryfish
6f367e4f22 fix some swagger json errors (#2869)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-08-13 13:24:58 +08:00
KubeSphere CI Bot
2ac81e9962 Merge pull request #2852 from wansir/iam
fix: can't list pipeline if no global role assigned
2020-08-12 14:18:55 +08:00
hongming
aa6713c2d0 can't list pipeline if no global role assigned
Signed-off-by: hongming <talonwan@yunify.com>
2020-08-12 13:58:24 +08:00
KubeSphere CI Bot
3f6af47013 Merge pull request #2846 from huanggze/master
fix: exported logs are incomplete
2020-08-12 10:45:55 +08:00
huanggze
57adb94911 fix: exported logs are incomplete
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-08-11 15:12:46 +08:00
KubeSphere CI Bot
7257455c40 Merge pull request #2839 from huanggze/master
fix: resources_filter not working for workload metric query
2020-08-11 15:01:54 +08:00
KubeSphere CI Bot
6a28091284 Merge pull request #2827 from zheng1/op_bugfix1
Bugfix: catch error from ParseConditions and refactor ParseConditions
2020-08-11 12:53:55 +08:00
zryfish
2064340c3a fix job search bug (#2840)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-08-11 11:20:58 +08:00
huanggze
575513182b fix: resources_filter not working for workload metric query
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-08-11 11:19:20 +08:00
zryfish
21a5f83082 fix unable to setup webhook server under leader election (#2830)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-08-10 15:14:20 +08:00
Zhengyi Lai
3c48abcc47 Bugfix: catch error from ParseConditions and refactor ParseConditions
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
2020-08-10 13:54:55 +08:00
KubeSphere CI Bot
48e77cbb79 Merge pull request #2798 from huanggze/master
fix: calulating days between two timestamps
2020-08-10 10:33:54 +08:00
KubeSphere CI Bot
f9d7a4f62a Merge pull request #2821 from wansir/iam
fix member detail API
2020-08-10 10:19:54 +08:00
hongming
9e35ff1678 fix member detail API
Signed-off-by: hongming <talonwan@yunify.com>
2020-08-09 10:52:28 +08:00
KubeSphere CI Bot
f64cdf733f Merge pull request #2796 from wansir/iam
fix password modify logic
2020-08-07 18:20:53 +08:00
hongming
b188dcb8a2 fix password modify logic
Signed-off-by: hongming <talonwan@yunify.com>
2020-08-07 16:55:19 +08:00
huanggze
76e7805642 fix: calulating days between two dates
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-08-07 04:12:47 +08:00
KubeSphere CI Bot
50a50e5213 Merge pull request #2782 from zryfish/fix_miss_caching_federatedworkspace
fix mistakenly caching federatedworkspace in non multicluster env
2020-08-06 18:24:53 +08:00
Jeff
028deb0482 fix mistakenly cache federatedworkspace in non multicluster env
Signed-off-by: Jeff <zw0948@gmail.com>
2020-08-06 18:11:48 +08:00
KubeSphere CI Bot
723e9e27d7 Merge pull request #2770 from wansir/tenant
fix workspacetemplate patch API not working
2020-08-06 16:31:53 +08:00
hongming
e8c1acdcf3 fix workspacetemplate patch API not working
Signed-off-by: hongming <talonwan@yunify.com>
2020-08-06 16:17:49 +08:00
zryfish
9ef0a87e4a fix generated kubeconfig bug (#2776)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-08-05 17:48:05 +08:00
zryfish
dbc33fe5d2 add license header (#2761)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-08-05 15:54:17 +08:00
hongming
719c687fcb fix kubectl pod creation failed (#2771)
Signed-off-by: hongming <talonwan@yunify.com>
2020-08-05 11:36:59 +08:00
KubeSphere CI Bot
fd4790a64f Merge pull request #2766 from wansir/tenant
fix kubectl pod owner reference
2020-08-04 17:35:52 +08:00
hongming
0448522901 fix kubectl pod owner reference
Signed-off-by: hongming <talonwan@yunify.com>
2020-08-04 16:32:04 +08:00
KubeSphere CI Bot
b030e9c2dd Merge pull request #2760 from wansir/tenant
fix labelSelector not working
2020-08-04 11:48:53 +08:00
hongming
1d9c9bc0c2 fix labelSelector not working
Signed-off-by: hongming <talonwan@yunify.com>
2020-08-04 11:35:53 +08:00
zryfish
1cfac3721d Update stale.yml 2020-08-04 11:01:45 +08:00
KubeSphere CI Bot
22ee45d796 Merge pull request #2759 from wansir/iam
fix role patch API
2020-08-04 09:56:52 +08:00
zryfish
774dc78a10 Update stale.yml 2020-08-04 09:20:15 +08:00
hongming
fbfbb8b8d2 fix role patch API
Signed-off-by: hongming <talonwan@yunify.com>
2020-08-03 22:33:54 +08:00
zryfish
2d60c57942 Rename stale.yaml to stale.yml 2020-08-03 15:53:10 +08:00
zryfish
171322040e rename stale bot configuration file name (#2753)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-08-03 15:46:50 +08:00
zryfish
56fd0deef3 fix some bugs (#2751)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-08-03 14:49:40 +08:00
KubeSphere CI Bot
f43047069c Merge pull request #2730 from wansir/iam
remove LastAppliedConfig annotation after password encrypted
2020-08-03 13:02:52 +08:00
zryfish
0a893d20bc fix missing cache federatedapplication (#2733)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-08-01 13:22:39 +08:00
KubeSphere CI Bot
b74d5a336b Merge pull request #2729 from shaowenchen/add_query_parameter_for_devops_credential
add query parameter for devops credential
2020-08-01 11:18:51 +08:00
KubeSphere CI Bot
2dd0efb092 Merge pull request #2719 from wansir/rolebase
initial role differentiation of DevOps project and namespace
2020-08-01 09:51:52 +08:00
hongming
6acea75a76 remove LastAppliedConfig annotation after password encrypted
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-31 23:57:42 +08:00
hongming
03e7987655 initial role differentiation of DevOps project and namespace
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-31 23:27:20 +08:00
shaowenchen
b82dc56eee add query parameter for devops credential
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-07-31 20:36:04 +08:00
KubeSphere CI Bot
2c2f01d018 Merge pull request #2727 from shaowenchen/improvement_promopt_info
add more details info for jenkins api
2020-07-31 20:35:51 +08:00
zryfish
bf55d23de9 add missing federated resources (#2728)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-07-31 18:22:23 +08:00
shaowenchen
9cb4935b92 add more details info for jenkins api
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-07-31 18:00:15 +08:00
zryfish
4702beb6ac add federated resource api (#2725)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-07-31 17:12:58 +08:00
KubeSphere CI Bot
74533cb533 Merge pull request #2718 from wanjunlei/master
fix bug auditing can't search anything using keyword with '-' for fuzzy
2020-07-31 10:12:51 +08:00
wanjunlei
e71697f864 fix bug auditing can't search anything using keyword with '-' for fuzzy
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2020-07-30 22:39:14 +08:00
KubeSphere CI Bot
12ec25d449 Merge pull request #2685 from wansir/devops
legacy API compatibility
2020-07-30 20:13:51 +08:00
hongming
7884bcef95 legacy API compatibility
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-30 18:30:41 +08:00
zryfish
114fad5eb0 sanitizer error message to avoid emitting xss error message (#2712)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-07-30 17:45:29 +08:00
KubeSphere CI Bot
67c6a8c510 Merge pull request #2672 from wanjunlei/auditing-log
make ws admin can be aware of anything happened in its workspace.
2020-07-30 13:33:51 +08:00
KubeSphere CI Bot
5b02440628 Merge pull request #2708 from wansir/tenant
fix tenant resource list API
2020-07-30 13:17:51 +08:00
hongming
13ffbe8968 fix tenant resource list API
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-30 11:48:55 +08:00
KubeSphere CI Bot
b71ce47788 Merge pull request #2706 from wansir/iam
fix request info resource scope
2020-07-30 10:09:51 +08:00
KubeSphere CI Bot
3a703d4371 Merge pull request #2703 from shaowenchen/fix_to_json
add parameter for to_json
2020-07-30 09:52:52 +08:00
KubeSphere CI Bot
9834baf230 Merge pull request #2688 from huanggze/master
Allow global admins to view deleted namespace logs
2020-07-30 09:50:51 +08:00
hongming
02c71e9b79 fix request info resource scope
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-30 00:23:29 +08:00
zryfish
3c8fbe39b9 fix websocket lost query string bug (#2705)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-07-29 21:51:55 +08:00
wanjunlei
6f90e24b83 change resourceGetter to devopsGetter
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2020-07-29 19:31:20 +08:00
wanjunlei
9306b6abf7 change match_phrase_prefix to match_phrase
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2020-07-29 18:48:34 +08:00
wanjunlei
b5392b97c0 add ns and ws query parameter to es query body
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2020-07-29 18:48:34 +08:00
wanjunlei
b51a5c22f2 resolve conversation
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2020-07-29 18:48:34 +08:00
wanjunlei
713c646bfd make ws admin aware of anything happened in its workspace.
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2020-07-29 18:48:34 +08:00
shaowenchen
62a2cc02b0 add parameter for to_json
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-07-29 18:12:53 +08:00
zryfish
388729e9b1 fix incorrect error log (#2694)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-07-29 13:25:52 +08:00
huanggze
70d0d5fe18 Allow global admins to view deleted namespace logs
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-07-29 10:26:38 +08:00
zryfish
93b123c1f0 add last login time for user (#2679)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-07-28 17:26:13 +08:00
KubeSphere CI Bot
e4510972dd Merge pull request #2676 from wansir/devops
fix panic
2020-07-28 16:03:51 +08:00
hongming
e494cae010 fix panic
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-28 14:16:23 +08:00
KubeSphere CI Bot
822f5f25d7 Merge pull request #2599 from duanjiong/networkpolicy-fix
add new parameters allowedIngressNamespaces for user customization
2020-07-28 14:05:51 +08:00
KubeSphere CI Bot
324bc38ea2 Merge pull request #2668 from min-zh/storage-capability
get storage capapbility from provioner capability first
2020-07-28 11:21:50 +08:00
zhangmin
a87892f901 get storage capapbility from provioner capability first
Signed-off-by: zhangmin <arminzhang@yunify.com>
2020-07-28 11:15:57 +08:00
KubeSphere CI Bot
659316da9a Merge pull request #2661 from wansir/devops
fix: devops IAM bugs
2020-07-28 11:05:51 +08:00
Duan Jiong
eb21606602 networkpolicy: add new parameters allowedIngressNamespaces for user customization
Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2020-07-28 10:55:16 +08:00
hongming
bda48c240f fix: devop IAM bugs
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-28 10:01:50 +08:00
KubeSphere CI Bot
afcd0efea2 Merge pull request #2629 from wansir/authorizer
Reorder request filters
2020-07-26 23:33:50 +08:00
zryfish
c5a63500a4 add application controller (#2652)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-07-26 23:11:56 +08:00
KubeSphere CI Bot
d4272ef4c5 Merge pull request #2639 from wansir/bug
fix: auth failed response
2020-07-26 19:26:50 +08:00
hongming
ffc78cbb94 fix: auth failed response
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-26 18:44:37 +08:00
KubeSphere CI Bot
5ba910ce37 Merge pull request #2634 from zheng1/refactor_op
Bugfix: the count of uncategory apps is incorrect
2020-07-26 14:23:50 +08:00
Zhengyi Lai
519d008db9 Bugfix: the count of uncategory apps is incorrect
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
2020-07-26 13:11:39 +08:00
hongming
f8c0e9addc Reorder request filters
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-26 10:35:22 +08:00
KubeSphere CI Bot
72e9f7da90 Merge pull request #2596 from wanjunlei/master
fix bug multi tenant auditing, logging and event is incorrect
2020-07-25 22:30:50 +08:00
wanjunlei
bf87894512 resolve conversation
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2020-07-25 18:15:21 +08:00
KubeSphere CI Bot
9bb5427ee8 Merge pull request #2613 from wanjunlei/kubectl
add host local time to kubectl from toolbox
2020-07-25 14:29:50 +08:00
zryfish
051893eb71 Use 429 for auth limit exceeded requests (#2591)
* fix login with email

Signed-off-by: Jeff <zw0948@gmail.com>

* use 429 for auth limit exceeded error

Signed-off-by: Jeff <zw0948@gmail.com>
2020-07-25 14:27:03 +08:00
wanjunlei
31d615fa84 add host local time to kubectl from toolbox
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2020-07-25 13:44:40 +08:00
wanjunlei
6585881d01 fix bug multi tenant auditing, logging and event is incorrect
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2020-07-25 12:19:29 +08:00
KubeSphere CI Bot
b814c5ba4f Merge pull request #2609 from wansir/master
fix RBAC authorizer
2020-07-25 10:09:50 +08:00
hongming
982ea74185 fix RBAC authorizer
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-25 09:51:39 +08:00
KubeSphere CI Bot
14462c3842 Merge pull request #2585 from shaowenchen/add_total_runs
fix query parameters
2020-07-24 17:28:50 +08:00
zryfish
93b7c30aea fix login with email (#2584)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-07-24 15:51:30 +08:00
shaowenchen
9f9d276cef fix query parameters
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-07-24 15:46:54 +08:00
zryfish
f1146f5d6c fix cannot create success login (#2576)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-07-24 13:09:38 +08:00
zryfish
06932926a0 fix creating login records for user failed (#2572)
Signed-off-by: Jeff <zw0948@gmail.com>

Co-authored-by: hongming <talonwan@yunify.com>
2020-07-23 23:36:11 +08:00
zryfish
3d74bb0589 login record CRD (#2565)
* Signed-off-by: hongming <talonwan@yunify.com>

support ldap identity provider

Signed-off-by: hongming <talonwan@yunify.com>

* add login record

Signed-off-by: Jeff <zw0948@gmail.com>

Co-authored-by: hongming <talonwan@yunify.com>
2020-07-23 22:10:39 +08:00
KubeSphere CI Bot
50a6c7b2b5 Merge pull request #2567 from zheng1/refactor_op
Bugfix: create repo have no workspace
2020-07-23 21:45:50 +08:00
Zhengyi Lai
36ec2cdc9e Bugfix: create repo have no workspace
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
2020-07-23 21:03:13 +08:00
KubeSphere CI Bot
616fcb1740 Merge pull request #2334 from wansir/kubectl-image
Configuring kubectl image from command line
2020-07-23 15:00:49 +08:00
KubeSphere CI Bot
8699fc806b Merge pull request #2544 from wansir/status-code
conflict status code
2020-07-23 09:00:49 +08:00
KubeSphere CI Bot
971c1af0ef Merge pull request #2532 from junotx/master
fix events search bug when no events
2020-07-23 08:59:50 +08:00
KubeSphere CI Bot
d31a09e8c0 Merge pull request #2543 from wansir/federatednamespaces
fix federatednamespace resource scope
2020-07-23 08:55:49 +08:00
hongming
f7ea1603c6 conflict status code
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-23 03:09:29 +08:00
hongming
d1f98b3289 Configuring kubectl image from command line
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-23 02:29:56 +08:00
hongming
c103f47abd fix federatednamespace resource scope
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-22 22:42:53 +08:00
junotx
393386a32a fix events search bug when no events
Signed-off-by: junotx <junotx@126.com>
2020-07-22 21:40:37 +08:00
zryfish
f1af770965 Don't fail ci if coverage upload failed 2020-07-22 20:29:48 +08:00
KubeSphere CI Bot
da66157482 Merge pull request #2542 from zheng1/refactor_op
Bugfix: list repos
2020-07-22 19:34:50 +08:00
zryfish
24c06da9bc fix cronjob sort bug, daemonsets status bug, add ingress to v1alpha3 (#2541)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-07-22 19:33:25 +08:00
Zhengyi Lai
90e6565327 Bugfix: list repos
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
2020-07-22 18:57:07 +08:00
KubeSphere CI Bot
1096eb8adb Merge pull request #2498 from wansir/federatednamespaces
add tenant federated namespaces API
2020-07-22 15:23:49 +08:00
KubeSphere CI Bot
2a388ad493 Merge pull request #2533 from min-zh/storage
fix pvc count of sc
2020-07-22 14:52:49 +08:00
KubeSphere CI Bot
26ac41d086 Merge pull request #2517 from shaowenchen/add_total_runs
add total num for runs
2020-07-22 13:19:49 +08:00
zhangmin
997cb0930d fix pvc count of sc
Signed-off-by: zhangmin <arminzhang@yunify.com>
2020-07-22 11:09:04 +08:00
shaowenchen
85f22cc2e1 add total num for runs
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-07-22 10:53:06 +08:00
KubeSphere CI Bot
ae2f4a8abe Merge pull request #2526 from wansir/log
fix: exit without error log
2020-07-22 10:40:49 +08:00
hongming
a42fa6afaf fix: exit without error log
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-21 19:15:21 +08:00
zryfish
35989d911c use root for controller manager cause we need to access csi plugins sock (#2505)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-07-20 22:36:18 +08:00
KubeSphere CI Bot
bc419d02cb Merge pull request #2466 from wanjunlei/auditing-es
reuse package esutil to improve auditing log search performance
2020-07-20 22:21:50 +08:00
hongming
3525fc5507 add federatednamespaces tenant API
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-20 17:39:46 +08:00
KubeSphere CI Bot
b2402105f8 Merge pull request #2441 from junotx/master
lazy init events client and optimize events search
2020-07-20 14:56:49 +08:00
KubeSphere CI Bot
bd6f46a5c9 Merge pull request #2427 from wanjunlei/auditing-log
ignore dryRun k8s request when auditing
2020-07-20 14:55:49 +08:00
zryfish
71b8d96a45 change image user kubesphere to group docker (#2487)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-07-20 14:54:04 +08:00
zryfish
8241a0f9c5 cache v1beta1 crd instead of v1 version, cause v1 is not available in kubernetes v1.15.x (#2482)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-07-20 10:03:26 +08:00
KubeSphere CI Bot
9ed96cddc3 Merge pull request #2480 from wansir/2475
fix: Change user role failed
2020-07-20 09:45:49 +08:00
hongming
d7440ae0f9 fix: Change user role failed
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-19 11:19:26 +08:00
zryfish
89f850466d fix host cluster reconcile bug (#2479)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-07-19 01:22:32 +08:00
wanjunlei
ccc6ba1e80 ignore unavailable index
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2020-07-17 18:14:09 +08:00
wanjunlei
5d99024f0b resovle conversation
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2020-07-17 15:39:52 +08:00
wanjunlei
a0255d6409 ignore dryRun k8s request when auditing
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2020-07-17 15:39:36 +08:00
wanjunlei
e913957e27 reuse package esutil to improve auditing log search performance
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2020-07-17 15:33:17 +08:00
KubeSphere CI Bot
b7eb64dd95 Merge pull request #2446 from wansir/label-selector
fix: migration some resource API to v1alpha3
2020-07-17 12:59:48 +08:00
KubeSphere CI Bot
f706d264dd Merge pull request #2392 from shaowenchen/fix_devops
add interface for iam
2020-07-17 12:57:48 +08:00
zryfish
97580d3776 use 8443 for webhook port (#2458)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-07-17 12:56:21 +08:00
zryfish
a1767d4245 use non root user for building image (#2449)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-07-16 18:52:51 +08:00
hongming
bd22856dbc fix: migration some resource API to v1alpha3
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-16 18:36:32 +08:00
KubeSphere CI Bot
fcea347780 Merge pull request #2368 from shaowenchen/add_dowload
using /v1alpha2/jenkins replace /jenkins.kubesphere.io api
2020-07-16 17:11:48 +08:00
KubeSphere CI Bot
f04135a86e Merge pull request #2419 from wanjunlei/auditing-es
lazy initializing es client of auditing
2020-07-16 17:10:48 +08:00
KubeSphere CI Bot
9e1dc89ced Merge pull request #2439 from wansir/node
fix: node status filter
2020-07-16 17:08:48 +08:00
KubeSphere CI Bot
34aec8df65 Merge pull request #2416 from min-zh/storage-capability
fix "Failed to list *v1beta1.VolumeSnapshotClass" on k8s 1.16
2020-07-16 16:51:48 +08:00
junotx
53eabed3ca lazy init events client and optimize events search 2020-07-16 15:15:30 +08:00
hongming
4f3007c143 fix: node status filter
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-16 12:10:59 +08:00
zhangmin
1549dd396f fix "Failed to list *v1beta1.VolumeSnapshotClass" on k8s 1.16 2020-07-16 11:36:47 +08:00
shaowenchen
895d8b838f add interface for iam
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-07-15 17:51:08 +08:00
KubeSphere CI Bot
de5f4c36e0 Merge pull request #2423 from huanggze/multi-indices
significantly improve log search performance
2020-07-15 17:09:47 +08:00
shaowenchen
6090874cc4 using /jenkins replace jenkins.kubesphere.io api
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-07-15 17:06:54 +08:00
KubeSphere CI Bot
42b543ec5e Merge pull request #2415 from wansir/kubeconfig
fix: empty server host
2020-07-15 10:29:48 +08:00
huanggze
6a5738d66a significantly improve log search performance
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-07-14 19:42:48 +08:00
wanjunlei
1c436f8b48 lazy initializing es client of auditing 2020-07-14 15:39:30 +08:00
hongming
311c5289aa fix: empty server host
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-14 14:00:38 +08:00
KubeSphere CI Bot
0f63b5ba5f Merge pull request #2287 from huanggze/es
lazy initializing es client
2020-07-14 12:08:47 +08:00
KubeSphere CI Bot
fea34315d0 Merge pull request #2404 from huanggze/sort
fix: cannot sort in ascending order
2020-07-14 12:03:48 +08:00
KubeSphere CI Bot
5fb22a23ff Merge pull request #2408 from duanjiong/networkpolicy-fix
modify the field networkIsolate in workspace
2020-07-14 12:02:47 +08:00
Duan Jiong
7e8bef6bfd modify the field networkIsolate in workspace
Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2020-07-13 19:13:26 +08:00
huanggze
4df7ae2636 lazy initializing es client
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-07-13 17:06:15 +08:00
huanggze
b4f899b337 fix: cannot sorting in ascending order
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-07-13 12:01:56 +08:00
KubeSphere CI Bot
78159e9636 Merge pull request #2333 from wansir/workspacerole-ownerref
fix: resource lifecycle
2020-07-10 14:26:47 +08:00
hongming
ed8bb437e8 fix: resource lifecycle
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-10 13:23:18 +08:00
zryfish
eeaa4b646a use more friendly error messages (#2364) 2020-07-09 18:33:24 +08:00
KubeSphere CI Bot
b479195aea Merge pull request #2373 from wansir/2358
fix: forbidden update user
2020-07-09 18:28:47 +08:00
KubeSphere CI Bot
013b89df4f Merge pull request #2370 from shaowenchen/fix_kubeconfig
fix sync kubeconfig bug
2020-07-09 18:27:47 +08:00
hongming
3c6ca85e30 fix: forbidden update user
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-09 18:25:30 +08:00
zryfish
97b619452b change error message when there is no proxy address (#2372) 2020-07-09 18:06:37 +08:00
shaowenchen
fbaeddb897 fix sync kubeconfig bug
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-07-09 17:50:13 +08:00
KubeSphere CI Bot
f187f97c76 Merge pull request #2353 from zheng1/refactor_op
Add /workspaces/{workspace}/apps/{app}
2020-07-09 16:00:46 +08:00
Zhengyi Lai
fdb22d0191 Bugfix: create app within user
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
2020-07-09 10:34:11 +08:00
zryfish
7516019be5 fix typo (#2355) 2020-07-09 00:31:24 +08:00
zryfish
693a4143db reconcile host cluster (#2354)
print friendly error when component failed

update dockerfile
2020-07-08 23:55:13 +08:00
Zhengyi Lai
f53fc243f5 Add /workspaces/{workspace}/apps/{app} 2020-07-08 23:24:35 +08:00
hongming
99aff3c7da fix: resource scope (#2280)
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-07 15:24:10 +08:00
KubeSphere CI Bot
d50e59bc9e Merge pull request #2324 from wanjunlei/auditing
make the ResponseCapture implements CloseNotify interface
2020-07-07 14:38:46 +08:00
KubeSphere CI Bot
a8432d1881 Merge pull request #2322 from wansir/fix-636
fix: DaemonSet status search returns wrong result
2020-07-07 14:37:46 +08:00
KubeSphere CI Bot
cdd78e8bcd Merge pull request #2264 from wansir/iam
fix: password modify
2020-07-07 14:17:45 +08:00
hongming
ddd6e1aac8 fix: Daemonset status search returns wrong result
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-06 22:08:57 +08:00
wanjunlei
cb5f98cf97 make the ResponseCapture implements CloseNotify interface 2020-07-06 22:06:32 +08:00
KubeSphere CI Bot
ff329e1548 Merge pull request #2318 from wansir/op
revert openpitrix API
2020-07-06 21:24:45 +08:00
hongming
9e71c58472 revert openpitrix API
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-06 21:16:14 +08:00
calvinyv
c3700b78d9 Merge pull request #2265 from min-zh/storage-capability
capability for non CSI storage
2020-07-06 19:36:22 +08:00
zhangmin
052b1b5f25 capability for non CSI storage 2020-07-06 16:01:57 +08:00
hongming
77a3722b4e fix: password modify
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-06 15:12:11 +08:00
KubeSphere CI Bot
c870209edd Merge pull request #2293 from zheng1/refactor_op
Refactor OpenPitrix API path
2020-07-06 11:04:45 +08:00
KubeSphere CI Bot
5223362cc8 Merge pull request #2290 from wansir/requestinfo
fix: implicit workspace info in query
2020-07-06 11:02:45 +08:00
hongming
b52db8732b fix: implicit workspace info in query
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-03 21:14:52 +08:00
Zhengyi Lai
ebca5a0091 Refactor OpenPitrix API path
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
2020-07-03 19:14:25 +08:00
zryfish
3c99b3ca9e fix issue #2289 Can't create fed project (#2291) 2020-07-03 18:06:02 +08:00
KubeSphere CI Bot
86a027e496 Merge pull request #2288 from wansir/clusters
fix: federated workspace cluster selector
2020-07-02 21:56:45 +08:00
hongming
8515e01f55 fix: federated workspace cluster selector
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-02 21:38:04 +08:00
KubeSphere CI Bot
031d6b3b6a Merge pull request #2270 from wansir/ldap
fix: synchronize users to LDAP
2020-07-02 17:54:44 +08:00
hongming
48f80d8c1a fix: Synchronize users to LDAP
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-02 15:43:21 +08:00
KubeSphere CI Bot
38a4bc7a26 Merge pull request #2258 from duanjiong/networkpolicy-fix
fix nsnp webhook to validate all fileds in it
2020-07-01 14:40:44 +08:00
KubeSphere CI Bot
550e9c1f8f Merge pull request #2273 from Sherlock113/link630
Centos version and link change in readme
2020-06-30 12:47:43 +08:00
sherlock
975eecac9d centos version and link change in readme
Signed-off-by: sherlock <sherlockxu@yunify.com>
2020-06-30 12:19:05 +08:00
KubeSphere CI Bot
2e09566f04 Merge pull request #2260 from wanjunlei/auditing
fix bug auditing search error when es index does not exist
2020-06-30 11:25:43 +08:00
wanjunlei
c4dcd086d0 fix bug auditing search error when es index is not exist 2020-06-28 16:44:44 +08:00
Duan Jiong
655fd26cbf fix nsnp webhook to validate all fileds in it
such as ipblock, service.
And the crd openAPIV3Schema could not validate all scenarios

Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2020-06-28 09:44:05 +08:00
KubeSphere CI Bot
52abbeb355 Merge pull request #2227 from wanjunlei/master
process audit information for resource creating requests
2020-06-27 20:51:43 +08:00
KubeSphere CI Bot
2a05365871 Merge pull request #2257 from wanjunlei/auditing-authority
add resourcescope to AttributesRecord when determine whether the user…
2020-06-27 20:45:42 +08:00
KubeSphere CI Bot
eb1001d2b8 Merge pull request #2256 from huanggze/role
logging: update rolebinding check
2020-06-27 20:43:43 +08:00
KubeSphere CI Bot
d5e58c1338 Merge pull request #2254 from junotx/master
fix: listIntersectedNamespaces for observability
2020-06-27 20:41:43 +08:00
KubeSphere CI Bot
9615f1f46b Merge pull request #2253 from wanjunlei/auditing
fix wrong total audit event number
2020-06-27 20:38:43 +08:00
KubeSphere CI Bot
dda1bfeecf Merge pull request #2252 from wansir/federatedworkspaces
fix: federatedworkspace clusterSelector zero value
2020-06-27 20:37:44 +08:00
wanjunlei
0e6277ed66 add resourcescope to AttributesRecord when determine whether the user can list namespace 2020-06-27 19:21:00 +08:00
wanjunlei
7338b81254 Delete modification of permission and submit as a pr separately 2020-06-27 11:13:26 +08:00
huanggze
b92e768beb logging: update rolebinding check
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-06-27 10:37:59 +08:00
wanjunlei
9a02d77093 add resourcescope to AttributesRecord when determine whether the user can list namespace 2020-06-24 22:55:33 +08:00
junotx
f0ae82793e fix: listIntersectedNamespaces for observability 2020-06-24 19:16:22 +08:00
wanjunlei
dba32a1c5b fix bug total result of auditing time topology error 2020-06-24 16:26:51 +08:00
hongming
a0a53a69af fix: federatedworkspace clusterSelector zero value
Signed-off-by: hongming <talonwan@yunify.com>
2020-06-24 16:03:08 +08:00
KubeSphere CI Bot
d91047588f Merge pull request #2245 from huanggze/master
update metrics
2020-06-24 10:48:42 +08:00
wanjunlei
37346150d3 resolve conversation 2020-06-23 16:26:24 +08:00
huanggze
28887b65f1 update metrics
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-06-23 12:20:28 +08:00
zryfish
ad1471a4a7 only run virtualservice and destinationrule controller when servicemesh is enabled (#2243) 2020-06-23 11:48:50 +08:00
KubeSphere CI Bot
a5d77abdab Merge pull request #2244 from zheng1/op_bugfix
Add API for Describe the specified application of the namespace
2020-06-22 21:47:42 +08:00
Zhengyi Lai
6fecd62f13 Add API for Describe the specified application of the namespace
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
2020-06-22 20:11:38 +08:00
zryfish
48081f91af fix kubeapiserver proxy rejects all dryRun requests (#2241) 2020-06-22 16:37:52 +08:00
zryfish
5caee71b25 fix kubeapiserver proxy rejects all dryRun requests (#2240) 2020-06-22 14:24:59 +08:00
KubeSphere CI Bot
60444ba945 Merge pull request #2233 from pengcong06/op_listapp
feat: add api list application
2020-06-19 18:46:41 +08:00
pengcong06
8970fffedf feat: add api list application 2020-06-19 18:39:49 +08:00
KubeSphere CI Bot
a5a6d48fdc Merge pull request #2232 from huanggze/patch-2
update comment
2020-06-19 17:41:41 +08:00
KubeSphere CI Bot
42422710e0 Merge pull request #2231 from junotx/master
fix: total in histogram response of events search
2020-06-19 17:40:41 +08:00
KubeSphere CI Bot
e1fd9492a9 Merge pull request #2230 from wansir/master
fix: multi-cluster proxy authentication
2020-06-19 17:38:41 +08:00
Guangzhe Huang
1fcb5116df update comment 2020-06-19 16:55:39 +08:00
junotx
217dd4f713 fix: total in histogram response of events search 2020-06-19 16:20:17 +08:00
hongming
ee741858b6 fix: multi-cluster proxy authentication
Signed-off-by: hongming <talonwan@yunify.com>
2020-06-19 15:20:43 +08:00
KubeSphere CI Bot
0493a352dc Merge pull request #2225 from wansir/controller-bug
fix: workspace label missing after update
2020-06-19 10:23:40 +08:00
wanjunlei
7393ef91fa processing audit information of non-standard request
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2020-06-18 22:56:25 +08:00
hongming
618a4bb424 fix: workspace label missing after update
Signed-off-by: hongming <talonwan@yunify.com>
2020-06-18 15:23:28 +08:00
KubeSphere CI Bot
197591baea Merge pull request #2219 from wansir/workspacerole-patch
add role patch API
2020-06-18 11:45:40 +08:00
hongming
56cf6d1028 add role patch API
Signed-off-by: hongming <talonwan@yunify.com>
2020-06-18 11:31:55 +08:00
zryfish
b661e0d1b6 fix cluster import validation bug (#2223) 2020-06-18 10:54:20 +08:00
KubeSphere CI Bot
0ac6d069dc Merge pull request #2221 from wansir/master
fix: controller panic
2020-06-17 19:34:40 +08:00
hongming
1f23f2ad8b fix: controller panic
Signed-off-by: hongming <talonwan@yunify.com>
2020-06-17 18:57:10 +08:00
KubeSphere CI Bot
2f6f37b158 Merge pull request #2217 from wansir/master
fix: workspace cluster authorize
2020-06-17 16:57:40 +08:00
KubeSphere CI Bot
cc3554d049 Merge pull request #2218 from wansir/label-filter
fix: label filter logic
2020-06-17 16:51:40 +08:00
KubeSphere CI Bot
85d08dede8 Merge pull request #2216 from wanjunlei/auditing
fix the bug "Cannot read property 'get' of undefined"
2020-06-17 16:39:40 +08:00
hongming
01944c05ee fix: label filter logic
Signed-off-by: hongming <talonwan@yunify.com>
2020-06-17 16:11:22 +08:00
hongming
8aa934bfb7 fix: workspace cluster authorize
Signed-off-by: hongming <talonwan@yunify.com>
2020-06-17 13:10:11 +08:00
wanjunlei
0933e2f185 add test 2020-06-17 09:48:56 +08:00
wanjunlei
bdb123b95a fix the bug "Cannot read property 'get' of undefined" 2020-06-17 00:04:28 +08:00
KubeSphere CI Bot
692271bb56 Merge pull request #2212 from wansir/workspace-manager
fix: auto create workspace manager rolebinding
2020-06-16 18:15:40 +08:00
KubeSphere CI Bot
85581a4f57 Merge pull request #2206 from wansir/label-filter
fix: label filter
2020-06-16 18:12:40 +08:00
hongming
203fde784a fix: auto create workspace manager rolebinding
Signed-off-by: hongming <talonwan@yunify.com>
2020-06-16 16:30:40 +08:00
hongming
c7a9f103ee fix: label filter
Signed-off-by: hongming <talonwan@yunify.com>
2020-06-16 13:02:34 +08:00
zryfish
5d9542025a create openpitrix runtime when new cluster added (#2204) 2020-06-15 23:17:16 +08:00
KubeSphere CI Bot
bef5eb46b1 Merge pull request #2164 from wansir/controller
improve multicluster resource controller
2020-06-15 22:43:40 +08:00
hongming
4fcaa78b45 improve multicluster resource controller
Signed-off-by: hongming <talonwan@yunify.com>
2020-06-15 21:40:24 +08:00
KubeSphere CI Bot
8c5e022450 Merge pull request #2203 from zheng1/refactor_op
Bugfix: UpsertRuntime create wrong runtime_id
2020-06-15 21:39:40 +08:00
Zhengyi Lai
887186b7b5 Bugfix: UpsertRuntime create wrong runtime_id
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
2020-06-15 21:10:35 +08:00
KubeSphere CI Bot
977e30700e Merge pull request #2187 from wanjunlei/master
add audit components
2020-06-15 11:40:40 +08:00
KubeSphere CI Bot
0ff0ab3f10 Merge pull request #2190 from duanjiong/networkpolicy-fix
only accept validated CIDR in namespace networkpolicy
2020-06-15 11:37:40 +08:00
KubeSphere CI Bot
61d827db54 Merge pull request #2195 from zheng1/refactor_op
Refactor with OpenPitrix
2020-06-15 11:06:40 +08:00
wanjunlei
a3561550bb modify annotation of Event 2020-06-14 11:25:28 +08:00
wanjunlei
b96537b27f delete auditing controller 2020-06-13 17:42:27 +08:00
wanjunlei
584bdda50e Add two elements Message and Devops into Event struct.
Pass the event object instead of RequestInfo by request context to request handler.
2020-06-13 17:13:55 +08:00
Zhengyi Lai
3778abf767 Cleanup namespace controller 2020-06-13 00:32:13 +08:00
KubeSphere CI Bot
ce55e44ee9 Merge pull request #2197 from zheng1/cluster_network
Add option to enable network policy or not
2020-06-12 15:53:40 +08:00
Zhengyi Lai
e1e2b6b5e4 Remove WeaveScopeHost from network
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
2020-06-12 15:23:00 +08:00
Zhengyi Lai
1055df5fce Add option to enable network policy or not 2020-06-12 15:12:38 +08:00
KubeSphere CI Bot
df36ae5c0e Merge pull request #2191 from wansir/tenant-api
add tenant resource API
2020-06-12 13:20:39 +08:00
wanjunlei
dd03cab01c change log level of get crd webhook error 2020-06-12 13:20:18 +08:00
KubeSphere CI Bot
63d2463d20 Merge pull request #2193 from shaowenchen/fix_pipeline
fix apiresult
2020-06-12 12:34:39 +08:00
hongming
b1d996f4a7 add test case
Signed-off-by: hongming <talonwan@yunify.com>
2020-06-12 12:29:46 +08:00
wanjunlei
356560ac74 resolve conversation
formater

Signed-off-by: wanjunlei <wanjunlei@yunify.com>

debug

debug

Signed-off-by: wanjunlei <wanjunlei@yunify.com>
2020-06-12 11:19:27 +08:00
Zhengyi Lai
cf162559e3 Refactor with OpenPitrix
Signed-off-by: Zhengyi Lai <zheng1@yunify.com> (+2 squashed commits)
2020-06-12 00:29:39 +08:00
shaowenchen
8a11cbc875 fix apiresult
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-06-11 18:29:22 +08:00
zryfish
79e3597173 fix cluster status (#2192) 2020-06-11 16:10:19 +08:00
hongming
bafeecfee6 add tenant resource API
Signed-off-by: hongming <talonwan@yunify.com>
2020-06-11 01:47:25 +08:00
pengcong06
55354bf20d add list events 2020-06-10 21:28:07 +08:00
pengcong06
59839439d5 feat:multi cluster application 2020-06-10 21:28:07 +08:00
wanjunlei
4cb84de44d add audit components
Signed-off-by: wanjunlei <wanjunlei@yunify.com>

debug

add test

add test

add test
2020-06-10 20:21:07 +08:00
Duan Jiong
825e026930 validate cidr
only accept validated cidr.
And fix the error handle when network-isotate is diabled.
And remove the useless crd.

Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2020-06-10 18:11:05 +08:00
zryfish
d4b7d88b4b fix cluster status unchanged when cluster agent is already unavailable (#2188) 2020-06-10 17:27:41 +08:00
KubeSphere CI Bot
259971c0ed Merge pull request #2180 from shaowenchen/fix_pipeline
add field for pipeline branch
2020-06-10 17:04:39 +08:00
shaowenchen
3b2714982a add field for pipeline branch
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-06-09 15:24:55 +08:00
KubeSphere CI Bot
0316223f0d Merge pull request #2168 from wansir/csr-controller
fix csr controller bug
2020-06-09 14:46:38 +08:00
KubeSphere CI Bot
cc736e475f Merge pull request #2115 from shaowenchen/fix_query_credential
Fix query credential
2020-06-09 13:02:38 +08:00
shaowenchen
266e85dbee fix filter credential
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-06-09 12:00:47 +08:00
KubeSphere CI Bot
5993bdd654 Merge pull request #2161 from shaowenchen/fix_jenkin_basic
fix jenkins basic auth
2020-06-09 11:21:39 +08:00
KubeSphere CI Bot
dfed2a5afe Merge pull request #2179 from duanjiong/rename-controller
rename nsnp controller
2020-06-09 10:12:38 +08:00
Duan Jiong
3c21a21bd7 rename nsnp controller
Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2020-06-08 22:36:49 +08:00
shaowenchen
e723038abc fix jenkins basic
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-06-08 18:34:42 +08:00
zryfish
e7c5c5a1f3 fix namespace controller crash when openpitrix is not enabled (#2167) 2020-06-07 23:15:43 +08:00
hongming
80953f5945 fix csr controller bug
Signed-off-by: hongming <talonwan@yunify.com>
2020-06-07 22:45:19 +08:00
zryfish
4f98fac39d fix namespace controller crash when openpitrix is not enabled (#2166) 2020-06-07 21:46:25 +08:00
zryfish
9b16c0589c fix openpitrix return non nil client when enpoint is empty (#2165) 2020-06-07 20:00:27 +08:00
KubeSphere CI Bot
df348b199f Merge pull request #2155 from wanjunlei/master
add response_code_filter parameter in auditing events search api
2020-06-05 14:56:38 +08:00
KubeSphere CI Bot
38274c61f9 Merge pull request #2157 from min-zh/snapshot-crds
add snapshot crds
2020-06-05 14:55:37 +08:00
zryfish
bb4d3fee7a add component status to cluster status (#2160) 2020-06-05 14:51:05 +08:00
KubeSphere CI Bot
98b34a7760 Merge pull request #2159 from zheng1/fix_owners
Update network&openpitrix OWNERS
2020-06-04 20:08:37 +08:00
Zhengyi Lai
72939ab397 Update network&openpitrix OWNERS
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
2020-06-04 20:07:47 +08:00
zhangmin
8bda24e53a add snapshot crds 2020-06-04 17:01:54 +08:00
KubeSphere CI Bot
eb99025fe7 Merge pull request #2149 from min-zh/snapshot
storage capability
2020-06-04 12:47:37 +08:00
KubeSphere CI Bot
d42d20c23c Merge pull request #2154 from wansir/role-templates
fix: clusterrolebinding controller bug
2020-06-04 12:41:37 +08:00
hongming
4e418bbe03 fix: clusterrolebinding controller bug
Signed-off-by: hongming <talonwan@yunify.com>
2020-06-04 12:18:00 +08:00
wanjunlei
3d3b9d5af5 add response_code_filter parameter in auditing events search api 2020-06-04 12:06:56 +08:00
zhangmin
c6158a7cd3 storage capability 2020-06-04 10:36:13 +08:00
KubeSphere CI Bot
1882b20e6e Merge pull request #2132 from wansir/role-templates
update user's role templates API
2020-06-04 00:03:36 +08:00
hongming
ce3cd21a76 update user's role templates API
Signed-off-by: hongming <talonwan@yunify.com>
2020-06-03 23:49:49 +08:00
KubeSphere CI Bot
78eae543dd Merge pull request #2152 from zheng1/fix_owners
Update network OWNERS files
2020-06-03 16:16:37 +08:00
Zhengyi Lai
c9400359b1 Update network OWNERS files
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
2020-06-03 16:11:40 +08:00
KubeSphere CI Bot
43a02c8c6e Merge pull request #2151 from duanjiong/networkpolicy-fix
fix namespace networkpolicy
2020-06-03 16:06:36 +08:00
Duan Jiong
e922a85dec fix namespace networkpolicy
add prefix when set key, otherwise the k8s rule will not be deleted
don't append ingress when ingress is empty, otherwise all ingress traffic will be allowed.

Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2020-06-03 12:08:30 +08:00
KubeSphere CI Bot
3f86b8b35d Merge pull request #2138 from wansir/options
fix: crash if config file not provide
2020-06-03 11:26:36 +08:00
zryfish
ee5afd7d44 Merge branch 'master' into options 2020-06-03 11:14:42 +08:00
KubeSphere CI Bot
2f650dbac5 Merge pull request #2148 from shaowenchen/devops_log
set devops log level to 8
2020-06-02 16:31:37 +08:00
shaowenchen
2e04009547 set devops log level to 8
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-06-02 16:23:01 +08:00
zryfish
845887a325 fix proxy bug (#2146) 2020-06-02 14:26:31 +08:00
zryfish
68029de64c fix authorization header stripped by kube-apiserver (#2145) 2020-06-02 11:59:46 +08:00
KubeSphere CI Bot
a86f2a10c8 Merge pull request #2137 from huanggze/logging-fix
logging: start_time and end_time are not required params
2020-06-01 20:20:36 +08:00
zryfish
59900f6e1c use kube-apiserver proxy if no kubesphere api endpoint provided (#2144) 2020-06-01 19:54:05 +08:00
zryfish
345ce1ac0f fix audit options default empty (#2143) 2020-06-01 13:57:38 +08:00
KubeSphere CI Bot
b681193c1f Merge pull request #2129 from wanjunlei/master
add auditing events search api
2020-06-01 11:45:37 +08:00
KubeSphere CI Bot
82b93f8962 Merge pull request #2134 from huanggze/monitor-fix
config: remove prometheus secondary-endpoint flag
2020-05-30 23:54:36 +08:00
zryfish
b9c2ebc97c fix jaeger api endpoint bug (#2140) 2020-05-30 23:54:21 +08:00
KubeSphere CI Bot
5509f6483b Merge pull request #2135 from klj890/fix/ingressController
add configmap default suffix
2020-05-30 23:53:36 +08:00
hongming
9699f6c566 fix: crash if configfile not provide
Signed-off-by: hongming <talonwan@yunify.com>
2020-05-30 10:27:43 +08:00
huanggze
71b2b78c38 logging: start_time and end_time are not required params
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-05-29 18:59:36 +08:00
Tony Wang
decb160a4e Update routers.go
add configMap Suffix.
2020-05-29 17:56:00 +08:00
huanggze
22cbbb30b1 config: remove prometheus secondary-endpoint flag
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-05-29 17:12:43 +08:00
KubeSphere CI Bot
a575c3eda8 Merge pull request #2117 from shaowenchen/fix_devops_api
modify devops api for tenant
2020-05-29 15:34:35 +08:00
root
951c31189a add auditing events search api 2020-05-28 09:55:14 +08:00
KubeSphere CI Bot
ea2e87697d Merge pull request #2126 from junotx/master
fix events search
2020-05-27 18:11:36 +08:00
zryfish
27ca024bb7 add version api (#2127)
add cluster validation api
2020-05-27 18:11:27 +08:00
junotx
5818733481 fix events search 2020-05-27 14:24:34 +08:00
KubeSphere CI Bot
e119fd8a36 Merge pull request #2114 from huanggze/op
monitor: fix platform-level statistics
2020-05-27 14:17:35 +08:00
huanggze
0e83717914 monitor: fix platform-level statistics
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-05-27 13:58:07 +08:00
KubeSphere CI Bot
e71cd79c2b Merge pull request #2112 from shaowenchen/fix_s2i_api
fix SecretRef nil
2020-05-27 11:19:35 +08:00
zryfish
ccb7a89061 fix 415 unsupported media type (#2122) 2020-05-26 15:29:06 +08:00
KubeSphere CI Bot
5c44d17d9e Merge pull request #2118 from rayzhou2017/master
Add license info in code file as a sample for devops compoment
2020-05-26 15:28:34 +08:00
zryfish
cb65048926 remove consumes and produces on root webservice (#2120) 2020-05-26 14:33:16 +08:00
KubeSphere CI Bot
453c08f410 Merge pull request #2119 from shaowenchen/add_license_for_devops
add license for devops
2020-05-26 11:02:35 +08:00
shaowenchen
0a087c634b Merge branch 'master' into add_license_for_devops 2020-05-26 11:01:08 +08:00
shaowenchen
d83ac69d80 add license for devops
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-05-26 10:31:14 +08:00
Ray Zhou
66609a8511 Add license info in code file as a sample for devops compoment 2020-05-26 09:49:42 +08:00
shaowenchen
6d3647405c fix devops api for tenant 2020-05-26 09:46:43 +08:00
KubeSphere CI Bot
b8f6a97340 Merge pull request #2100 from huanggze/logging
logging: integrate new IAM
2020-05-25 21:43:34 +08:00
KubeSphere CI Bot
c104516ce0 Merge pull request #2111 from wansir/update-copyright
copyright license update
2020-05-25 17:17:34 +08:00
huanggze
9b6f38d857 logging: integrate new IAM
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-05-25 16:58:20 +08:00
shaowenchen
3b8dc4bac4 fix SecretRef nil
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-05-25 15:39:20 +08:00
KubeSphere CI Bot
19d546a973 Merge pull request #2106 from wansir/master
fix user's resource lifecycle
2020-05-25 15:15:34 +08:00
KubeSphere CI Bot
dc4ec5e51e Merge pull request #2108 from shaowenchen/fix_project_info
fix project info
2020-05-25 15:07:35 +08:00
hongming
85b61dce7c copyright license update
Signed-off-by: hongming <talonwan@yunify.com>
2020-05-25 14:51:24 +08:00
shaowenchen
3facb060ac fix project info
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-05-25 14:25:22 +08:00
zryfish
48db63b91f fix registry public hub search (#2110) 2020-05-25 14:21:18 +08:00
KubeSphere CI Bot
bb94d6da24 Merge pull request #2107 from shaowenchen/complete_dockerfileignore
add .git to .dockerfileignore
2020-05-25 10:52:35 +08:00
KubeSphere CI Bot
8362f59adc Merge pull request #2104 from huanggze/monitoring
monitor: add platform metrics
2020-05-25 10:49:34 +08:00
shaowenchen
42f1f38a51 add .git to .dockerfileignore
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-05-24 16:19:25 +08:00
hongming
57acaeba41 use ownerReference control the lifecycle of user's kubeconfig and kubectl pod
Signed-off-by: hongming <talonwan@yunify.com>
2020-05-23 21:26:28 +08:00
KubeSphere CI Bot
4074e73a1b Merge pull request #2072 from shaowenchen/fix_create_pipeline
fix pipeline bugs
2020-05-23 21:15:34 +08:00
KubeSphere CI Bot
5a89ce7394 Merge pull request #2056 from wansir/master
improve IAM module
2020-05-23 21:02:35 +08:00
hongming
8f93266ec0 improve IAM module
Signed-off-by: hongming <talonwan@yunify.com>
2020-05-23 20:48:19 +08:00
huanggze
5c695a1c90 monitor: add platform metrics
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-05-23 15:09:20 +08:00
shaowenchen
11b72a8817 fix create pipeline error
fix get pipelinerun list

feature kapi for devopsproject pipeline credential

fix get pipelinebranch

fix create credential api

Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-05-22 14:56:34 +08:00
KubeSphere CI Bot
b8e6a670d7 Merge pull request #2099 from duanjiong/networkpolicy-fix
fix namespace networkpolicy
2020-05-22 14:54:34 +08:00
KubeSphere CI Bot
62566b9712 Merge pull request #2096 from rayzhou2017/master
Fix grammer errors in code comments
2020-05-22 13:55:33 +08:00
Duan Jiong
7a0b18315f fix namespace networkpolicy
add filter on namespace event func
delete the code which do same work with namespace controller

Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2020-05-21 11:02:34 +08:00
zryfish
0d12529051 bump kiali version (#2097) 2020-05-20 23:55:44 +08:00
Ray Zhou
66a312a1e0 Fix grammer errors in code comments 2020-05-20 20:31:19 +08:00
KubeSphere CI Bot
6f97e3df14 Merge pull request #2093 from pengcong06/opbug
params key error: app -> app_id
2020-05-20 19:10:33 +08:00
pengcong06
b568f824d0 params key error: app -> app_id 2020-05-20 00:32:29 +08:00
KubeSphere CI Bot
e49b2de7b9 Merge pull request #2086 from huanggze/monitor-fix
monitoring: fix metric value NaN
2020-05-19 19:24:33 +08:00
KubeSphere CI Bot
28a9e072f4 Merge pull request #2080 from duanjiong/networkpolicy-fix
fix namespace networkpolicy
2020-05-19 19:22:33 +08:00
KubeSphere CI Bot
2f2770eced Merge pull request #2089 from donhui/patch-1
typo fix
2020-05-19 15:50:32 +08:00
Donghui Wang
028e882420 typo fix 2020-05-19 15:19:44 +08:00
huanggze
14069b95f2 monitoring: fix metric value NaN
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-05-18 22:30:36 +08:00
KubeSphere CI Bot
af341f6fbe Merge pull request #2085 from chinazj/krole
add unit test for job controller
2020-05-18 21:14:32 +08:00
jian.zhang
df49775acb add unit test for job
Signed-off-by: jian.zhang <jian.zhang@jhlinux.com>
2020-05-18 20:21:57 +08:00
zryfish
17200172a8 remove specific version of generic proxy server (#2084) 2020-05-18 18:31:57 +08:00
KubeSphere CI Bot
4e3d37a994 Merge pull request #2079 from huanggze/master
monitoring: update node_pod_quota
2020-05-18 14:01:32 +08:00
Duan Jiong
4e45d659c0 fix namespace networkpolicy
1. allow egress when isolate is enabled
2. add nsnp prefix "nsnp-"
3. remove some useless log

Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2020-05-18 09:10:33 +08:00
huanggze
4f39094e2f monitoring: update node_pod_quota
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-05-15 21:01:29 +08:00
KubeSphere CI Bot
f0749ac442 Merge pull request #2076 from huanggze/custom-monitoring
api: list metric labels and values
2020-05-15 19:52:32 +08:00
KubeSphere CI Bot
ec903222a7 Merge pull request #2069 from junotx/master
add events search apis
2020-05-15 19:51:31 +08:00
huanggze
8b913abd61 api: list metric labels and values
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-05-15 19:22:23 +08:00
zryfish
d2600705c6 Add requests to nodes (#2078)
* add requests and limits to nodes

* add requests and limits to nodes
2020-05-15 17:31:38 +08:00
junotx
8f5ca7673d add events search apis 2020-05-15 10:28:12 +08:00
Guangzhe Huang
044dd8eba3 monitoring: update builtin metrics (#2074)
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-05-15 10:20:01 +08:00
KubeSphere CI Bot
c3d74660d1 Merge pull request #2071 from shaowenchen/feature_add_pipeline_api
add pipeline api
2020-05-14 23:47:32 +08:00
KubeSphere CI Bot
4abaf96757 Merge pull request #2065 from shaowenchen/fix_create_devops
fix devops create and delete bug
2020-05-14 23:46:31 +08:00
shaowenchen
78080afbf5 fix test 2020-05-14 19:09:53 +08:00
KubeSphere CI Bot
d80cbff938 Merge pull request #2068 from pengcong06/dev
init opClient
2020-05-14 16:33:31 +08:00
pengcong06
070aa863fb init opClient 2020-05-14 14:14:30 +08:00
shaowenchen
b84f261942 add pipeline api 2020-05-14 14:13:07 +08:00
zryfish
1bd660c370 fix proxy bug (#2070) 2020-05-14 13:22:30 +08:00
shaowenchen
8f40bb2d3e fix delete devops failed 2020-05-14 10:01:46 +08:00
shaowenchen
9b656196e3 fix delete devops 2020-05-13 23:13:13 +08:00
shaowenchen
f52cb829c2 fix create devops 2020-05-13 23:01:26 +08:00
zryfish
d358d9ab1a add notification apis (#2066)
add alerting apis

add generic proxy
2020-05-13 21:50:26 +08:00
shaowenchen
4f9c77383e fix create devopsproject 2020-05-13 21:34:16 +08:00
shaowenchen
4fc56de7c0 fix create devopsproject 2020-05-13 21:32:31 +08:00
KubeSphere CI Bot
1464ca197d Merge pull request #2057 from min-zh/snapshot
fix bug of pvc api
2020-05-13 17:24:31 +08:00
zhangmin
250dd4b065 fix bugs of pvc api 2020-05-13 15:56:13 +08:00
zryfish
1d48ca3446 fix ws authorization bug (#2059) 2020-05-12 16:08:05 +08:00
zryfish
dcd341e70f fix websocket bug (#2058) 2020-05-12 15:31:13 +08:00
KubeSphere CI Bot
f34a4e1c2a Merge pull request #2051 from wansir/dev
fix list namespaces
2020-05-08 23:08:29 +08:00
zryfish
18ab887640 add cluster and crd to resources api group (#2053) 2020-05-08 17:30:15 +08:00
KubeSphere CI Bot
256b178927 Merge pull request #2050 from min-zh/snapshot
volume snapshot
2020-05-07 11:40:29 +08:00
zhangmin
4f17b7a07f volume snapshot 2020-05-07 10:47:44 +08:00
hongming
992be764a1 fix list namespaces
Signed-off-by: hongming <talonwan@yunify.com>
2020-05-07 09:14:54 +08:00
zryfish
87e567eaf5 fix cluster controller bug (#2049) 2020-05-06 16:23:38 +08:00
zryfish
dc6c9cc58e fix generation bug (#2048) 2020-05-06 13:53:18 +08:00
KubeSphere CI Bot
738a6102a0 Merge pull request #2045 from wansir/dev
fuzzy matching name by default
2020-05-06 11:17:28 +08:00
zryfish
7cdf67f9f2 fix generation bug (#2047) 2020-05-06 10:52:56 +08:00
KubeSphere CI Bot
3ff82c7299 Merge pull request #2041 from duanjiong/networkpolicy-resource
add k8s networkpolicy resource
2020-05-06 10:40:29 +08:00
hongming
af59940ed2 fuzzy matching name by default
Signed-off-by: hongming <talonwan@yunify.com>
2020-05-04 23:53:57 +08:00
Duan Jiong
7e0983ad47 add k8s networkpolicy resource
Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2020-05-03 09:17:24 +08:00
zryfish
98f44fac99 fix generation bug (#2043) 2020-05-01 13:12:54 +08:00
zryfish
933207d247 add cluster proxy gerneration code (#2042) 2020-04-30 22:33:23 +08:00
zryfish
cdd116242a Merge pull request #2039 from zryfish/master
Merge dev branch
2020-04-29 20:46:18 +08:00
Jeff
c62254696c fix openapi schema bug 2020-04-29 20:19:48 +08:00
Jeff
edcec868dc fix merge conflicts 2020-04-29 19:48:40 +08:00
Jeff
4e8e840d1f Merge branch 'dev' 2020-04-29 19:20:59 +08:00
Jeff
19f1971215 rearrange workflow 2020-04-29 17:05:30 +08:00
Jeff
2bac1a24d9 rebase 2020-04-29 17:05:30 +08:00
zryfish
31436b451d fix multicluster options (#2037) 2020-04-29 14:36:40 +08:00
KubeSphere CI Bot
8af14d79ef Merge pull request #1890 from wnxn/set-default-sc
Add patch api header
2020-04-29 10:45:27 +08:00
KubeSphere CI Bot
566ed4d4b9 Merge pull request #2012 from duanjiong/network-policy
Network policy
2020-04-29 10:44:27 +08:00
KubeSphere CI Bot
25e95c4c3f Merge pull request #2018 from wansir/dev
migrate legacy API
2020-04-29 10:42:26 +08:00
hongming
8976ee242f remove useless go moudle
Signed-off-by: hongming <talonwan@yunify.com>
2020-04-29 10:28:25 +08:00
KubeSphere CI Bot
e4cb3b784a Merge pull request #1806 from wansir/master
multi-tenancy 3.0 roadmap
2020-04-28 15:36:27 +08:00
KubeSphere CI Bot
96eeee56e5 Merge pull request #1792 from benjaminhuo/master
Add v3.0 observability roadmap
2020-04-28 15:35:27 +08:00
KubeSphere CI Bot
640baf6624 Merge pull request #1805 from wnxn/roadmap
Add storage roadmap for ks 3.0
2020-04-28 15:34:27 +08:00
KubeSphere CI Bot
ec93d14a49 Merge pull request #2035 from shaowenchen/patch-1
Update OWNERS
2020-04-28 15:03:27 +08:00
pengfei
ccc6b58aab Merge pull request #1795 from runzexia/patch-1
devops 3.0 roadmap
2020-04-28 12:03:10 +08:00
shaowenchen
588cc853df Update OWNERS 2020-04-28 12:00:20 +08:00
Duan Jiong
e8cee7be68 update vendor
Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2020-04-28 10:54:41 +08:00
Duan Jiong
4fb9d84fea allow dns traffic and host node traffic
Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2020-04-28 10:21:58 +08:00
Duan Jiong
1ab7d67e51 allow ip/port in service when config service nsnp
Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2020-04-28 10:21:58 +08:00
Duan Jiong
d3bdcd0465 network: support network isolate
Add new crd to convert kubesphere network policy to k8s network policy, and then other network
plugin will do the rest work.

Use  cache.go from calico project's kube-controller,  it aim to  sync nsnp with k8s np, delete unused np, and relieve the pressure on k8s restful client.

If you want higher performance, you can implement interface  NsNetworkPolicyProvider in pkg/controller/provider/namespace_np.go.

Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2020-04-28 10:21:50 +08:00
Duan Jiong
fc373b18e3 update workspace spec
Add field networkIsolate in workspace spec, in order to support workspace network isolate

Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2020-04-28 10:06:54 +08:00
Duan Jiong
26d014302e namespace: add namespace label
in order to select namespace when convert nsnp to k8snp

Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
2020-04-28 10:06:53 +08:00
hongming
b7a2705ac9 Merge remote-tracking branch 'upstream/dev' into dev
# Conflicts:
#	go.mod
#	pkg/apiserver/apiserver.go
#	pkg/apiserver/config/config.go
2020-04-28 00:52:30 +08:00
hongming
7db2ba662c migrate legacy API
Signed-off-by: hongming <talonwan@yunify.com>
2020-04-28 00:45:12 +08:00
zryfish
5a3eb651f3 change cluster schema (#2026)
* change cluster schema

* change cluster schema
2020-04-27 17:34:02 +08:00
KubeSphere CI Bot
794f388306 Merge pull request #2022 from zheng1/sdn
Regenerate swagger.json
2020-04-27 13:53:26 +08:00
KubeSphere CI Bot
3fada47623 Merge pull request #2032 from wansir/update-makefile
update makefile
2020-04-26 15:15:26 +08:00
hongming
bfd3d21540 multi-tenancy 3.0 roadmap
Signed-off-by: hongming <talonwan@yunify.com>
2020-04-26 14:42:23 +08:00
hongming
014f0c4df2 update makefile
Signed-off-by: hongming <talonwan@yunify.com>
2020-04-26 14:33:58 +08:00
KubeSphere CI Bot
748cc161fc Merge pull request #2027 from huanggze/dev-fix
monitoring: some bug fix
2020-04-24 21:45:26 +08:00
huanggze
fc56333d3c monitoring: some bug fix
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-04-24 21:00:59 +08:00
KubeSphere CI Bot
f717172971 Merge pull request #2021 from wansir/makefile
update makefile
2020-04-24 16:21:25 +08:00
Zhengyi Lai
878d0fe517 Generate swagger.json 2020-04-22 19:24:43 +08:00
KubeSphere CI Bot
3f89eaef7e Merge pull request #2016 from huanggze/dev-fix
fix isRangeQuery
2020-04-21 13:37:23 +08:00
hongming
acac0b6888 update makefile
Signed-off-by: hongming <talonwan@yunify.com>
2020-04-21 12:32:06 +08:00
KubeSphere CI Bot
3f1efb8e45 Merge pull request #2007 from huanggze/dev-custom
feat: custom monitoring
2020-04-20 20:04:22 +08:00
huanggze
dd78c1a036 feat: custom monitoring
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-04-20 17:33:06 +08:00
KubeSphere CI Bot
88d90b3964 Merge pull request #2017 from rayzhou2017/master
Update Makefile header license description
2020-04-19 10:18:22 +08:00
KubeSphere CI Bot
d2a8b27a76 Merge pull request #1985 from zheng1/sdn
Add network topology APIs
2020-04-19 09:40:21 +08:00
Ray Zhou
34d5340005 Update makefile header license description 2020-04-18 14:25:38 +08:00
Ray Zhou
1e21c0ff42 Revert "Update Makefile license description"
This reverts commit b736078e3c.
2020-04-18 14:22:38 +08:00
Ray Zhou
b736078e3c Update Makefile license description 2020-04-18 14:17:56 +08:00
Zhengyi Lai
8ad17a4648 Add network configuration to apiserver/config 2020-04-17 23:27:57 +08:00
huanggze
9709161540 fix isRangeQuery
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-04-17 16:48:07 +08:00
huanggze
6ef372a923 upgrade monitoring api version (#2015)
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-04-17 16:00:01 +08:00
Zhengyi Lai
828f7726fd Add network topology APIs
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
2020-04-16 16:13:06 +08:00
zryfish
b51013333d Fix openapi schema (#2013)
* fix openapi spec

fix openapi schema bug

* fix api schema bug
2020-04-16 15:27:19 +08:00
KubeSphere CI Bot
ff7f99c589 Merge pull request #2011 from wansir/dev
migrate legacy API
2020-04-15 17:21:21 +08:00
hongming
5f951508c5 migrate legacy API
Signed-off-by: hongming <talonwan@yunify.com>
2020-04-15 16:59:13 +08:00
KubeSphere CI Bot
d38e396e8c Merge pull request #1961 from runzexia/devops-refactor
add test for s2i controller & devops CRD
2020-04-15 13:48:21 +08:00
runzexia
df3ad79786 rm unused file 2020-04-15 11:44:13 +08:00
runzexia
052af22761 regenerate 2020-04-15 11:37:52 +08:00
runzexia
d8259160b8 Merge branch 'dev' into devops-refactor
# Conflicts:
#	Makefile
#	api/api-rules/violation_exceptions.list
#	api/openapi-spec/swagger.json
#	cmd/controller-manager/app/controllers.go
#	hack/generate_client.sh
#	pkg/apis/cluster/v1alpha1/openapi_generated.go
#	pkg/client/informers/externalversions/generic.go
#	pkg/kapis/tenant/v1alpha2/register.go
#	pkg/models/tenant/devops.go
#	pkg/models/tenant/workspaces.go
#	pkg/simple/client/devops/fake/fakedevops.go
#	tools/cmd/crd-doc-gen/main.go
2020-04-15 11:33:05 +08:00
runzexia
9a6ba04a37 clean old devops code
todo impl use informer

Signed-off-by: runzexia <runzexia@yunify.com>
2020-04-15 11:03:08 +08:00
hongming
bb9e12be3d fix iam admission webhook (#2008)
Signed-off-by: hongming <talonwan@yunify.com>
2020-04-14 00:15:18 +08:00
KubeSphere CI Bot
864b244cc3 Merge pull request #2005 from wansir/token-cache-config
token cache config
2020-04-13 19:50:21 +08:00
hongming
3ce4a0d77c token cache config
Signed-off-by: hongming <talonwan@yunify.com>
2020-04-13 19:14:41 +08:00
KubeSphere CI Bot
ff2523e515 Merge pull request #1984 from huanggze/dev-monitoring
monitor: add tests
2020-04-13 14:14:20 +08:00
zryfish
372a52e70e monitor: add tests
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-04-13 09:37:37 +08:00
KubeSphere CI Bot
17013d3519 Merge pull request #1989 from wansir/dev
add iam crd
2020-04-12 21:21:21 +08:00
hongming
8d18fc3657 update
Signed-off-by: hongming <talonwan@yunify.com>
2020-04-12 18:56:33 +08:00
zryfish
c3c6ed8898 fix proxy bug (#2002) 2020-04-11 21:05:40 +08:00
hongming
5ac915ad2e Merge remote-tracking branch 'upstream/dev' into dev
# Conflicts:
#	pkg/apis/iam/v1alpha2/user_types.go
2020-04-10 15:49:31 +08:00
hongming
a3d3c8e427 update
Signed-off-by: hongming <talonwan@yunify.com>
2020-04-10 15:41:23 +08:00
zryfish
6b4fd9b8fa Update build.yml 2020-04-10 15:21:10 +08:00
zryfish
dd5b96254c fix cluster bug (#1997) 2020-04-10 14:47:41 +08:00
zryfish
69c6d91fdb fix cluster controller (#1996) 2020-04-10 12:37:05 +08:00
hongming
0e814bb5e4 add iam crd
Signed-off-by: hongming <talonwan@yunify.com>
2020-04-10 04:05:23 +08:00
KubeSphere CI Bot
1604ed4b1a Merge pull request #1976 from rayzhou2017/master
Update README
2020-04-08 22:40:19 +08:00
zryfish
e174dcb3d6 add cluster controller (#1993) 2020-04-08 00:40:28 +08:00
zryfish
cfaeb10dc6 add cluster api group (#1992) 2020-04-07 19:33:45 +08:00
Ray Zhou
aa65b6b58e Add google group communication channel 2020-04-02 14:43:02 +08:00
Ray Zhou
0e81cc025e Update README 2020-04-02 13:55:39 +08:00
runzexia
56482f1feb fmt
Signed-off-by: runzexia <runzexia@yunify.com>
2020-04-02 10:29:47 +08:00
runzexia
7a6b27d77b Merge branch 'dev' into devops-refactor 2020-04-02 10:25:36 +08:00
runzexia
2aa343465e update
Signed-off-by: runzexia <runzexia@yunify.com>
2020-04-02 10:21:34 +08:00
zryfish
3c73471f79 fix path authorizer give no opinion on resource requests (#1981) 2020-04-01 17:41:50 +08:00
runzexia
449b5e042e trigger GitHub actions 2020-04-01 17:28:25 +08:00
runzexia
559c1fcf76 clean old devops code
todo impl use informer

Signed-off-by: runzexia <runzexia@yunify.com>
2020-04-01 15:54:57 +08:00
zryfish
c8dc3a4044 fix requestinfo bug (#1980) 2020-04-01 15:50:57 +08:00
zryfish
95f6d75c19 fix proxy host bug (#1977) 2020-04-01 15:23:29 +08:00
runzexia
c80a17f4b4 sonar handler init 2020-04-01 15:21:15 +08:00
runzexia
9ec99d1a63 clean import 2020-04-01 15:11:19 +08:00
runzexia
09576fdc15 updatee 2020-04-01 15:06:30 +08:00
runzexia
564d39caf0 clean codee 2020-04-01 12:04:05 +08:00
runzexia
30be09e012 refmt 2020-04-01 11:10:07 +08:00
runzexia
1a6f563da1 Merge branch 'dev' into devops-refactor
# Conflicts:
#	cmd/controller-manager/app/controllers.go
#	hack/generate_client.sh
#	pkg/client/clientset/versioned/clientset.go
#	pkg/client/clientset/versioned/fake/clientset_generated.go
#	pkg/client/clientset/versioned/fake/register.go
#	pkg/client/clientset/versioned/scheme/register.go
#	pkg/client/informers/externalversions/generic.go
2020-04-01 11:04:09 +08:00
KubeSphere CI Bot
1bf8beb1e6 Merge pull request #1971 from wansir/dev
implement identity provider and built-in oauth server
2020-03-31 07:32:17 +08:00
hongming
34dfc2048a add default oauth client
Signed-off-by: hongming <talonwan@yunify.com>
2020-03-30 19:40:57 +08:00
KubeSphere CI Bot
038bc7907b Merge pull request #1975 from rayzhou2017/master
Update README.md
2020-03-30 16:37:16 +08:00
Ray Zhou
b1767e78fe Update README.md 2020-03-30 16:21:15 +08:00
hongming
4746c72806 Merge remote-tracking branch 'upstream/dev' into dev
# Conflicts:
#	hack/generate_client.sh
2020-03-30 15:48:10 +08:00
hongming
0d2279f5e4 fix somme error in controller-manager
Signed-off-by: hongming <talonwan@yunify.com>
2020-03-30 15:40:03 +08:00
runzexia
d55fcdcfe4 remove check role
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-30 15:02:12 +08:00
runzexia
8892c63adb Merge branch 'dev' into devops-refactor 2020-03-30 10:26:13 +08:00
zryfish
7121e3609c move agent crd to kubesphere (#1974) 2020-03-29 16:49:11 +08:00
hongming
54fc52c0e3 add user crd
Signed-off-by: hongming <talonwan@yunify.com>
2020-03-28 21:14:43 +08:00
hongming
96a1d3825e update
Signed-off-by: hongming <talonwan@yunify.com>
2020-03-28 14:09:39 +08:00
runzexia
443eb3f74c enable controller
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-27 15:20:53 +08:00
runzexia
f827116a1d add credential usage hander
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-27 15:03:17 +08:00
runzexia
98fed531ac refmt
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-27 11:25:56 +08:00
runzexia
2fce04efd3 fix ut test
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-27 11:19:37 +08:00
runzexia
f411bec10b add ut test 2020-03-27 10:52:39 +08:00
zryfish
96ddf4cfa0 add workflow to dev branch (#1972) 2020-03-27 10:35:10 +08:00
hongming
9b9d4021ec implement identity provider and built-in oauth server
Signed-off-by: hongming <talonwan@yunify.com>
2020-03-26 15:19:20 +08:00
runzexia
af3b87ddca add devops credential controller
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-26 14:53:33 +08:00
runzexia
e8b9d9cdf3 add pipeline openapi docs
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-25 11:01:51 +08:00
runzexia
23c8d71a5a pipeline crd
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-25 10:58:39 +08:00
KubeSphere CI Bot
1e6e108597 Merge pull request #1967 from FeynmanZhou/readme
refine readme, remove the out-of-date docs
2020-03-25 10:20:59 +08:00
FeynmanZhou
75cd7e0677 refine README - CN
Signed-off-by: FeynmanZhou <pengfeizhou@yunify.com>
2020-03-24 17:10:53 +08:00
FeynmanZhou
8c1f621de5 refine readme, remove the out-of-date docs
Signed-off-by: FeynmanZhou <pengfeizhou@yunify.com>
2020-03-24 16:45:01 +08:00
zryfish
179fbdb67a move to github actions (#1965)
* move to github actions
2020-03-23 18:15:16 +08:00
runzexia
7a00f9e3e4 add multi version crd docs support &add crd docs gen
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-23 17:11:50 +08:00
runzexia
a48d7f5478 create devops job with admin ns name
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-23 16:13:49 +08:00
runzexia
e06a1a8335 create admin ns for devops project
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-23 15:56:37 +08:00
KubeSphere CI Bot
59002cd176 Merge pull request #1960 from wansir/dev
implement authorizer filter
2020-03-23 10:33:57 +08:00
runzexia
0ac15ea744 refmt code
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-23 10:01:22 +08:00
hongming
aa05c2baf4 update
Signed-off-by: hongming <talonwan@yunify.com>
2020-03-22 23:17:43 +08:00
hongming
cae7843832 update
Signed-off-by: hongming <talonwan@yunify.com>
2020-03-22 15:57:29 +08:00
hongming
b9bdcd824c update
Signed-off-by: hongming <talonwan@yunify.com>
2020-03-22 04:29:06 +08:00
hongming
aadb5e91e8 update
Signed-off-by: hongming <talonwan@yunify.com>
2020-03-21 20:31:01 +08:00
hongming
1f26e62105 update
Signed-off-by: hongming <talonwan@yunify.com>
2020-03-21 18:52:28 +08:00
runzexia
16d392065e fix go vet
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-20 10:37:37 +08:00
runzexia
ba4ab97cb6 fix comment
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-20 10:28:05 +08:00
hongming
9769357005 update
Signed-off-by: hongming <talonwan@yunify.com>
2020-03-20 02:16:11 +08:00
runzexia
91dd82891f devops project should be cluster
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-19 15:25:04 +08:00
runzexia
e86c27bc2c gen devops crd yaml
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-19 15:14:01 +08:00
runzexia
7ffee72b1f filter wach && list action
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-19 14:49:47 +08:00
runzexia
5dffb7305f add code comments
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-19 14:44:45 +08:00
runzexia
e4f2cdc3d2 fix go vet
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-19 14:28:35 +08:00
runzexia
3e998c3498 add devops project test
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-19 11:52:30 +08:00
hongming
23f6be88c6 implement authorizer filter
Signed-off-by: hongming <talonwan@yunify.com>
2020-03-19 11:17:21 +08:00
runzexia
71898e59dd add s2irun controller test
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-19 10:35:15 +08:00
runzexia
6a7bf0a86f add s2i controller test
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-19 09:53:16 +08:00
runzexia
93461cfb0b add devops project controller
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-18 14:48:41 +08:00
zryfish
0a07e5f652 refactor authentication (#1951)
* refactor authentication

* refactor authentication
2020-03-15 23:26:32 +08:00
zryfish
eb8a3c0dc6 refactor authentication (#1950) 2020-03-15 17:55:55 +08:00
zryfish
abf0d66b22 Add more tests (#1949)
* add more test code

* add more test code
2020-03-15 10:22:39 +08:00
zryfish
f8e7d06b07 move apigateway into apiserver (#1948) 2020-03-13 21:57:48 +08:00
runzexia
dab71e710b fix openapi gen tools (#1944)
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-10 15:46:46 +08:00
zryfish
641615b299 This is a huge commit, it does following things: (#1942)
1. Remove ks-iam standalone binary, move it to ks-apiserver
2. Generate all devops apis inside kubesphere repository, no need to
import s2ioperator.
3. Reorganize ldap code, make it more flexible to use.
2020-03-10 13:50:17 +08:00
KubeSphere CI Bot
fbd1904843 Merge pull request #1940 from Hugome/patch-1
Fix little year typo in the README
2020-03-07 17:06:39 +08:00
Hugome
bd4a529f7f Fix little year typo in the README
I was afraid the project was dead last year
2020-03-07 08:35:57 +01:00
runzexia
7270307b66 fix devops go vet (#1928)
Signed-off-by: runzexia <runzexia@yunify.com>
2020-03-07 12:46:09 +08:00
Guangzhe Huang
148a804726 refactor monitoring (#1751)
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-03-07 12:34:52 +08:00
Guangzhe Huang
6c6bfb2677 [WIP] logging refactor (#1794)
* refactor logging

Signed-off-by: huanggze <loganhuang@yunify.com>

* refactor logging

Signed-off-by: huanggze <loganhuang@yunify.com>
2020-03-02 10:53:43 +08:00
KubeSphere CI Bot
112b962784 Merge pull request #1934 from FeynmanZhou/readme
refine readme, update download url to 2.1.1
2020-03-02 10:32:38 +08:00
FeynmanZhou
4e07963e42 refine readme, update download url to 2.1.1
Signed-off-by: FeynmanZhou <pengfeizhou@yunify.com>
2020-03-01 17:49:47 +08:00
hongming
a9e1183f3c code refactor (#1924)
* code refactor

Signed-off-by: hongming <talonwan@yunify.com>

* code refactor

Signed-off-by: hongming <talonwan@yunify.com>
2020-02-26 10:08:13 +08:00
hongming
570ef8b60a code refactor (#1923)
Signed-off-by: hongming <talonwan@yunify.com>
2020-02-25 20:47:59 +08:00
hongming
0664eeb559 code refactor (#1922)
Signed-off-by: hongming <talonwan@yunify.com>
2020-02-25 18:16:51 +08:00
KubeSphere CI Bot
0bc5529ea1 Merge pull request #1681 from huanggze/logging-doc
add logging dev guides
2020-02-24 16:31:36 +08:00
KubeSphere CI Bot
a44ee0d0fe Merge pull request #1689 from soulseen/s2i-doc
update s2i docs
2020-02-24 16:30:36 +08:00
KubeSphere CI Bot
dee8c54e18 Merge pull request #1685 from huanggze/monitoring-doc
add monitoring dev guides
2020-02-24 16:29:35 +08:00
hongming
abf9fee845 code refactor (#1786)
* implement LDAP mock client

Signed-off-by: hongming <talonwan@yunify.com>

* update

Signed-off-by: hongming <talonwan@yunify.com>

* update

Signed-off-by: hongming <talonwan@yunify.com>

* resolve conflict

Signed-off-by: hongming <talonwan@yunify.com>
2020-02-24 15:39:36 +08:00
runzexia
96aee0e60b Devops refactor (#1894)
* add devops client interface

Signed-off-by: runzexia <runzexia@yunify.com>

* direct return jenkins

Signed-off-by: runzexia <runzexia@yunify.com>

* add some interface

Signed-off-by: runzexia <runzexia@yunify.com>

* update

Signed-off-by: runzexia <runzexia@yunify.com>

* update interface

Signed-off-by: runzexia <runzexia@yunify.com>

* update

Signed-off-by: runzexia <runzexia@yunify.com>

* credential op structs

Signed-off-by: runzexia <runzexia@yunify.com>

* status

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* update interface

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* credential handler

Signed-off-by: runzexia <runzexia@yunify.com>

* update devopsoperator func

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* get build sonar

Signed-off-by: runzexia <runzexia@yunify.com>

* sonar handler

* mv code to cilent

Signed-off-by: runzexia <runzexia@yunify.com>

* update

Signed-off-by: runzexia <runzexia@yunify.com>

* project member handler

Signed-off-by: runzexia <runzexia@yunify.com>

* update pipeline operator interface

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add tenant devops handler

Signed-off-by: runzexia <runzexia@yunify.com>

* update merge

Signed-off-by: runzexia <runzexia@yunify.com>

* clean

Signed-off-by: runzexia <runzexia@yunify.com>

* fmt

Signed-off-by: runzexia <runzexia@yunify.com>

* update ListPipelineRuns

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* complate pipelineOperator interface

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* update HttpParameters

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add pipeline steps interface

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* update pipeline GetNodesDetail

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add s2i api

Signed-off-by: runzexia <runzexia@yunify.com>

* add branch pipeline interface and update handler

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add scan branch interface and update handler

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add common interface and update handler

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add SCM interface and update handler

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add handler

Signed-off-by: runzexia <runzexia@yunify.com>

* add fake s3

Signed-off-by: runzexia <runzexia@yunify.com>

* add webhook&check interface and update handler

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* clean

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* clean

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* format

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add some func

Signed-off-by: runzexia <runzexia@yunify.com>

* clean code

Signed-off-by: runzexia <runzexia@yunify.com>

* implement interface

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* fix interface GetBranchArtifacts

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add s2ibinary upload test

Signed-off-by: runzexia <runzexia@yunify.com>

* tenant devops

Signed-off-by: runzexia <runzexia@yunify.com>

* update tenant

Signed-off-by: runzexia <runzexia@yunify.com>

* fake

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add some unit test

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add devops tenant handler

Signed-off-by: runzexia <runzexia@yunify.com>

* status

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* status

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* status

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* update fake test

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* update unit test and fake data

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* update

* enable devops client

Signed-off-by: runzexia <runzexia@yunify.com>

* enable devops client

Signed-off-by: runzexia <runzexia@yunify.com>

Co-authored-by: Xiaoyang Zhu <sunzhu@yunify.com>
2020-02-24 15:39:04 +08:00
Xin Wang
0dd83136e6 Add patch api header
Signed-off-by: Xin Wang <wileywang@yunify.com>
2020-02-18 17:10:22 +08:00
rayzhou2017
3466ee9a31 Merge pull request #1853 from eliaskoromilas/patch-1
Update powered-by-kubesphere.md
2020-02-12 22:45:19 +08:00
Elias Koromilas
6f01a520e5 Update powered-by-kubesphere.md
Added InAccel to the list
2020-02-12 12:15:28 +02:00
KubeSphere CI Bot
8caeb9d482 Merge pull request #1804 from FeynmanZhou/readme
update issue template to emphasize English only
2020-02-04 15:29:30 +08:00
Xin Wang
6f1082586e Add storage roadmap for ks 3.0
Signed-off-by: Xin Wang <wileywang@yunify.com>
2020-02-04 15:16:55 +08:00
runzexia
c5a340a2b4 devops refactor (#1739)
* add devops client interface

Signed-off-by: runzexia <runzexia@yunify.com>

* direct return jenkins

Signed-off-by: runzexia <runzexia@yunify.com>

* add some interface

Signed-off-by: runzexia <runzexia@yunify.com>

* update

Signed-off-by: runzexia <runzexia@yunify.com>

* update interface

Signed-off-by: runzexia <runzexia@yunify.com>

* update

Signed-off-by: runzexia <runzexia@yunify.com>

* credential op structs

Signed-off-by: runzexia <runzexia@yunify.com>

* status

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* update interface

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* credential handler

Signed-off-by: runzexia <runzexia@yunify.com>

* update devopsoperator func

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* get build sonar

Signed-off-by: runzexia <runzexia@yunify.com>

* sonar handler

* mv code to cilent

Signed-off-by: runzexia <runzexia@yunify.com>

* update

Signed-off-by: runzexia <runzexia@yunify.com>

* project member handler

Signed-off-by: runzexia <runzexia@yunify.com>

* update pipeline operator interface

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add tenant devops handler

Signed-off-by: runzexia <runzexia@yunify.com>

* update merge

Signed-off-by: runzexia <runzexia@yunify.com>

* clean

Signed-off-by: runzexia <runzexia@yunify.com>

* fmt

Signed-off-by: runzexia <runzexia@yunify.com>

* update ListPipelineRuns

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* complate pipelineOperator interface

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* update HttpParameters

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add pipeline steps interface

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* update pipeline GetNodesDetail

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add s2i api

Signed-off-by: runzexia <runzexia@yunify.com>

* add branch pipeline interface and update handler

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add scan branch interface and update handler

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add common interface and update handler

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add SCM interface and update handler

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add handler

Signed-off-by: runzexia <runzexia@yunify.com>

* add fake s3

Signed-off-by: runzexia <runzexia@yunify.com>

* add webhook&check interface and update handler

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* clean

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* clean

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* format

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add some func

Signed-off-by: runzexia <runzexia@yunify.com>

* clean code

Signed-off-by: runzexia <runzexia@yunify.com>

* implement interface

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* fix interface GetBranchArtifacts

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add s2ibinary upload test

Signed-off-by: runzexia <runzexia@yunify.com>

* tenant devops

Signed-off-by: runzexia <runzexia@yunify.com>

* update tenant

Signed-off-by: runzexia <runzexia@yunify.com>

* fake

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add some unit test

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* add devops tenant handler

Signed-off-by: runzexia <runzexia@yunify.com>

* status

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* status

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* status

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* update fake test

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* update unit test and fake data

Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>

* update

Co-authored-by: Xiaoyang Zhu <sunzhu@yunify.com>
2020-02-04 10:40:36 +08:00
Xin Wang
e2fdb9ceef Add storage roadmap for ks 3.0
Signed-off-by: Xin Wang <wileywang@yunify.com>
2020-02-03 18:15:59 +08:00
周鹏飞@yunify
af327088b5 update issue template to emphasize English only
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2020-02-03 14:19:52 +08:00
周鹏飞@yunify
5d583f47db Merge branch 'master' of https://github.com/kubesphere/kubesphere into readme 2020-02-03 12:59:29 +08:00
runzexia
3f6cbc3d8c devops 3.0 roadmap 2020-01-20 13:18:16 +08:00
Benjamin
d9a2efafb4 Add v3.0 observability roadmap
Signed-off-by: Benjamin <benjamin@yunify.com>
2020-01-19 16:35:09 +08:00
KubeSphere CI Bot
461dd9a00c Merge pull request #1628 from soulseen/fix/image_search
remove schema if required and add check SSL
2020-01-16 10:29:00 +08:00
zhuxiaoyang
1e68170f89 update unit test
Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>
2020-01-15 18:59:48 +08:00
zhuxiaoyang
444e24bd48 remove schema if requiredss and add Check SSL
Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>
2020-01-14 20:37:05 +08:00
pengfei
62d8d6aaab fix typo in roadmap.md, add new diagram, refine README (#1766)
* fix typo in roadmap.md, add new diagram, refine README

* fix typo

Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2020-01-14 20:00:32 +08:00
Wiley Wang
66850ee3ee Add API for setting default storage class (#1757)
Signed-off-by: Xin Wang <wileywang@yunify.com>
2020-01-14 19:57:34 +08:00
zryfish
f022b28ccc Update .travis.yml (#1771) 2020-01-14 19:57:12 +08:00
zryfish
f6dba744f9 Update .travis.yml 2020-01-14 19:18:46 +08:00
周鹏飞@yunify
7fa0306035 fix typo
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2020-01-14 16:37:24 +08:00
周鹏飞@yunify
841bd3aa5c fix typo in roadmap.md, add new diagram, refine README 2020-01-14 16:21:25 +08:00
KubeSphere CI Bot
4068757534 Merge pull request #1753 from FeynmanZhou/readme
refine readme guide, remove R icon in logo
2020-01-13 15:32:59 +08:00
周鹏飞@yunify
0447701b13 update com.cn to io, add roadmap
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>

Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>

Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2020-01-13 14:38:17 +08:00
hongming
71849f028f [WIP] API refactor (#1737)
* refactor openpitrix API

Signed-off-by: hongming <talonwan@yunify.com>

* add openpitrix mock client

Signed-off-by: hongming <talonwan@yunify.com>

* refactor tenant API

Signed-off-by: hongming <talonwan@yunify.com>

* refactor IAM API

Signed-off-by: hongming <talonwan@yunify.com>

* refactor IAM API

Signed-off-by: hongming <talonwan@yunify.com>
2020-01-13 13:36:21 +08:00
周鹏飞@yunify
a15c4ac24a refine readme guide
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2020-01-11 12:43:37 +08:00
KubeSphere CI Bot
ba809e3497 Merge pull request #1677 from runzexia/devops-crontribute-guide
devops dev guides
2020-01-06 12:17:00 +08:00
zryfish
c40d1542a2 refactor code structure (#1738) 2020-01-04 12:44:54 +08:00
zryfish
eceadec69c devlopment branch (#1736) 2020-01-02 20:52:00 +08:00
huanggze
4edf909c2f add monitoring dev guides
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-12-23 21:46:50 +08:00
huanggze
8022de126c add logging dev guides
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-12-23 21:12:08 +08:00
runzexia
af028b8d92 Update Kubesphere-code-layout.md 2019-12-23 16:36:52 +08:00
zhuxiaoyang
0427296dcb update s2i doc
Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>
2019-12-23 11:49:42 +08:00
pengfei
5812b88848 refine devops-pipeline-overview.md 2019-12-23 11:40:30 +08:00
zhuxiaoyang
c022517637 Merge branch 's2i-doc' of https://github.com/soulseen/kubesphere into s2i-doc 2019-12-23 11:02:13 +08:00
zhuxiaoyang
5d12701ca4 update s2i arch
Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>
2019-12-23 11:01:47 +08:00
pengfei
f7b797eda9 refine README.md 2019-12-23 11:01:21 +08:00
pengfei
5a1bfcc0ef refine s2i_b2i_overview.md 2019-12-23 10:47:25 +08:00
KubeSphere CI Bot
ff0ffe8650 Merge pull request #1691 from FeynmanZhou/master
add powered-by-kubesphere.md
2019-12-20 16:22:50 +08:00
周鹏飞@yunify
81cf0b6499 update markdown format
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-12-20 16:21:07 +08:00
周鹏飞@yunify
b51b2f56fc add powered-by-kubesphere.md
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>

Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>

Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-12-20 12:17:49 +08:00
zhuxiaoyang
7eebc47784 update s2i docs
Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>
2019-12-19 19:19:10 +08:00
runzexia
656e6cba21 add some docs for kubesphere code layout
Signed-off-by: runzexia <runzexia@yunify.com>
2019-12-19 15:59:50 +08:00
KubeSphere CI Bot
1bcc27a68f Merge pull request #1679 from rayzhou2017/master
Update Readme
2019-12-19 14:32:49 +08:00
pengfei
4e9f833726 refine Readme description 2019-12-19 14:30:52 +08:00
Ray Zhou
685d7e9821 Update Readme
>>>>>>> 13f4c4a289f66e9a012327c508c62ee953e3025c
2019-12-18 12:22:49 +08:00
runzexia
de093a20f7 devops dev guides
Signed-off-by: runzexia <runzexia@yunify.com>
2019-12-17 16:48:54 +08:00
zryfish
ea88c8803d use istio client-go library instead of knative (#1661)
use istio client-go library instead of knative
bump kubernetes dependency version
change code coverage to codecov
2019-12-13 11:26:18 +08:00
KubeSphere CI Bot
f249a6e081 Merge pull request #1659 from soulseen/fix/struct_memory_address
fix jenkins request func parameters
2019-12-12 15:01:47 +08:00
zhuxiaoyang
6d45c9cbac fix jenkins request func parameters
Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>
2019-12-12 14:39:28 +08:00
zryfish
1b67c43731 remove dependency on kubernetes repo (#1651)
remove dependency on kubernetes/kubernetes repo
2019-12-10 14:46:55 +08:00
KubeSphere CI Bot
c9a51f913e Merge pull request #1646 from zryfish/add_router_crd
move custom apis to kapis
2019-12-09 14:41:46 +08:00
KubeSphere CI Bot
09aa278247 Merge pull request #1626 from zehuaiWANG/kubesphere-review
modified the resources
2019-12-09 14:29:46 +08:00
Jeff
432bd3310a move custom apis to kapis 2019-12-09 11:48:44 +08:00
Jeff
2968666376 move custom apis to kapis 2019-12-09 11:12:45 +08:00
KubeSphere CI Bot
455169b825 Merge pull request #1622 from FeynmanZhou/docs-2.1
add KubeSphere CLA
2019-12-05 19:31:45 +08:00
KubeSphere CI Bot
86b91a562f Merge pull request #1551 from runzexia/update-contribute-guide
contributing guide
2019-12-05 10:25:45 +08:00
zehuaiWANG
45ef79795d modified the resources 2019-12-03 14:12:23 +08:00
KubeSphere CI Bot
4cf7014ac7 Merge pull request #1625 from zehuaiWANG/kubesphere-add-default-param
kubesphere-add-default-param
2019-12-03 11:34:44 +08:00
zehuaiWANG
3b927ba847 kubesphere-add-default-param 2019-12-03 10:38:47 +08:00
runzexia
907a4f5f2b update
Signed-off-by: runzexia <runzexia@yunify.com>
2019-12-02 10:53:02 +08:00
周鹏飞@yunify
9431926a67 add demo environment info
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-12-02 00:24:04 +08:00
周鹏飞@yunify
696aa71300 add KubeSphere CLA
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-12-01 23:16:05 +08:00
pengfei
92d1a025bf Update How-to-run-KubeSphere-core.md 2019-11-29 00:26:40 +08:00
pengfei
5db70bce77 Update How-to-connect-remote-service.md 2019-11-29 00:13:11 +08:00
pengfei
99bf6d6219 refine how-to-build 2019-11-29 00:07:49 +08:00
runzexia
1d599c2634 all should run test
build should run fmt & vet

Signed-off-by: runzexia <runzexia@yunify.com>
2019-11-26 20:53:51 +08:00
runzexia
50bc00b004 use telepresence to debug remote service
Signed-off-by: runzexia <runzexia@yunify.com>
2019-11-26 19:25:01 +08:00
runzexia
de2baa695b add project overrview
Signed-off-by: runzexia <runzexia@yunify.com>
2019-11-26 19:25:01 +08:00
runzexia
d9ac3c69b9 run kubesphere core in local env
Signed-off-by: runzexia <runzexia@yunify.com>
2019-11-26 19:25:00 +08:00
runzexia
1baa16b0aa contribete guide
Signed-off-by: runzexia <runzexia@yunify.com>
2019-11-26 19:25:00 +08:00
zryfish
618328e62e change router underlying resource apiversion (#1590) 2019-11-26 19:18:27 +08:00
zryfish
16d9c2aebb Change router apiversion (#1586)
* change router underlying resource apiversion
2019-11-26 16:53:01 +08:00
Jeff
c3069c7dfd add coveralls test coverage stats 2019-11-26 16:32:28 +08:00
Jeff
36bcfdcd99 add coveralls test coverage stats 2019-11-26 16:32:28 +08:00
KubeSphere CI Bot
97ea468121 Merge pull request #1565 from soulseen/fix/typo
fix typo
2019-11-21 22:04:48 +08:00
zhuxiaoyang
6db3a0ba3e fix typo
Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>
2019-11-21 19:25:32 +08:00
zryfish
a7f67bd70c Update README.md
Add go report badge
2019-11-21 17:50:32 +08:00
zryfish
d3724bd36e Update .travis.yml
Remove golint installation
2019-11-21 11:19:00 +08:00
KubeSphere CI Bot
1f5defb044 Merge pull request #1465 from FeynmanZhou/docs-2.1
update readme to 2.1
2019-11-12 10:31:10 +08:00
周鹏飞@yunify
994b74f89a update date, add minimal installation hints
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-11-12 10:20:15 +08:00
周鹏飞@yunify
ff5239545d fix typo
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-11-12 09:54:32 +08:00
周鹏飞@yunify
6e16ea26f5 update readme to 2.1
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-11-12 09:51:27 +08:00
Jeff
443e37d8bd change web kubectl to use sa 2019-11-09 17:38:35 +08:00
Jeff
2c94cfddf1 fix router annotations 2019-11-09 17:38:35 +08:00
KubeSphere CI Bot
b6f65272c8 Merge pull request #1434 from wansir/master
fix openpitrix resource sort param
2019-11-08 17:27:07 +08:00
hongming
981669ca5a fix openpitrix resource sort param
Signed-off-by: hongming <talonwan@yunify.com>
2019-11-08 17:13:26 +08:00
KubeSphere CI Bot
948f293d46 Merge pull request #1418 from wansir/master
support node status filter
2019-11-08 14:47:07 +08:00
hongming
7a909e574e support node status filter 2019-11-08 10:45:58 +08:00
KubeSphere CI Bot
e7bb158e4f Merge pull request #1420 from wansir/kubectl
fix terminal resize
2019-11-07 23:25:07 +08:00
hongming
313bd5c050 fix terminal resize 2019-11-07 22:52:43 +08:00
KubeSphere CI Bot
75d1f9700a Merge pull request #1403 from wansir/kubectl
refactor kubectl websocket API
2019-11-07 13:45:06 +08:00
hongming
2c52a7064c refactor kubectl websocket API
Signed-off-by: hongming <talonwan@yunify.com>
2019-11-07 13:29:42 +08:00
KubeSphere CI Bot
5cc4169244 Merge pull request #1392 from runzexia/refine-job-rerun
job rerun with resourceVersion
2019-11-07 12:09:06 +08:00
runzexia
c0533295a9 resourceVersion should be required
Signed-off-by: runzexia <runzexia@yunify.com>
2019-11-06 21:24:54 +08:00
runzexia
e72b0be0c9 job rerun with resourceVersion
Signed-off-by: runzexia <runzexia@yunify.com>
2019-11-06 21:22:01 +08:00
KubeSphere CI Bot
0c11778e01 Merge pull request #1384 from huanggze/timeout
fix: redefine prometheus client timeout
2019-11-06 17:49:04 +08:00
huanggze
b7fce91ac7 fix: redefine prometheus client timeout
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-11-06 17:38:18 +08:00
KubeSphere CI Bot
8dc4a14483 Merge pull request #1361 from wansir/master
refine workspaces-manager rules
2019-11-05 17:00:00 +08:00
hongming
b9d218316a refine workspaces-manager rules
Signed-off-by: hongming <talonwan@yunify.com>
2019-11-05 15:42:49 +08:00
KubeSphere CI Bot
857faac9c2 Merge pull request #1358 from wansir/master
support querying resources without paging
2019-11-05 14:48:00 +08:00
KubeSphere CI Bot
9822429c35 Merge pull request #1356 from runzexia/refine-devops-not-enable-log
refine devops not enable log
2019-11-05 14:46:59 +08:00
hongming
c1dccd4620 support querying resources without paging
Signed-off-by: hongming <talonwan@yunify.com>
2019-11-05 14:24:07 +08:00
runzexia
11ac54639b refine devops not enable log
Signed-off-by: runzexia <runzexia@yunify.com>
2019-11-05 13:57:23 +08:00
Jeff
da362aff4e fix slow component status api 2019-11-05 09:12:50 +08:00
Jeff
6dcf1e4cda fix slow component status api 2019-11-04 17:12:51 +08:00
KubeSphere CI Bot
24cbc083b0 Merge pull request #1341 from wansir/policy-rules
refine iam policy rules
2019-11-04 14:39:59 +08:00
hongming
636ace1b86 refine iam policy rules
Signed-off-by: hongming <talonwan@yunify.com>
2019-11-04 12:48:00 +08:00
KubeSphere CI Bot
04f6eba711 Merge pull request #1333 from shinebayar-g/fix/contrib
fix broken link
2019-11-04 06:57:58 +08:00
shinebayar-g
c0ebdc7ec7 fix broken link
Signed-off-by: shinebayar-g <shinebayar.gansukh@gmail.com>
2019-11-03 23:53:57 +08:00
KubeSphere CI Bot
1da9af6c4d Merge pull request #1327 from kubesphere/update-app-store-screenshot
update app-store screenshot
2019-11-03 22:25:58 +08:00
pengfei
53b0e55f72 Update README_zh.md 2019-11-03 14:48:01 +08:00
KubeSphere CI Bot
5d0ea5dd39 Merge pull request #1322 from wansir/policy-rules
refine iam policy rules
2019-11-02 23:18:58 +08:00
KubeSphere CI Bot
d7a73c003f Merge pull request #1310 from wansir/iam
fix: delete propagation policy
2019-11-02 23:16:58 +08:00
hongming
8b037cef3f refine iam policy rules
Signed-off-by: hongming <talonwan@yunify.com>
2019-11-02 13:28:12 +08:00
hongming
228ce54f4f fix: delete propagation policy
Signed-off-by: hongming <talonwan@yunify.com>
2019-11-01 16:07:04 +08:00
KubeSphere CI Bot
cae0911d46 Merge pull request #1290 from wansir/bug-fix
fix: privilege escalation
2019-11-01 15:10:58 +08:00
hongming
0177baf916 fix: privilege escalation
Signed-off-by: hongming <talonwan@yunify.com>
2019-10-31 15:47:49 +08:00
KubeSphere CI Bot
6790844340 Merge pull request #1250 from huanggze/dev
add back metric workload_memory_usage
2019-10-30 17:57:56 +08:00
huanggze
82db9fd721 add metrics workload_memory_usage
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-10-29 16:57:59 +08:00
KubeSphere CI Bot
976bd16542 Merge pull request #1213 from wansir/caddy
improve path exclusion rule
2019-10-28 11:20:56 +08:00
hongming
2d14a0f589 improve path exclusion rule
Signed-off-by: hongming <talonwan@yunify.com>
2019-10-25 18:44:07 +08:00
KubeSphere CI Bot
9bf01ebe6a Merge pull request #1199 from soulseen/fix/sonar
fix set sonarqube options
2019-10-25 14:26:55 +08:00
zhuxiaoyang
f9bbaeb9d6 fix set sonarqube options
Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>
2019-10-25 13:24:59 +08:00
KubeSphere CI Bot
59de7f610b Merge pull request #1181 from wansir/workspace-controller
fix: do not delete devops project when devops is not enabled
2019-10-25 11:40:54 +08:00
hongming
34e15c2bdc fix: do not delete devops project when devops is not enabled
Signed-off-by: hongming <talonwan@yunify.com>
2019-10-25 02:25:01 +08:00
KubeSphere CI Bot
f16bdf0c3d Merge pull request #1170 from huanggze/master
add metric  namespace_configmap_count
2019-10-24 20:52:55 +08:00
KubeSphere CI Bot
0b9326862c Merge pull request #1169 from wansir/openpitrix
fix: deployed instances counting error
2019-10-24 20:51:54 +08:00
huanggze
7ccd23c720 add metric namespace_configmap_count
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-10-24 15:16:51 +08:00
hongming
6110889922 fix: deployed instances counting error
Signed-off-by: hongming <talonwan@yunify.com>
2019-10-24 14:39:45 +08:00
KubeSphere CI Bot
a974766ef6 Merge pull request #1159 from wansir/master
fix: allow workspace-viewer view audits log
2019-10-24 11:22:54 +08:00
hongming
2c9ada7c69 fix: allow workspace-viewer view audits log
Signed-off-by: hongming <talonwan@yunify.com>
2019-10-24 03:00:43 +08:00
KubeSphere CI Bot
ffa3741aa0 Merge pull request #1111 from wansir/master
feat: support user-facing role filter
2019-10-22 09:52:53 +08:00
KubeSphere CI Bot
af5d7de53f Merge pull request #1109 from wansir/openpitrix
support application sorting
2019-10-22 09:52:48 +08:00
hongming
acfcd619e4 feat: support user-facing role filter
Signed-off-by: hongming <talonwan@yunify.com>
2019-10-21 17:56:41 +08:00
hongming
2352e2a526 support application sorting
Signed-off-by: hongming <talonwan@yunify.com>
2019-10-21 15:32:12 +08:00
KubeSphere CI Bot
6bb31198dc Merge pull request #1104 from wansir/master
fix: null pointer exception
2019-10-21 11:28:47 +08:00
hongming
6ac00afa9a fix: null pointer exception
Signed-off-by: hongming <talonwan@yunify.com>
2019-10-21 10:47:17 +08:00
Jeff
02269bb9d7 add leader election to controller manager 2019-10-20 18:45:03 +08:00
KubeSphere CI Bot
d8dc4c543e Merge pull request #1095 from wansir/master
refine policy rules
2019-10-19 16:25:52 +08:00
hongming
42f6ba4935 refine policy rules
Signed-off-by: hongming <talonwan@yunify.com>
2019-10-18 18:11:33 +08:00
KubeSphere CI Bot
7a6935ff17 Merge pull request #607 from wansir/token-management
feat: token management
2019-10-18 16:23:46 +08:00
hongming
2024e928a2 feat: support resource owner password credentials grant
Signed-off-by: hongming <talonwan@yunify.com>
2019-10-18 16:08:56 +08:00
KubeSphere CI Bot
03eba96c50 Merge pull request #1068 from wansir/app
feat: support app.k8s.io applications paging query
2019-10-18 11:22:47 +08:00
KubeSphere CI Bot
d343d25eb2 Merge pull request #1073 from huanggze/es-error
refine es error format
2019-10-17 19:03:46 +08:00
huanggze
684632d9ac refine es error format
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-10-17 17:23:26 +08:00
KubeSphere CI Bot
c02417bd9b Merge pull request #1038 from wansir/sort-resource
fix: sort deployment by last update time
2019-10-17 17:07:46 +08:00
hongming
e1a70bc8cd feat: support app.k8s.io applications paging query
Signed-off-by: hongming <talonwan@yunify.com>
2019-10-17 17:04:48 +08:00
KubeSphere CI Bot
3b9e743211 Merge pull request #1065 from huanggze/devops-disabled
monitor: no need to produce error when devops is disabled
2019-10-17 16:59:46 +08:00
KubeSphere CI Bot
3dd3f8870d Merge pull request #1063 from huanggze/download
change download log file type to plain text explictly
2019-10-17 16:48:45 +08:00
huanggze
f8bf984191 monitor: no need to produce error when devops is disabled
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-10-17 15:53:48 +08:00
huanggze
1a40f49416 explicate file type
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-10-17 15:07:29 +08:00
hongming
0ee6b8d7db fix: sort deployment by last update time
Signed-off-by: hongming <talonwan@yunify.com>
2019-10-16 16:52:00 +08:00
KubeSphere CI Bot
90961a24df Merge pull request #1005 from huanggze/monit
fix crash when monitoring component is disabled
2019-10-16 14:30:45 +08:00
KubeSphere CI Bot
c3ccc3c2e8 Merge pull request #1004 from runzexia/update-devops-flyway-image-
update devops flyway image for arm
2019-10-16 14:29:45 +08:00
KubeSphere CI Bot
d531028c41 Merge pull request #991 from wansir/app-management
fix: add missing parameter
2019-10-16 14:27:44 +08:00
KubeSphere CI Bot
ca63dcb404 Merge pull request #990 from soulseen/fix/github_webhook
fix github webhook Content type support
2019-10-16 13:59:44 +08:00
huanggze
dbfb7f8fc9 fix crash when monit is disabled
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-10-15 16:06:50 +08:00
runzexia
e0613368a8 update devops flywau image for arm
Signed-off-by: runzexia <runzexia@yunify.com>
2019-10-15 15:42:23 +08:00
zhuxiaoyang
c582079438 fix github webhook Content type support
Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>
2019-10-15 10:41:40 +08:00
hongming
26a7f2b75e fix: add missing parameter
Signed-off-by: hongming <talonwan@yunify.com>
2019-10-15 10:33:21 +08:00
KubeSphere CI Bot
cfc1929a80 Merge pull request #946 from huanggze/highlight
remove log highlighting
2019-10-12 18:53:51 +08:00
KubeSphere CI Bot
f29a10e487 Merge pull request #938 from wansir/controller
refine clusterrolebinding controller
2019-10-12 18:51:10 +08:00
KubeSphere CI Bot
c52f928455 Merge pull request #944 from runzexia/do-not-set-md5
do not set content md5 manually
2019-10-12 18:50:09 +08:00
huanggze
1e7b74818a remove log highlighting
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-10-12 17:53:13 +08:00
runzexia
23c1560a35 not set content md5 manually
Signed-off-by: runzexia <runzexia@yunify.com>
2019-10-12 17:21:10 +08:00
hongming
4b7b49487b refine clusterrolebinding controller
Signed-off-by: hongming <talonwan@yunify.com>
2019-10-12 14:26:29 +08:00
KubeSphere CI Bot
4d79df4062 Merge pull request #919 from runzexia/fix-missing-scheme-in-kubeconfig
fix missing scheme in kubeconfig
2019-10-11 23:34:50 +08:00
runzexia
54f518ff0d add master url scheme prefix
Signed-off-by: runzexia <runzexia@yunify.com>
2019-10-11 23:09:43 +08:00
KubeSphere CI Bot
593304a8ce Merge pull request #903 from wansir/namespace-controller
fix: return early when err is nil
2019-10-11 21:00:57 +08:00
Jeff
3f5cbcd4f9 fix controller manager bug 2019-10-11 21:00:50 +08:00
hongming
78c40dc20b fix: return early when err is nil
Signed-off-by: hongming <talonwan@yunify.com>
2019-10-11 15:44:11 +08:00
KubeSphere CI Bot
466fd56262 Merge pull request #894 from wansir/s2i
update namespace operator policy rules
2019-10-11 10:57:50 +08:00
KubeSphere CI Bot
458603be08 Merge pull request #896 from lilien1010/patch-1
修正source to image 链接404的问题
2019-10-10 19:36:49 +08:00
Lien
1ca2b504e3 修正source to image 链接404的问题 2019-10-10 18:30:43 +08:00
hongming
3c802ebb3d support s2ibuilder
Signed-off-by: hongming <talonwan@yunify.com>
2019-10-10 17:33:57 +08:00
KubeSphere CI Bot
b63751ed38 Merge pull request #889 from wansir/annotation
refine annotation key
2019-10-10 15:12:50 +08:00
hongming
c41b2577bb refine annotation key
Signed-off-by: hongming <talonwan@yunify.com>
2019-10-10 14:35:47 +08:00
Jeff
a03433d538 strip senstive information 2019-10-10 14:10:06 +08:00
KubeSphere CI Bot
aba512659f Merge pull request #878 from wansir/update-iam-policy
update iam policy
2019-10-10 11:58:50 +08:00
hongming
42e1b823e2 update iam policy
Signed-off-by: hongming <talonwan@yunify.com>
2019-10-10 11:05:44 +08:00
KubeSphere CI Bot
a8122a58c4 Merge pull request #881 from runzexia/input-omitempty
input omitempty
2019-10-09 17:34:49 +08:00
runzexia
9131c4339b input omitempty
Signed-off-by: runzexia <runzexia@yunify.com>
2019-10-09 14:36:12 +08:00
KubeSphere CI Bot
8fcdce8903 Merge pull request #876 from wansir/fix-controller
remove useless logs
2019-10-08 20:57:06 +08:00
hongming
9cff0cc942 remove useless logs
Signed-off-by: hongming <talonwan@yunify.com>
2019-10-08 17:20:19 +08:00
KubeSphere CI Bot
65c803fd3a Merge pull request #835 from runzexia/cleanup-s2ibinary
clean up s2ibinary
2019-10-08 16:18:08 +08:00
runzexia
1406961e8c fix typo
Signed-off-by: runzexia <runzexia@yunify.com>
2019-10-08 15:18:04 +08:00
calvinyv
f5392df08d Update README.md 2019-10-04 22:38:41 +08:00
KubeSphere CI Bot
9b32797437 Merge pull request #836 from wansir/fix-pod-filter
fix: filter pod by service name
2019-09-29 17:23:13 +08:00
KubeSphere CI Bot
366d7f03a5 Merge pull request #841 from huanggze/log-options
log: cleanup es client options
2019-09-29 17:22:57 +08:00
huanggze
11854e3320 log: cleanup es client options
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-09-29 16:20:47 +08:00
hongming
fcd8d8ee1c fix: filter pod by service name
Signed-off-by: hongming <talonwan@yunify.com>
2019-09-29 15:23:51 +08:00
runzexia
8f9c2126f7 fix vet
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-29 15:20:02 +08:00
runzexia
d453a3b245 clean up s2ibinary
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-29 15:04:11 +08:00
Jeff
d2b1bf4ba0 skip informer creating when corresponding crd not exists 2019-09-29 13:32:07 +08:00
KubeSphere CI Bot
7ad77c32fc Merge pull request #831 from huanggze/metrics
metrics: add missing placeholder
2019-09-29 12:38:58 +08:00
KubeSphere CI Bot
f9fe577df3 Merge pull request #811 from wansir/refactor-openpitrix
fix: filter app template in built-in repo
2019-09-29 12:37:57 +08:00
huanggze
a0588747f8 metrics: add missing placeholder
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-09-29 12:04:25 +08:00
hongming
2acb68e354 feat: token management
Signed-off-by: hongming <talonwan@yunify.com>
2019-09-29 12:04:13 +08:00
hongming
bfb8924eb3 refactor: openpitrix module
Signed-off-by: hongming <talonwan@yunify.com>
2019-09-29 10:38:24 +08:00
KubeSphere CI Bot
3c7074b40d Merge pull request #821 from soulseen/format
format
2019-09-28 21:59:12 +08:00
zhuxiaoyang
778b8a1f3f format
Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>
2019-09-28 21:01:32 +08:00
KubeSphere CI Bot
24dd7eaaab Merge pull request #818 from soulseen/fix/pipeline_input
fix pipeline input support any type
2019-09-28 18:03:57 +08:00
zhuxiaoyang
053f572ad6 fix pipeline input support any type
Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>
2019-09-28 17:57:24 +08:00
KubeSphere CI Bot
4aebee51e8 Merge pull request #815 from runzexia/401-428
parse 401 err, change code to 428
2019-09-28 16:23:12 +08:00
Jeff
967c4ca2fe fix stripping config options 2019-09-28 00:12:55 +08:00
runzexia
f6c616f1e9 parse 401 err, change code to 428
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-27 23:50:07 +08:00
KubeSphere CI Bot
416719aae3 Merge pull request #813 from huanggze/log-highlight
log: fix crash if api caller has no access to provided namespaces
2019-09-27 20:11:56 +08:00
Jeff
69ab71d629 fix hypersphere apis installation 2019-09-27 20:11:51 +08:00
huanggze
bbfb546246 log: fix crash if api caller has no access to provided namespaces
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-09-27 16:22:24 +08:00
KubeSphere CI Bot
106354819e Merge pull request #809 from runzexia/update-s2ib-download-url
update s2i download url
2019-09-27 14:33:57 +08:00
runzexia
731c426bfd update s2i download url
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-27 14:29:40 +08:00
Jeff
86ae12d170 fix hypersphere apis installation 2019-09-26 23:20:14 +08:00
Jeff
5382a74acb fix apigateway clientset bug 2019-09-26 21:11:44 +08:00
Jeff
28af678748 fix apigateway clientset bug 2019-09-26 19:29:16 +08:00
KubeSphere CI Bot
fe0108d28f Merge pull request #799 from huanggze/es-options
log: fix elastic version detection
2019-09-26 19:26:11 +08:00
huanggze
2b30db43af log: fix elastic version detection
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-09-26 19:23:17 +08:00
KubeSphere CI Bot
49285bedd8 Merge pull request #798 from runzexia/fix-job-trigger-typo
fix typo & regenerate swagger
2019-09-26 19:01:56 +08:00
runzexia
2f87ad7e2c fmt swagger.json
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-26 18:54:53 +08:00
runzexia
02fd803ca9 fix typo & regenerate swagger
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-26 16:46:15 +08:00
KubeSphere CI Bot
24b0a97396 Merge pull request #668 from wansir/refactor-openpitrix
refactor: openpitrix module
2019-09-26 14:00:11 +08:00
hongming
1b5681c12b refactor: openpitrix module
Signed-off-by: hongming <talonwan@yunify.com>
2019-09-26 13:41:00 +08:00
KubeSphere CI Bot
8bd7a2d5bf Merge pull request #793 from runzexia/jenkins-honorRefspec
default set honarRefspec true
2019-09-26 11:55:56 +08:00
runzexia
047c5bf514 default set honarRefspec true
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-26 11:31:55 +08:00
KubeSphere CI Bot
31e23d73c3 Merge pull request #792 from FeynmanZhou/master
refine readme, add more cncf icons and screenshot
2019-09-26 09:24:56 +08:00
周鹏飞@yunify
284bd1470c refine readme, add more cncf icons and screenshot
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-09-26 00:22:14 +08:00
Jeff
8d853ccbe7 fix ks account options 2019-09-25 17:03:20 +08:00
Jeff
aee01ccd0b fix ks account options 2019-09-25 17:03:20 +08:00
KubeSphere CI Bot
d54a8a4675 Merge pull request #789 from huanggze/metrics
monitor: filter out non-labeled workspace
2019-09-25 17:02:11 +08:00
KubeSphere CI Bot
f8531ec2ba Merge pull request #768 from huanggze/log-download
feat: allow to export logs
2019-09-25 15:57:55 +08:00
huanggze
2ad1e49dcc monitor: filter out non-labeled workspace
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-09-25 15:55:26 +08:00
huanggze
a71b35db9c feat: allow to export logs
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-09-25 14:03:47 +08:00
Jeff
d0dc66cf28 fix servicemesh options nil bug 2019-09-25 01:47:46 +08:00
KubeSphere CI Bot
284c0d6425 Merge pull request #783 from soulseen/resource_map
update resourceMap
2019-09-24 18:40:10 +08:00
zhuxiaoyang
563f554a98 update resourceMap
Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>
2019-09-24 10:50:44 +08:00
Jeff
468f7eddca fix config nil error 2019-09-23 14:30:48 +08:00
KubeSphere CI Bot
3dca9feb0f Merge pull request #771 from wansir/fix-ldap-client
fix: ldap connection pool leak
2019-09-23 14:27:10 +08:00
KubeSphere CI Bot
1361106bdd Merge pull request #774 from wansir/fix-controller
fix: controller error handle function
2019-09-21 17:55:54 +08:00
hongming
a4281989c3 fix: controller error handle function
Signed-off-by: hongming <talonwan@yunify.com>
2019-09-20 20:58:19 +08:00
Jeff
f85f6b6b58 fix request logs 2019-09-20 17:45:31 +08:00
hongming
11570288af fix: ldap connection pool
Signed-off-by: hongming <talonwan@yunify.com>
2019-09-20 14:02:05 +08:00
Jeff
49dacd3e70 fix kubesphere gateway bug 2019-09-19 14:24:48 +08:00
KubeSphere CI Bot
3fc4207585 Merge pull request #756 from huanggze/monitor-2.1-a
refactor monitor module
2019-09-19 13:44:53 +08:00
huanggze
0e6a19a779 comment-1
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-09-19 11:56:12 +08:00
KubeSphere CI Bot
84c6997711 Merge pull request #765 from wnxn/remove-ceph-secret-controller
Remove creating Ceph secret controller
2019-09-19 11:12:52 +08:00
Xin Wang
8dbefd74fe Remove creating Ceph secret controller 2019-09-19 10:49:24 +08:00
KubeSphere CI Bot
0b50a5db75 Merge pull request #762 from soulseen/fix/cronjob_parse
fix cronjob msg parse
2019-09-18 16:20:08 +08:00
huanggze
df6ed5e995 refactor monitor module
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-09-18 15:53:25 +08:00
soulseen
31eacd6c29 fix cronjob msg parse
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-09-18 15:50:17 +08:00
Jeff
c53bdcad60 fix apiserver setup logs 2019-09-17 23:44:42 +08:00
KubeSphere CI Bot
06e16b5087 Merge pull request #757 from zryfish/new_options
refactor logging options
2019-09-17 20:40:52 +08:00
Jeff
f61c5e09ba refactor logging options 2019-09-17 16:00:54 +08:00
KubeSphere CI Bot
fa1e62f6ac Merge pull request #754 from runzexia/clean-golog
cleanup glog
2019-09-17 13:45:08 +08:00
runzexia
984764979a do not need glog
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-16 20:31:07 +08:00
Jeff
97c9a1786a 1. change glog to klog
2. move types to api package to avoid cyclic import
2019-09-16 18:46:28 +08:00
KubeSphere CI Bot
79735c4543 Merge pull request #753 from wansir/fix-npe
fix: null pointer exception
2019-09-16 18:31:51 +08:00
hongming
7fef26233b fix: NPE
Signed-off-by: hongming <talonwan@yunify.com>
2019-09-16 18:22:33 +08:00
calvinyv
693ca1e8b1 fix zh sample command 2019-09-16 17:54:18 +08:00
calvinyv
bc3ec2a7d8 fix sample command 2019-09-16 17:53:22 +08:00
KubeSphere CI Bot
6594112ba9 Merge pull request #751 from runzexia/docker-api-version-negotiation
docker api version negotiation
2019-09-16 15:16:51 +08:00
KubeSphere CI Bot
635dcc9b39 Merge pull request #739 from wnxn/attach-controller
add expand volume controller
2019-09-16 14:55:51 +08:00
runzexia
2759b20be6 docker api version negotiation
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-16 14:44:53 +08:00
Xin Wang
55483e6578 add expand volume controller
Signed-off-by: Xin Wang <wileywang@yunify.com>
2019-09-16 14:20:07 +08:00
KubeSphere CI Bot
7c049a24da Merge pull request #744 from satrobit/master
Corrected the scripts directory in README files
2019-09-13 23:40:50 +08:00
satrobit
45e108ab13 Corrected the scripts directory in README files 2019-09-13 19:44:51 +04:30
Jeff
18243b8b64 add sc informer 2019-09-12 16:29:22 +08:00
KubeSphere CI Bot
715c1a462d Merge pull request #716 from runzexia/jenkins-pageable-response
get runs & pipelines pageable resposne
2019-09-12 15:31:06 +08:00
Jeff
5dde737e6c add more option comments 2019-09-12 15:29:53 +08:00
KubeSphere CI Bot
66af315a85 Merge pull request #737 from runzexia/devops-disable-logic
when devops is disabled, there is no need to clean up the devops data.
2019-09-12 15:28:50 +08:00
runzexia
95a9d5ff20 when devops is disabled, there is no need to clean up the devops data.
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-12 14:16:26 +08:00
KubeSphere CI Bot
ee1c5f9d5f Merge pull request #736 from runzexia/update-devops-flags
update devops flags default value
2019-09-12 14:10:50 +08:00
runzexia
f0ab59f75b fix comment
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-12 14:07:37 +08:00
runzexia
17f9b0879f refmt code
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-12 11:47:12 +08:00
runzexia
85a0586529 fix comment
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-12 11:25:58 +08:00
runzexia
8d2d8f64a0 fix comment
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-12 11:09:17 +08:00
runzexia
307309269c Merge branch 'master' into jenkins-pageable-response
Signed-off-by: runzexia <runzexia@yunify.com>

# Conflicts:
#	pkg/models/devops/devops.go
2019-09-12 11:04:32 +08:00
runzexia
60298d9e20 update devops flags default value
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-12 10:46:19 +08:00
Jeff
495785092e add ks-apiserver options 2019-09-12 02:09:17 +08:00
Jeff
e4d84b020c add ks-apiserver options 2019-09-12 01:33:07 +08:00
Jeff
c1cec8e1bc add ks-apiserver options 2019-09-12 00:50:42 +08:00
Jeff
27cdb3a304 add ks-apiserver options 2019-09-12 00:10:07 +08:00
Jeff
ddaf5b181b add ks-apiserver options 2019-09-11 23:54:14 +08:00
Jeff
c199b1afc9 add ks-apiserver options 2019-09-11 23:54:14 +08:00
zryfish
758f8d7a8c Update Dockerfile 2019-09-11 21:12:29 +08:00
KubeSphere CI Bot
1dcb9232d7 Merge pull request #702 from zryfish/refactor_clientset
refactor dependent service client creation
2019-09-11 20:27:49 +08:00
Jeff
96d2ac4112 This is a huge commit, it does following things:
1. refactor kubesphere dependency service client creation, we can
disable dependency by config
2. dependencies can be configured by configuration file
3. refactor cmd package using cobra.Command, so we can use hypersphere
to invoke command sepearately. Later we only need to build one image to
contains all kubesphere core components. One command to rule them all!
4. live reloading configuration currently not implemented
2019-09-11 19:53:35 +08:00
KubeSphere CI Bot
52a1c2e619 Merge pull request #689 from huanggze/log-resource-name
refine log search
2019-09-11 19:12:49 +08:00
KubeSphere CI Bot
1cf74e4c2c Merge pull request #723 from huanggze/pvc
add pvc utilisation metrics
2019-09-11 16:48:06 +08:00
huanggze
7bcec5b608 add pvc utilisation metrics
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-09-11 11:41:47 +08:00
KubeSphere CI Bot
2f48909d60 Merge pull request #718 from runzexia/multibranch-pipeline-trigger
multi branch pipeline trigger
2019-09-11 11:39:50 +08:00
KubeSphere CI Bot
d283af6932 Merge pull request #720 from soulseen/improve/check
update check pipeline script & cronjob script
2019-09-11 10:40:49 +08:00
huanggze
8d85a56386 allow to search deleted workload logs
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-09-11 10:35:44 +08:00
soulseen
e786fa98ba update check pipeline script & cronjob script
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-09-10 18:14:18 +08:00
runzexia
2a7ada8ceb multi branch pipeline trigger
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-10 17:01:08 +08:00
runzexia
5afb7347d3 use klog
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-10 11:08:52 +08:00
runzexia
60220d9487 get runs & pipelines pageable resposne
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-10 11:06:25 +08:00
huanggze
1badf13538 use filter instead of must
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-09-09 17:38:51 +08:00
huanggze
78e8227f45 comment-1
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-09-09 17:38:51 +08:00
huanggze
fd28250015 resolve conflicts
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-09-09 17:38:27 +08:00
KubeSphere CI Bot
015caa4023 Merge pull request #711 from magicsong/porter
add porter-system
2019-09-09 16:28:49 +08:00
magicsong
fe4115ff3e add porter-system 2019-09-09 14:09:57 +08:00
KubeSphere CI Bot
8e66cea42b Merge pull request #656 from huanggze/log-2.1
logging: use elastic client for go
2019-09-09 13:34:09 +08:00
huanggze
9af0a6db2f remove unused func param
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-09-09 12:31:12 +08:00
KubeSphere CI Bot
9932d2ba5a Merge pull request #701 from huanggze/remove-filter
remove unused types and funcs
2019-09-08 14:15:48 +08:00
KubeSphere CI Bot
746248ab87 Merge pull request #692 from magicsong/nsnp
support calico with k8s storage
2019-09-08 14:13:49 +08:00
KubeSphere CI Bot
4e4664ef7e Merge pull request #708 from runzexia/change-status-code
api do not return 401
2019-09-08 14:11:48 +08:00
runzexia
60b484ce4b do not return 401 2019-09-06 17:37:36 +08:00
KubeSphere CI Bot
cd739022fd Merge pull request #693 from wnxn/pvc-stats
Add PVC stats API
2019-09-05 15:09:46 +08:00
Xin Wang
87865f9416 add pvc stats api
Signed-off-by: Xin Wang <wileywang@yunify.com>
2019-09-05 14:15:46 +08:00
magicsong
d3e694c6f0 change test image name 2019-09-04 17:49:44 +08:00
huanggze
4bd17d132f remove unused types and funcs
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-09-04 15:45:26 +08:00
huanggze
82488ac37a handle error for type assertion
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-09-04 15:14:31 +08:00
huanggze
429573c837 comment-1
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-09-04 15:14:31 +08:00
huanggze
bfed3a6baa update dependencies
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-09-04 15:14:11 +08:00
Jeff
70293cc6fd fix vendor directory 2019-09-04 14:04:37 +08:00
KubeSphere CI Bot
289b8ebd2b Merge pull request #700 from zryfish/add_lint_dependency
add dependency scripts
2019-09-04 13:01:47 +08:00
Jeff
37d239bac1 add dependency scripts 2019-09-04 12:25:53 +08:00
KubeSphere CI Bot
0a47cc3479 Merge pull request #698 from zryfish/add_denpendency_update_script
Add denpendency update script
2019-09-04 12:08:01 +08:00
Jeff
0d41e0ba52 add dependency scripts 2019-09-04 11:15:35 +08:00
Jeff
88b8c357f7 Merge branch 'master' of https://github.com/kubesphere/kubesphere 2019-09-04 10:48:33 +08:00
KubeSphere CI Bot
59b782ceee Merge pull request #697 from runzexia/refine-openapi-gen
do not genereate unused structs
2019-09-04 10:42:01 +08:00
Jeff
f4a63e3f07 Merge branch 'master' of https://github.com/kubesphere/kubesphere 2019-09-03 19:43:50 +08:00
runzexia
560845af6c reformat code
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-03 17:42:08 +08:00
runzexia
b1af2fd92b mv go generete to makefile
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-03 17:39:06 +08:00
runzexia
03fba172ce do not genereate unused structs
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-03 15:27:54 +08:00
KubeSphere CI Bot
7a5c24cc1b Merge pull request #684 from wansir/feat-horizontalpodautoscalers
feat: support horizontalpodautoscalers query
2019-09-02 20:37:45 +08:00
KubeSphere CI Bot
6d43f295ae Merge pull request #639 from soulseen/improve/search_image
add docker image search api
2019-09-02 17:20:00 +08:00
KubeSphere CI Bot
ec7ff9443c Merge pull request #634 from runzexia/s2ibin-upload
s2ibin upload
2019-09-02 17:18:45 +08:00
magicsong
82f5309a1c suppor k8s node etcd 2019-09-02 16:54:34 +08:00
KubeSphere CI Bot
972d835096 Merge pull request #686 from wansir/fix-email-regex
fix: email validation
2019-09-02 16:37:45 +08:00
runzexia
34efbc19a2 fix ci
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-02 16:28:31 +08:00
hongming
5ca67f6e0c fix: email validation
Signed-off-by: hongming <talonwan@yunify.com>
2019-09-02 16:16:46 +08:00
runzexia
781783b61c use klog
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-02 15:34:51 +08:00
runzexia
91bca3cf53 fix comment
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-02 15:33:11 +08:00
runzexia
3156362f6c Merge branch 'master' into s2ibin-upload
Signed-off-by: runzexia <runzexia@yunify.com>

# Conflicts:
#	vendor/modules.txt
2019-09-02 15:21:38 +08:00
soulseen
959791ead5 update & clean debug log
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-09-02 15:21:26 +08:00
KubeSphere CI Bot
76800b435c Merge pull request #643 from wansir/controller
fix: policy rules cannot be updated during upgrade
2019-09-02 15:21:00 +08:00
KubeSphere CI Bot
6ba27c5e4d Merge pull request #678 from runzexia/workarount-devops-count
get devops count by username
2019-09-02 14:40:00 +08:00
KubeSphere CI Bot
f036dfb6a4 Merge pull request #681 from soulseen/update_package
update package s2ioperator
2019-09-02 14:37:45 +08:00
hongming
6ae7657b3e fix: policy rules cannot be updated during upgrade
Signed-off-by: hongming <talonwan@yunify.com>
2019-09-02 13:54:11 +08:00
runzexia
003bba5b62 fix comment
Signed-off-by: runzexia <runzexia@yunify.com>
2019-09-02 12:58:47 +08:00
KubeSphere CI Bot
7924e12c4e Merge pull request #688 from FeynmanZhou/readme-zh
add Readme for Chinese version, refine Readme-En
2019-09-02 12:02:45 +08:00
周鹏飞@yunify
4698b78e7a add Readme for Chinese version, refine Readme-En
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-09-02 11:40:00 +08:00
Jeff
2c3c7b54a2 Merge branch 'master' of https://github.com/kubesphere/kubesphere 2019-09-02 10:45:00 +08:00
hongming
4368639580 feat: support horizontalpodautoscalers query
Signed-off-by: hongming <talonwan@yunify.com>
2019-08-30 16:14:33 +08:00
soulseen
bbd151e7aa update package s2ioperator
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-08-30 10:37:09 +08:00
KubeSphere CI Bot
9b7d495834 Merge pull request #679 from runzexia/bitbucket-support
create scm servers always return match server
2019-08-30 10:14:44 +08:00
runzexia
f0b241251f create scm servers always return match server
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-29 17:30:01 +08:00
runzexia
93db1f982e get devops count by username
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-28 15:47:15 +08:00
KubeSphere CI Bot
f22e8ea90e Merge pull request #670 from runzexia/bitbucket-support
Pipeline Support Bitbucket Scm
2019-08-27 22:56:45 +08:00
runzexia
31bbbe0c3e revert network change
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-27 17:42:38 +08:00
runzexia
9d250d4b03 support create bitbucket server pipeline
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-27 17:38:56 +08:00
runzexia
5b2d1b9378 Merge branch 'master' into bitbucket-support 2019-08-27 16:12:23 +08:00
runzexia
1a513a9aa3 fix comment
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-27 15:30:57 +08:00
runzexia
f00917b025 reset to master
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-27 14:54:01 +08:00
Jeff
543b27c565 Merge branch 'master' of https://github.com/kubesphere/kubesphere 2019-08-27 11:29:43 +08:00
KubeSphere CI Bot
c6440ec6e5 Merge pull request #667 from wansir/fix-ldap-conn-pool
fix: recycle ldap connections in pool
2019-08-27 11:11:42 +08:00
hongming
abc7423053 fix: recycle ldap connections in pool
Signed-off-by: hongming <talonwan@yunify.com>
2019-08-27 10:55:57 +08:00
Jeff
ae7a304d9a Merge branch 'master' of https://github.com/kubesphere/kubesphere 2019-08-26 21:00:10 +08:00
KubeSphere CI Bot
defaa63d83 Merge pull request #624 from magicsong/nsnp
add ns networkpolicy, based on calicov3 api
2019-08-26 18:02:58 +08:00
Xuetao Song
1aa992a107 update gopath 2019-08-26 17:47:37 +08:00
runzexia
cee1f6425d refactor code
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-26 17:47:28 +08:00
runzexia
45ab9286a2 get & create scm server in jenkinsfile
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-26 14:22:39 +08:00
magicsong
b38acfd9e6 add etcd flag 2019-08-23 16:42:07 +08:00
magicsong
e33f5824b3 fix error 2019-08-23 11:13:42 +08:00
KubeSphere CI Bot
1684998299 Merge pull request #621 from wansir/fliter-support
support empty label filter
2019-08-22 16:09:37 +08:00
magicsong
122fb9035d fix conflict 2019-08-17 16:29:47 +08:00
KubeSphere CI Bot
b132d7af85 Merge pull request #649 from wansir/fix-workspace-rolebinding
fix: mistakenly delete workspace role binding
2019-08-17 16:11:56 +08:00
magicsong
6ce4b54ed5 fix 2019-08-17 16:08:11 +08:00
magicsong
7314064e83 temp commit 2019-08-17 15:34:02 +08:00
zryfish
2d52bb5681 Create installation_failure.md 2019-08-16 14:12:38 +08:00
KubeSphere CI Bot
a2a69e156e Merge pull request #645 from runzexia/update-code-gen-tool
code generate by $GEN-TOOL name
2019-08-15 19:24:52 +08:00
KubeSphere CI Bot
efc96f0515 Merge pull request #627 from runzexia/update-s2i
update s2i version
2019-08-15 19:22:53 +08:00
hongming
22e4a30c77 fix: mistakenly delete workspace role binding
Signed-off-by: hongming <talonwan@yunify.com>
2019-08-15 16:58:13 +08:00
runzexia
03d3aae821 update generate script
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-15 14:32:03 +08:00
runzexia
b754e17022 code generate by $GEN-TOOL name
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-14 22:04:53 +08:00
hongming
b93a0802f0 support empty label filter
Signed-off-by: hongming <talonwan@yunify.com>
2019-08-14 21:26:26 +08:00
runzexia
2a2cc9e72d update go.mod
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-14 18:01:05 +08:00
soulseen
8aadf7af34 add docker image search api
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-08-14 15:19:58 +08:00
runzexia
689c97215f Merge branch 'master' into update-s2i
Signed-off-by: runzexia <runzexia@yunify.com>

# Conflicts:
#	go.mod
#	go.sum
2019-08-13 17:32:38 +08:00
KubeSphere CI Bot
8a2ee1bd02 Merge pull request #636 from huanggze/master
fix pod quota metrics
2019-08-13 00:03:46 +08:00
huanggze
e61ca5dc2b fix pod quota metrics
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-08-10 15:24:56 +08:00
KubeSphere CI Bot
f6ad6d53cc Merge pull request #635 from FeynmanZhou/readme
add architecture diagram and installation command record
2019-08-10 13:30:43 +08:00
周鹏飞@yunify
9ed6e6add6 update architecture diagram
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-08-10 07:34:51 +08:00
周鹏飞@yunify
46aff24bba add architecture diagram and installation command record 2019-08-10 00:27:46 +08:00
Jeff
4cd7bfe8b5 test pr 2019-08-09 14:11:41 +08:00
zryfish
68f163483d Create PULL_REQUEST_TEMPLATE.md 2019-08-09 14:01:38 +08:00
KubeSphere CI Bot
eea99f970f Merge pull request #628 from runzexia/add-s2i-binary-upload
refine generate tools & add CRD s2i binary
2019-08-09 13:48:43 +08:00
magicsong
90fa38851f add ns networkpolicy 2019-08-08 18:39:00 +08:00
runzexia
e7f6c821cd internal controller gen
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-08 14:26:46 +08:00
runzexia
d2fae44c2d add internal makefile
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-08 14:23:16 +08:00
runzexia
27d87be5b6 add servicemesh group file
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-08 12:12:49 +08:00
runzexia
9171101989 run fmt & vet before test
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-08 12:06:51 +08:00
runzexia
998dce21d2 remove install s2ibinary
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-08 12:03:22 +08:00
runzexia
4381877b7a remove s2ibinary controller & add apis/group file to reduce warning
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-08 11:59:07 +08:00
runzexia
8e93d23aff use go generate to genereate deepcopy, generate openapi for s2ibinary
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-08 11:34:50 +08:00
runzexia
fe249513e0 use deepcode gen
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-07 21:23:08 +08:00
runzexia
e5d59b75a8 use traditional controller tool to generate code 2019-08-07 21:05:12 +08:00
runzexia
bd5f916557 do not run some gen fuc
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-07 20:08:10 +08:00
runzexia
0337992042 run test one by one
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-07 19:49:13 +08:00
runzexia
c3786272d7 recover kube-open version
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-07 18:20:14 +08:00
runzexia
20df96f978 Revert "temp"
This reverts commit e4ff1b0bad.
2019-08-07 18:01:15 +08:00
runzexia
8c14d5a444 install controller-tool, should not affect go mod
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-07 17:55:37 +08:00
runzexia
7c8012891c gen client
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-07 17:11:00 +08:00
runzexia
0c0b203560 add type s2ibinary
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-07 16:09:18 +08:00
runzexia
e4ff1b0bad temp
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-07 14:32:07 +08:00
runzexia
b0d2bdbc19 regenerate api docs
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-06 17:13:29 +08:00
runzexia
b67d8210eb update s2i version
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-06 17:11:31 +08:00
KubeSphere CI Bot
e40f03de2f Merge pull request #620 from runzexia/devops-owners
add devops owners
2019-08-03 19:23:38 +08:00
KubeSphere CI Bot
cc15fbe983 Merge pull request #603 from runzexia/contribution-guide
Contribution guide
2019-08-02 11:10:37 +08:00
runzexia
935a2aed5b add devops owners
Signed-off-by: runzexia <runzexia@yunify.com>
2019-08-01 21:09:02 +08:00
KubeSphere CI Bot
bfa81db9db Merge pull request #617 from runzexia/fix-gitlab-1131
fix internal issue #1131
2019-08-01 11:10:36 +08:00
runzexia
12c0a48e06 update contrubuting guide
Signed-off-by: runzexia <runzexia@yunify.com>
2019-07-31 21:19:30 +08:00
runzexia
7bfff07181 Merge branch 'master' into contribution-guide 2019-07-31 21:16:22 +08:00
runzexia
5db5ca0f31 fix internal issue #1131
Signed-off-by: runzexia <runzexia@yunify.com>
2019-07-31 21:13:45 +08:00
KubeSphere CI Bot
d649e3d0bb Merge pull request #609 from runzexia/crd-gen
gen crd's api docs
2019-07-31 18:17:36 +08:00
KubeSphere CI Bot
13620f4b2c Merge pull request #614 from magicsong/netowner
📄 add networking owners
2019-07-31 18:08:36 +08:00
magicsong
77875c0078 📄 add networking owners 2019-07-31 12:03:07 +08:00
runzexia
f8d3b22750 add network crd doc gen
Signed-off-by: runzexia <runzexia@yunify.com>
2019-07-31 11:48:48 +08:00
runzexia
34ddd34944 Merge branch 'master' into crd-gen
Signed-off-by: runzexia <runzexia@yunify.com>

# Conflicts:
#	go.mod
#	go.sum
2019-07-31 11:31:41 +08:00
KubeSphere CI Bot
d713cb316a Merge pull request #613 from rayzhou2017/master
Update README
2019-07-31 10:59:37 +08:00
KubeSphere CI Bot
bb5e114f1b Merge pull request #608 from magicsong/wsnp
🌟 add support of workspace networkpolicy
2019-07-31 10:58:36 +08:00
magicsong
75d787f15f 🌟 add support of workspace networkpolicy 2019-07-31 10:31:31 +08:00
runzexia
de7fc0819f fix comment & add servicemesh gen
Signed-off-by: runzexia <runzexia@yunify.com>
2019-07-30 21:19:35 +08:00
runzexia
e85bed6293 update contributing guide
Signed-off-by: runzexia <runzexia@yunify.com>
2019-07-30 20:19:10 +08:00
runzexia
1c10391faf feat: add crd gen
Signed-off-by: runzexia <runzexia@yunify.com>
2019-07-30 13:36:54 +08:00
Ray Zhou
1374b1ceb4 Update README 2019-07-30 10:07:06 +08:00
KubeSphere CI Bot
9ce52aeb00 Merge pull request #612 from zheng1/master
Update OWNERS
2019-07-29 20:37:36 +08:00
KubeSphere CI Bot
1fcc994d1b Merge pull request #602 from hlwanghl/docs/typo
Update code-of-conduct.md
2019-07-29 20:34:36 +08:00
Zhengyi Lai
5e259947b1 Update OWNERS
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
2019-07-29 20:11:17 +08:00
Xuetao Song
9b6d6fb1e9 Merge pull request #610 from magicsong/prow
📄 add owner
2019-07-29 17:35:45 +08:00
magicsong
4d07f26060 📄 add owner 2019-07-29 17:22:33 +08:00
runzexia
5153aa3cf2 add contrubuting guide
Signed-off-by: runzexia <runzexia@yunify.com>
2019-07-29 14:19:16 +08:00
runzexia
d5ea34c92b enable gomod in Dockerfile & fix docker build bash
Signed-off-by: runzexia <runzexia@yunify.com>
2019-07-29 11:30:43 +08:00
Hongliang Wang
960b44a580 Update code-of-conduct.md
Signed-off-by: Hongliang Wang <hongliangwang@yunify.com>
2019-07-29 08:38:32 +08:00
magicsong
cda4f4f05a 🚒 add error message in controller 2019-07-26 13:27:49 +08:00
周鹏飞@yunify
5a836d9d89 remove installation gif, adjust picture position in README.md
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-07-26 13:20:22 +08:00
runzexia
55d846aeca Merge pull request #597 from magicsong/ctl
remove unnecessary dependency
2019-07-23 14:18:49 +08:00
magicsong
f4f2f391df remove unneccessary depency 2019-07-22 22:24:59 +08:00
zryfish
a61f9a52b8 Update go.mod 2019-07-20 00:32:24 +08:00
zryfish
8e74c0b439 Update go.mod 2019-07-20 00:32:24 +08:00
magicsong
c6ad0ebc3e use vgo 2019-07-20 00:32:24 +08:00
rayzhou2017
45243c987d Merge pull request #576 from FeynmanZhou/docs1
add service mesh, tracing, grayscale release screenshots, add 2.0.2 r…
2019-07-13 08:26:28 +08:00
周鹏飞@yunify
8a8eff29ec add service mesh, tracing, grayscale release screenshots, add 2.0.2 release icon
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-07-13 00:31:42 +08:00
rayzhou2017
1e9647bf1f Merge pull request #575 from FeynmanZhou/docs-2.0.2
fix mistaken release note link, update roadmap image to 2.0.2
2019-07-10 17:43:05 +08:00
周鹏飞@yunify
a973705710 replace the old roadmap image
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-07-10 17:03:54 +08:00
周鹏飞@yunify
302068b8e5 fix mistaken release note link, update roadmap image to 2.0.2
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-07-10 16:57:44 +08:00
rayzhou2017
f088f71371 Merge pull request #574 from FeynmanZhou/docs-2.0.2
update README to 2.0.2, refine development guide, add screenshots
2019-07-10 15:32:07 +08:00
周鹏飞@yunify
54a9962869 update README to 2.0.2, refine development guide, add screenshots
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-07-10 11:42:34 +08:00
rayzhou2017
576c891e5d Merge pull request #573 from wansir/api-docs
docs: update api docs
2019-07-07 10:19:22 +08:00
zryfish
4c4af06cba Update am.go 2019-07-06 23:13:13 +08:00
hongming
d2452c97e8 fix: recreate kubectl pod
Signed-off-by: hongming <talonwan@yunify.com>
2019-07-06 23:13:13 +08:00
hongming
41a009cfda docs: update api docs
Signed-off-by: hongming <talonwan@yunify.com>
2019-07-06 22:19:02 +08:00
runzexia
a5a46517bc Merge pull request #571 from soulseen/fix/api_typo
fix devops api typo
2019-07-06 17:13:03 +08:00
soulseen
ca1a498105 fix devops api typo
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-07-06 17:03:41 +08:00
hongming
6c7f4519cb fix: token expiration time
Signed-off-by: hongming <talonwan@yunify.com>
2019-07-05 22:32:41 +08:00
rayzhou2017
738920a3fa Merge pull request #568 from huanggze/master
update logging api docs
2019-07-05 21:37:22 +08:00
rayzhou2017
bda4337831 Merge pull request #567 from FeynmanZhou/api-docs1
refine components API and drain node API docs
2019-07-05 21:33:16 +08:00
huanggze
5a2b314c46 update logging api docs
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-07-05 21:27:16 +08:00
周鹏飞@yunify
36b35c3906 refine monitoring metrics API docs and IAM api docs
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-07-05 20:34:10 +08:00
rayzhou2017
220f13e2fd Merge pull request #566 from wansir/update-api-docs
docs: update api docs
2019-07-05 20:28:57 +08:00
rayzhou2017
08e801a573 Update applications.go 2019-07-05 20:17:44 +08:00
hongming
e0d5a84f5e docs: update api docs
Signed-off-by: hongming <talonwan@yunify.com>
2019-07-05 19:17:57 +08:00
Zhuxiaoyang
71da84674d Merge pull request #565 from runzexia/update-devops-api-docs
update devops api docs
2019-07-05 15:41:45 +08:00
runzexia
4659d80d4a update devops api docs
Signed-off-by: runzexia <runzexia@yunify.com>
2019-07-05 15:16:40 +08:00
rayzhou2017
dd0e8b2621 Merge pull request #564 from FeynmanZhou/api-docs
refine deveops API docs, fix typo
2019-07-05 12:23:17 +08:00
周鹏飞@yunify
76483a5906 refine deveops API docs, fix typo
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-07-05 11:57:10 +08:00
huanggze
78f9e1b74d wrap error messages
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-07-05 11:34:49 +08:00
hongming
d16aee1176 fix: recreate kubectl pod
Signed-off-by: hongming <talonwan@yunify.com>
2019-07-05 11:34:35 +08:00
Jeff
56a916e59f update servicemesh api doc 2019-07-05 11:03:15 +08:00
runzexia
513e98f882 Merge pull request #557 from soulseen/fix/checkpipeline
fix checkpipeline
2019-07-04 20:53:03 +08:00
soulseen
dde017c4ea fix checkpipeline
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-07-04 20:43:35 +08:00
hongming
234a7b6d64 Merge pull request #556 from huanggze/tenant-apis
update tenant api docs
2019-07-04 16:13:37 +08:00
huanggze
d30dba899d update tenant apis
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-07-04 14:07:09 +08:00
Jeff
7477eebd0e update router doc 2019-07-04 12:04:56 +08:00
rayzhou2017
10d14a26ec Merge pull request #552 from wansir/fix-api
update job rerun api
2019-07-03 17:24:48 +08:00
rayzhou2017
b95956e1ed Update register.go 2019-07-03 17:09:37 +08:00
rayzhou2017
e062d11fef Update register.go 2019-07-03 17:08:31 +08:00
hongming
f2ba29fe14 update job rerun api
Signed-off-by: hongming <talonwan@yunify.com>
2019-07-03 15:03:15 +08:00
Zhuxiaoyang
d789b9bb74 Merge pull request #551 from runzexia/add-devops-api-tags
add devops api tags
2019-07-03 14:51:42 +08:00
runzexia
cd9f784045 fix repeat
Signed-off-by: runzexia <runzexia@yunify.com>
2019-07-03 14:43:34 +08:00
runzexia
c5f9c6bf18 add devops api tag
Signed-off-by: runzexia <runzexia@yunify.com>
2019-07-03 12:53:40 +08:00
hongming
340bcef0f7 Merge pull request #549 from rayzhou2017/tenant-api-docs
Update tenant API docs
2019-07-03 10:39:55 +08:00
rayzhou2017
12ada45bd3 Merge pull request #550 from wansir/update-api-version
update api version
2019-07-03 10:36:07 +08:00
hongming
3f9ea22043 update api version
Signed-off-by: hongming <talonwan@yunify.com>
2019-07-03 10:06:41 +08:00
Ray Zhou
08af0870ae Update tenant API docs 2019-07-02 21:36:42 +08:00
rayzhou2017
660d15caa6 Merge pull request #548 from huanggze/api-doc-2
update api docs
2019-07-02 20:38:37 +08:00
huanggze
c692f082b6 update api docs
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-07-02 20:25:13 +08:00
Guangzhe Huang
dee71fbd58 Merge pull request #547 from rayzhou2017/monitoring-api-docs
Update monitoring API docs
2019-07-02 19:12:08 +08:00
Ray Zhou
ee6c2efb3b Update monitoring API docs 2019-07-02 19:01:39 +08:00
hongming
08f7b8b961 Merge pull request #546 from rayzhou2017/resource-api-docs
Update resource API docs
2019-07-02 16:54:37 +08:00
rayzhou2017
2dfc1b4c7d Merge pull request #545 from huanggze/api-doc-fix
refine api docs
2019-07-02 16:49:12 +08:00
Ray Zhou
8d15ef08b9 Update resource API docs 2019-07-02 16:43:34 +08:00
huanggze
2530dbaf4e refine api docs
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-07-02 16:26:32 +08:00
hongming
97195547b2 Merge pull request #544 from rayzhou2017/iam-api-docs
Update IAM API docs
2019-07-02 15:46:53 +08:00
Ray Zhou
afc0172bc3 Update IAM API docs 2019-07-02 15:35:26 +08:00
rayzhou2017
2afabbde29 Merge pull request #543 from rayzhou2017/devops-api-docs
Update DevOps API docs
2019-07-02 15:26:26 +08:00
Ray Zhou
44a249512f Update DevOps API docs 2019-07-02 14:37:45 +08:00
Zhuxiaoyang
1b7c570fcf Merge pull request #542 from rayzhou2017/devops-api-docs
Update devops API docs
2019-07-02 10:01:01 +08:00
Benjamin Huo
58762d9be9 Merge pull request #533 from huanggze/monitor-fix-2
refine monitoring apis
2019-07-02 00:15:51 +08:00
runzexia
178ea52229 update param name 2019-07-01 22:29:31 +08:00
Ray Zhou
64d880e636 Update devops API docs 2019-07-01 22:19:45 +08:00
rayzhou2017
058d97c18f Merge pull request #540 from runzexia/devop-api-docs
add missing devops api body
2019-07-01 20:59:37 +08:00
runzexia
1dded6bf59 fix devops api
Signed-off-by: runzexia <runzexia@yunify.com>
2019-07-01 20:41:49 +08:00
runzexia
f7d972f799 Merge pull request #538 from rayzhou2017/devops-api-docs
Update devops api docs
2019-07-01 20:39:39 +08:00
Ray Zhou
755a5cd093 Update devops api docs 2019-07-01 20:32:04 +08:00
hongming
2a3e97b709 fix: kubeconfig server host
Signed-off-by: hongming <talonwan@yunify.com>
2019-07-01 20:08:22 +08:00
huanggze
be488ec67e api: update tags & reference links
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-07-01 18:58:02 +08:00
pengfei
4778a8a7d2 refine the introduction and fix syntax errors 2019-07-01 13:54:36 +08:00
周鹏飞@yunify
6375a691c9 fix syntax errors, refine the introduction
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-07-01 13:54:36 +08:00
周鹏飞@yunify
13744d0a19 refine introduction for REAMD.md
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-07-01 13:54:36 +08:00
hongming
fc376bd3ec fix: duplicate email
Signed-off-by: hongming <talonwan@yunify.com>
2019-07-01 13:54:03 +08:00
hongming
d37d67d82b refactor component api
Signed-off-by: hongming <talonwan@yunify.com>
2019-07-01 13:53:26 +08:00
Jeff
e72b880b18 update nginx ingress controller 2019-06-30 21:28:28 +08:00
huanggze
a8d30ce766 refine api docs
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-06-30 19:55:21 +08:00
huanggze
fa3d09b880 fix PromQL construction
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-06-30 19:53:42 +08:00
huanggze
7b81d24e13 remove buggy if statements
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-06-30 19:46:50 +08:00
huanggze
cbec574fa3 declare type FormatedLevelMetric explicitly
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-06-30 19:39:50 +08:00
Zhuxiaoyang
d57bcb5c29 Merge pull request #530 from kubesphere/revert-529-master
Revert "update devops api doc"
2019-06-29 22:36:43 +08:00
runzexia
945299b317 Revert "update devops api doc" 2019-06-29 22:21:39 +08:00
runzexia
c5652983bd Merge pull request #529 from soulseen/master
update devops api doc
2019-06-29 22:17:03 +08:00
soulseen
015cbfacf1 update devops api doc
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-06-29 21:13:27 +08:00
Zhuxiaoyang
6611cbebbd Merge pull request #526 from runzexia/update-devops-api-docs
update devops api docs
2019-06-29 19:58:10 +08:00
rayzhou2017
9fccdc457a Merge pull request #527 from FeynmanZhou/master
add installation gif demo and refine README.md, add development guide
2019-06-29 14:27:26 +08:00
周鹏飞@yunify
dc0b285bb4 refine development guide
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-06-29 13:21:21 +08:00
runzexia
4287799bc6 update devops api docs
Signed-off-by: runzexia <runzexia@yunify.com>
2019-06-29 13:17:57 +08:00
周鹏飞@yunify
2c024f077c add installation demo and refine README.md, add development guide
Signed-off-by: 周鹏飞@yunify <pengfeizhou@yunify.com>
2019-06-29 12:25:21 +08:00
rayzhou2017
01f5fb5bc9 Merge pull request #523 from soulseen/master
update model description
2019-06-28 17:26:51 +08:00
soulseen
f14ff17b22 update model description
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-06-28 17:17:48 +08:00
rayzhou2017
2b80b99c29 Merge pull request #522 from huanggze/monitor-fix
monitor: remove absent from PromQL
2019-06-28 16:37:54 +08:00
huanggze
5f86fa8906 monitor: remove absent from PromQL
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-06-28 16:15:47 +08:00
rayzhou2017
3a225f12f0 Merge pull request #516 from wansir/api-docs
docs: update api docs
2019-06-28 16:01:00 +08:00
rayzhou2017
845d035c23 Merge branch 'master' into api-docs 2019-06-28 15:02:17 +08:00
rayzhou2017
11e5d51740 Merge pull request #515 from rayzhou2017/application-api-docs
Update application API docs
2019-06-28 14:35:00 +08:00
hongming
4b29fa4922 docs: update api docs
Signed-off-by: hongming <talonwan@yunify.com>
2019-06-28 13:22:19 +08:00
rayzhou2017
e466edc70b Merge pull request #518 from soulseen/master
update devops api description
2019-06-28 13:06:09 +08:00
rayzhou2017
ed5fa6bd8c Merge pull request #517 from runzexia/update-devops-api-docs
update api docs & reformat code
2019-06-28 13:05:43 +08:00
soulseen
749807896d update devops api description
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-06-28 12:57:13 +08:00
runzexia
129a7cf03a update api docs & reformat code
Signed-off-by: runzexia <runzexia@yunify.com>
2019-06-28 12:51:26 +08:00
Ray Zhou
cc5a632d9e Update application API docs 2019-06-28 11:25:33 +08:00
rayzhou2017
a336bae8ec Merge pull request #510 from rayzhou2017/api-docs
Update components API doc.
2019-06-28 10:53:00 +08:00
runzexia
fdf5279f2f Merge pull request #512 from kubesphere/update-devops-api-docs
update devops api docs
2019-06-28 10:31:27 +08:00
runzexia
576fe2acda Merge branch 'master' into update-devops-api-docs 2019-06-28 10:25:02 +08:00
runzexia
8d8600c37e Merge pull request #514 from rayzhou2017/devops-api-docs
Update DevOps API docs
2019-06-28 10:24:38 +08:00
Ray Zhou
e15857b544 Update DevOps API docs 2019-06-27 22:36:11 +08:00
runzexia
70599087dc update devops api docs
Signed-off-by: runzexia <runzexia@yunify.com>
2019-06-27 22:27:41 +08:00
Zhuxiaoyang
7f9917acfd Merge pull request #511 from runzexia/update-devops-api-docs
update api docs
2019-06-27 20:13:39 +08:00
runzexia
eded35c46d no message
Signed-off-by: runzexia <runzexia@yunify.com>
2019-06-27 20:00:38 +08:00
runzexia
7f2be1b61e update api docs
Signed-off-by: runzexia <runzexia@yunify.com>
2019-06-27 19:36:33 +08:00
Ray Zhou
0d07e3ca68 Update components API doc. 2019-06-27 18:53:36 +08:00
rayzhou2017
b91c6b66d4 Merge pull request #509 from rayzhou2017/api-docs
Update IM api docs
2019-06-27 16:54:23 +08:00
rayzhou2017
f01692a383 Merge branch 'master' into api-docs 2019-06-27 16:45:22 +08:00
Ray Zhou
37dca3a7a3 Update IM api docs 2019-06-27 16:32:53 +08:00
Guangzhe Huang
ca001504ec Merge pull request #498 from huanggze/fix-logging-response-wrapper 2019-06-27 16:19:15 +08:00
huanggze
87bdbfaaf2 apis: unify http response format
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-06-27 15:57:27 +08:00
huanggze
5910ef4554 api doc: update logging return descriptions
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-06-27 15:57:26 +08:00
Benjamin Huo
f15ad7d166 Merge pull request #504 from huanggze/monitor-null-values-2
fix: fill empty metrics data with zeros
2019-06-27 14:25:40 +08:00
Benjamin Huo
3da777ceb0 Merge branch 'master' into monitor-null-values-2 2019-06-27 14:14:03 +08:00
runzexia
bd2d25317c Merge pull request #506 from soulseen/master
update devops api description
2019-06-27 13:34:34 +08:00
soulseen
5a5ddaf5e5 update devops api description
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-06-27 13:13:35 +08:00
huanggze
adf225d0b3 fix: fill empty metrics data with zeros
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-06-26 18:03:10 +08:00
runzexia
07304c77c4 fix comment
Signed-off-by: runzexia <runzexia@yunify.com>
2019-06-23 13:32:01 +08:00
runzexia
972ee07c40 fix comment
Signed-off-by: runzexia <runzexia@yunify.com>
2019-06-23 13:32:01 +08:00
runzexia
4c2bd4819c fix ci
Signed-off-by: runzexia <runzexia@yunify.com>
2019-06-23 13:32:01 +08:00
runzexia
ae8ee99da3 update api docs
Signed-off-by: runzexia <runzexia@yunify.com>
2019-06-23 13:32:01 +08:00
Zhuxiaoyang
aec4146c17 Merge pull request #455 from runzexia/uuid-utils
get all ipv4 to auto init
2019-06-23 10:42:07 +08:00
Zhuxiaoyang
08c92e9594 Merge branch 'master' into uuid-utils 2019-06-23 10:32:43 +08:00
rayzhou2017
0c9c9c8d00 Merge pull request #495 from huanggze/api-fix2
api: update descriptions and change path for monitoring apis
2019-06-22 22:04:59 +08:00
huanggze
a8cb551483 api: update descriptions and change path for monitoring apis
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-06-22 18:58:47 +08:00
Guangzhe Huang
0669ded49d Merge pull request #494 from huanggze/api-fix
api docs: refine logging api description
2019-06-22 14:19:13 +08:00
rayzhou2017
9ef85df6eb Merge branch 'master' into api-fix 2019-06-22 14:01:02 +08:00
runzexia
eede6fd5b1 Merge branch 'master' into uuid-utils 2019-06-22 12:50:41 +08:00
Benjamin Huo
909a01e653 Merge pull request #493 from huanggze/monitoring-fix
fix: filter out loopback devices when calculating disk space metrics
2019-06-22 12:50:39 +08:00
huanggze
580c1c3568 api docs: refine logging api description
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-06-22 12:48:21 +08:00
Benjamin Huo
825d1644bb Merge branch 'master' into monitoring-fix 2019-06-22 12:44:20 +08:00
runzexia
cd96ec0c21 Merge pull request #491 from soulseen/master
update devops api doc & remove not used api
2019-06-22 09:21:42 +08:00
Zhuxiaoyang
d519a9bbab Merge branch 'master' into master 2019-06-21 22:20:55 +08:00
soulseen
39e8de7de5 update devops api doc & remove not used api
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-06-21 22:07:27 +08:00
huanggze
08e432cb7f fix: filter out loopback devices when calculating disk space metrics
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-06-21 21:03:17 +08:00
hongming
7981b3bf39 Merge pull request #492 from wansir/master
fix: duplicate root path
2019-06-21 17:14:07 +08:00
hongming
bade7af87e fix: duplicate root path
Signed-off-by: hongming <talonwan@yunify.com>
2019-06-21 15:22:33 +08:00
rayzhou2017
916469dc99 Merge pull request #489 from huanggze/api-fix
update api doc
2019-06-21 12:11:55 +08:00
rayzhou2017
05a3953877 Merge branch 'master' into api-fix 2019-06-21 11:48:35 +08:00
hongming
24d13e44f7 update api docs (#490)
* update api docs

Signed-off-by: hongming <talonwan@yunify.com>

* fix: kube-apiserver host in kubeconfig

Signed-off-by: hongming <talonwan@yunify.com>
2019-06-21 11:47:29 +08:00
Guangzhe Huang
9c549647f9 Merge branch 'master' into api-fix 2019-06-21 11:37:05 +08:00
不羁
72875c7885 fix: get application details failed (#481)
Signed-off-by: hongming <talonwan@yunify.com>
2019-06-21 11:34:05 +08:00
huanggze
ed0b211c2b fix: update metrics for node disk usage and capacity
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-06-21 11:34:05 +08:00
Benjamin Huo
be61ed065b Merge pull request #485 from huanggze/monitoring-fix
fix: update metrics for node disk usage and capacity
2019-06-21 09:40:07 +08:00
Benjamin Huo
c329a221bf Merge branch 'master' into monitoring-fix 2019-06-21 09:15:50 +08:00
huanggze
f92e309343 api doc: remove apis for fluent bit filter plugins
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-06-20 22:12:21 +08:00
huanggze
8d01fb68ab api doc: change the path parameter from workload_kind to kind
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-06-20 21:44:32 +08:00
不羁
4283814a68 fix: get application details failed (#481)
Signed-off-by: hongming <talonwan@yunify.com>
2019-06-20 16:23:24 +08:00
runzexia
785e922b85 Merge branch 'master' into uuid-utils 2019-06-20 16:06:02 +08:00
runzexia
836c011eeb Merge pull request #484 from soulseen/master
update devops api doc
2019-06-19 21:18:17 +08:00
soulseen
fbc5a9db03 update devops api doc
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-06-19 21:10:01 +08:00
Zhuxiaoyang
1f125bddf3 Merge pull request #483 from runzexia/fix-update-devops-project-name 2019-06-19 21:03:27 +08:00
runzexia
3dbca4efd4 Merge branch 'master' into uuid-utils 2019-06-19 20:47:59 +08:00
runzexia
b8ceaad836 fix typo set
Signed-off-by: runzexia <runzexia@yunify.com>
2019-06-19 20:47:11 +08:00
huanggze
48a025b257 fix: update metrics for node disk usage and capacity
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-06-19 20:17:13 +08:00
huanggze
2442c94ec6 api: change HTTP method of fluentbit output updating from POST to PUT
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-06-19 12:23:37 +08:00
Ray Zhou
63addcbed9 Refine monitoring API docs 2019-06-19 12:18:34 +08:00
Ray Zhou
5f052b18ff Refine logging API docs 2019-06-19 12:18:34 +08:00
Ray Zhou
a711ac9a75 Fix grammer error of IAM API docs 2019-06-19 12:18:34 +08:00
runzexia
d5c749583e Merge branch 'master' into uuid-utils 2019-06-18 23:04:35 +08:00
Guangzhe Huang
370c3848c7 Merge pull request #482 from huanggze/api-tag
api: add tags to monitoring and logging apis for classififcation
2019-06-17 20:55:36 +08:00
huanggze
fb068f2416 api: add tags to monitoring and logging apis for classififcation
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-06-17 18:12:27 +08:00
runzexia
366c5f1628 Merge pull request #478 from runzexia/fix-devops-api-get-pipelines-404
fix-devops-api-get-pipelines-404
2019-06-12 11:23:49 +08:00
runzexia
758e271672 fix-devops-api-get-pipelines-404
Signed-off-by: runzexia <runzexia@yunify.com>
2019-06-11 16:05:13 +08:00
hongming
08877f950b update api docs
Signed-off-by: hongming <talonwan@yunify.com>
2019-06-10 16:33:47 +08:00
runzexia
e86b2a4dcc fix devops api import error
Signed-off-by: runzexia <runzexia@yunify.com>
2019-06-10 14:15:10 +08:00
huanggze
3e2693739d doc: fix swagger import errors caused by duplicate operationId and non-allowed data type values
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-06-10 14:14:25 +08:00
zryfish
736582be23 Merge pull request #468 from runzexia/devops-docs
devops api doc update
2019-06-10 11:13:43 +08:00
runzexia
35100c8385 Merge branch 'master' into devops-docs
Signed-off-by: runzexia <runzexia@yunify.com>

# Conflicts:
#	pkg/apis/tenant/v1alpha2/register.go
2019-06-10 10:34:49 +08:00
Jeff
2878ff052f update servicemesh api doc
Signed-off-by: Jeff <jeffzhang@yunify.com>
2019-06-10 10:30:17 +08:00
runzexia
a4d25f15dd update api docs 2019-06-10 10:26:18 +08:00
huanggze
2861865c09 doc: add monitoring and logging api doc
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-06-10 10:21:58 +08:00
hongming
468ef322d1 update api doc
Signed-off-by: hongming <talonwan@yunify.com>
2019-06-10 10:07:43 +08:00
runzexia
a9237a5c72 update docs
Signed-off-by: runzexia <runzexia@yunify.com>
2019-06-06 17:59:17 +08:00
runzexia
d5aa90bbdd Merge branch 'PR-469' into devops-docs 2019-06-06 11:33:37 +08:00
soulseen
8fe88f23b7 update devops api doc
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-06-05 21:55:59 +08:00
soulseen
24ec90376c add description
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-06-05 17:21:58 +08:00
runzexia
1b3e80519d update docs
Signed-off-by: runzexia <runzexia@yunify.com>
2019-06-05 15:47:38 +08:00
runzexia
fd530f4c1e tmp commit
Signed-off-by: runzexia <runzexia@yunify.com>
2019-06-05 14:09:39 +08:00
runzexia
dd87197de3 Merge pull request #451 from soulseen/master
filter jenkins header
2019-06-04 17:55:07 +08:00
runzexia
c5f787b38f Merge branch 'master' into master 2019-06-04 17:38:42 +08:00
hongming
22dca0ad55 fix: enable clusterrolebinding controller
Signed-off-by: hongming <talonwan@yunify.com>
2019-06-04 16:58:03 +08:00
huanggze
6f941dce91 fix: update log statistics response, remove sorting by time
Signed-off-by: huanggze <loganhuang@yunify.com>
2019-06-04 16:57:50 +08:00
soulseen
2f02aa55cc format log
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-06-04 16:34:41 +08:00
soulseen
7e1774eb06 fix url format
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-06-04 11:05:08 +08:00
runzexia
fff5b93a67 get all ipv4 & auto init
Signed-off-by: runzexia <runzexia@yunify.com>
2019-05-29 13:57:25 +08:00
soulseen
01b79df455 add log err
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-05-27 17:25:49 +08:00
soulseen
8979d3a67d filter jenkins header
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-05-27 14:51:11 +08:00
soulseen
2b427b8e68 update jenkins api doc
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-05-15 20:56:06 +08:00
runzexia
dae04e2ad3 update
Signed-off-by: runzexia <runzexia@yunify.com>
2019-05-15 20:56:06 +08:00
runzexia
2259924e17 delete all devops project when delete ws
Signed-off-by: runzexia <runzexia@yunify.com>
2019-05-15 20:56:06 +08:00
Jeff
d9cce21f05 add quota left to namespace quota 2019-05-15 20:56:06 +08:00
soulseen
6b3b0aa4f1 update jenkins log
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-05-15 20:52:33 +08:00
9956 changed files with 1581614 additions and 640331 deletions

View File

@@ -1 +1,3 @@
tmp/
# exclude all files and folders except bin folder
**
!bin

4
.gitattributes vendored
View File

@@ -1,2 +1,6 @@
pkg/cmd/api/spec/api.swagger.json linguist-generated=true
pkg/cmd/api/spec/static.go linguist-generated=true
pkg/client/* linguist-generated=true
config/crds/* linguist-generated=true
config/rbac/* linguist-generated=true
zz_generated.deepcopy.go linguist-generated=true

16
.github/.stale.yaml vendored
View File

@@ -1,16 +0,0 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 30
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 14
# Issues with these labels will never be considered stale
exemptLabels:
- frozen
staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Any further update will
cause the issue/pull request to no longer be considered stale. Thank you for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: >
This issue is being automatically closed due to inactivity.

View File

@@ -3,40 +3,39 @@ name: Bug report
about: Create a report to help us improve
---
**General remarks**
<!--
You don't need to remove this comment section, it's invisible on the issues page.
> Please delete this section including header before submitting
> 也可以使用中文
>
> This form is to report bugs. For general usage questions refer to our Slack channel
> [KubeSphere-users](https://join.slack.com/t/kubesphere/shared_invite/enQtNTE3MDIxNzUxNzQ0LTdkNTc3OTdmNzdiODViZjViNTU5ZDY3M2I2MzY4MTI4OGZlOTJmMDg5ZTFiMDAwYzNlZDY5NjA0NzZlNDU5NmY)
## General remarks
**Describe the bug(描述下问题)**
* Attention, please fill out this issues form using English only!
* 注意GitHub Issue 仅支持英文,中文 Issue 请在 [论坛](https://kubesphere.com.cn/forum/) 提交。
* This form is to report bugs. For general usage questions you can join our Slack channel
[KubeSphere-users](https://join.slack.com/t/kubesphere/shared_invite/enQtNTE3MDIxNzUxNzQ0LTZkNTdkYWNiYTVkMTM5ZThhODY1MjAyZmVlYWEwZmQ3ODQ1NmM1MGVkNWEzZTRhNzk0MzM5MmY4NDc3ZWVhMjE)
-->
**Describe the Bug**
A clear and concise description of what the bug is.
For UI issues please also add a screenshot that shows the issue.
**Versions used(KubeSphere/Kubernetes的版本)**
**Versions Used**
KubeSphere:
Kubernetes: (If KubeSphere installer used, you can skip this)
**Environment(环境的硬件配置)**
How many nodes and their hardware configuration:
For example:
3 masters: 8cpu/8g
3 nodes: 8cpu/16g
**Environment**
How many nodes and their hardware configuration:
For example: CentOS 7.5 / 3 masters: 8cpu/8g; 3 nodes: 8cpu/16g
(and other info are welcomed to help us debugging)
**To Reproduce(复现步骤)**
**How To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior(预期行为)**
**Expected behavior**
A clear and concise description of what you expected to happen.

View File

@@ -0,0 +1,69 @@
---
name: Feature Request
about: Have a good idea? Please don't hesitate to write it down, describe the new feature.
---
<!--
You don't need to remove this comment section, it's invisible on the issues page.
## General remarks
* Attention, please fill out this issues form using English only!
* 注意GitHub Issue 仅支持英文,中文 Issue 请在 [论坛](https://kubesphere.com.cn/forum/) 提交。
* This form is to report bugs. For general usage questions, you can join our Slack channel
[KubeSphere-users](https://join.slack.com/t/kubesphere/shared_invite/enQtNTE3MDIxNzUxNzQ0LTZkNTdkYWNiYTVkMTM5ZThhODY1MjAyZmVlYWEwZmQ3ODQ1NmM1MGVkNWEzZTRhNzk0MzM5MmY4NDc3ZWVhMjE)
-->
**What's it about?**
<!--
A clear and concise description of what this feature request is.
-->
**What's the reason why we need it?**
<!--
Please tell us if you think it's a necessary feature for Kubesphere. Give us as many details about it as you can.
Two or more use cases might be very helpful when other contributors try to go through this request. If you have some references,
please just add it below.
-->
I believe this is an important feature for Kubesphere. There're a few use cases:
* case one
* case two
* ...
Please leave your comments below if there's anyone agrees with me. Or just give me a thumb up.
**Area Suggestion**
<!--
In order to have a clear issue list, giving an accuracy area is necessary. If you are not sure about it, please just leave it alone.
You can find some possible areas below. Please attention, sometimes crossing multiple areas might be possible. So, you
can keep one or more areas in this issue.
> /area alerting
> /area api
> /area apiserver
> /area app-management
> /area audit
> /area console
> /area devops
> /area documentation
> /area edge
> /area iam
> /area installation
> /area logging
> /area microservice
> /area monitoring
> /area multicluster
> /area networking
> /area notification
> /area observability
> /area performance
> /area security
> /area storage
> /area test
> /area upgrade
-->
/kind feature-request

View File

@@ -0,0 +1,30 @@
---
name: Installation Issue
about: Create an issue to help us improve installation
---
## English only!
**注意GitHub Issue 仅支持英文,中文 Issue 请在 [论坛](https://kubesphere.com.cn/forum/) 提交。**
**General remarks**
> Please delete this section including header before submitting
>
> This form is to report installation issues. For general usage questions you can refer to [KubeSphere Documentation](https://kubesphere.io/docs) or join our Slack channel
> [KubeSphere-users](https://join.slack.com/t/kubesphere/shared_invite/enQtNTE3MDIxNzUxNzQ0LTZkNTdkYWNiYTVkMTM5ZThhODY1MjAyZmVlYWEwZmQ3ODQ1NmM1MGVkNWEzZTRhNzk0MzM5MmY4NDc3ZWVhMjE)
**What's your question**
**Environment: OS & Hardware Information**
> Important: You must describe your environment clearly, e.g. VMware or Bare Metal, CentOS 7.5, 8 C / 16 G (If you install on Linux), Or Kubernetes v1.16 (If you install on K8s).
**Error logs or message (Attach logs or screenshot)**
**Installer Version**
> e.g. v2.1.0, v2.1.1, v3.0.0

38
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View File

@@ -0,0 +1,38 @@
**What type of PR is this?**
> Uncomment only one ` /kind <>` line, hit enter to put that in a new line, and remove leading whitespaces from that line:
>
> /kind api-change
> /kind bug
> /kind cleanup
> /kind design
> /kind documentation
> /kind failing-test
> /kind feature
> /kind flake
**What this PR does / why we need it**:
**Which issue(s) this PR fixes**:
<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
_If PR is about `failing-tests or flakes`, please post the related issues/tests in a comment and do not use `Fixes`_*
-->
Fixes #
**Special notes for reviewers**:
```
```
**Additional documentation, usage docs, etc.**:
<!--
This section can be blank if this pull request does not require a release note.
Please use the following format for linking documentation or pass the
section below:
- [KEP]: <link>
- [Usage]: <link>
- [Other doc]: <link>
-->
```docs
```

20
.github/stale.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 90
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 30
# Issues with these labels will never be considered stale
exemptLabels:
- frozen
- kind/feature-request
- kind/feature
- kind/security
- kind/design
staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Any further update will
cause the issue/pull request to no longer be considered stale. Thank you for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: >
This issue is being automatically closed due to inactivity.

70
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,70 @@
name: Go
on:
push:
branches:
- 'master'
- 'release*'
tags:
- 'v*'
pull_request:
branches:
- 'master'
- 'release*'
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v2
with:
go-version: 1.13
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Check pr is properly formatted
run: diff -u <(echo -n) <(gofmt -d ./pkg ./cmd ./tools ./test)
- name: Verify goimports
run: go get -u golang.org/x/tools/cmd/goimports && bash hack/verify-goimports.sh
- name: Downloading go dependencies
run: go mod vendor
- name: Install kubebuilder
run: bash hack/install_kubebuilder.sh
- name: Build
run: make all
- name: Make OpenAPI Spec
run: make openapi
- name: Uploading code coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
- name: Get branch name
id: extract_branch
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
- name: Build and push docker images
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
if: github.event_name == 'push'
run: |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
bash hack/docker_build.sh ${{ steps.extract_branch.outputs.branch }}

37
.github/workflows/e2e-test.yml vendored Normal file
View File

@@ -0,0 +1,37 @@
name: e2e
on:
schedule:
# run e2e test every 4 hours
- cron: 0 */4 * * *
workflow_dispatch:
jobs:
build:
name: Test
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Downloading go dependencies
run: go mod vendor
- name: Create kind cluster
uses: helm/kind-action@v1.0.0-rc.1
with:
config: .github/workflows/kind/kind.yaml
- name: Deploy KubeSphere to Kind
run: KIND_CLUSTER_NAME=chart-testing hack/deploy-kubesphere.sh
- name: Run e2e testing
run: go test ./test/e2e

11
.github/workflows/kind/kind.yaml vendored Normal file
View File

@@ -0,0 +1,11 @@
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
image: kindest/node:v1.19.7
extraMounts:
- hostPath: /etc/localtime
containerPath: /etc/localtime
extraPortMappings:
- containerPort: 30881
hostPort: 9090

66
.github/workflows/nightly-builds.yml vendored Normal file
View File

@@ -0,0 +1,66 @@
name: NightlyBuild
on:
schedule:
# This is a UTC time
- cron: "0 16 * * *"
# Keep it only for test purpose, comment it once everything is ok
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Downloading go dependencies
run: go mod vendor
- name: Install kubebuilder
run: bash hack/install_kubebuilder.sh
- name: Build
run: make all
- name: Make OpenAPI Spec
run: make openapi
- name: Build and push docker images
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
bash hack/docker_build.sh master
if [[ $? == 0 ]]; then
tag=nightly-$(date '+%Y%m%d')
docker tag kubespheredev/ks-apiserver kubespheredev/ks-apiserver:${tag}
docker tag kubespheredev/ks-controller-manager kubespheredev/ks-controller-manager:${tag}
docker push kubespheredev/ks-apiserver:${tag}
docker push kubespheredev/ks-controller-manager:${tag}
else
exit -1
fi
- name: slack
uses: 8398a7/action-slack@v3
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
if: always()

12
.gitignore vendored
View File

@@ -4,6 +4,7 @@
*.dll
*.so
*.dylib
*.a
# Test binary, build with `go test -c`
*.test
@@ -18,9 +19,16 @@ bin/
# Vscode files
.vscode/
tmp/
__debug_bin
# OSX trash
.DS_Store
api.json
*.coverprofile
cover.out
coverage.txt
kustomize/network/etcd
apiserver.local.config
tmp/
kubesphere.yaml

View File

@@ -1,29 +0,0 @@
services:
- docker
language: go
git:
depth: false
go:
- 1.12
go_import_path: kubesphere.io/kubesphere
before_install:
- go get -u github.com/golang/dep/cmd/dep
before_script:
- docker --version
- bash hack/install_kubebuilder.sh
script:
- make all
deploy:
skip_cleanup: true
provider: script
script: bash hack/docker_build.sh
on:
branch: master

3
CONTRIBUTING.md Normal file
View File

@@ -0,0 +1,3 @@
# Guide
This [document](https://github.com/kubesphere/community) walks you through how to get started contributing KubeSphere.

1703
Gopkg.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,135 +0,0 @@
required = [
"github.com/emicklei/go-restful",
"github.com/onsi/ginkgo", # for test framework
"github.com/onsi/gomega", # for test matchers
"k8s.io/gengo/examples/defaulter-gen/generators",
"k8s.io/gengo/examples/deepcopy-gen/generators",
"k8s.io/client-go/plugin/pkg/client/auth/gcp", # for development against gcp
"k8s.io/code-generator/cmd/client-gen",
"sigs.k8s.io/controller-tools/cmd/controller-gen", # for crd/rbac generation
"sigs.k8s.io/controller-runtime/pkg/client/config",
"sigs.k8s.io/controller-runtime/pkg/controller",
"sigs.k8s.io/controller-runtime/pkg/handler",
"sigs.k8s.io/controller-runtime/pkg/manager",
"sigs.k8s.io/controller-runtime/pkg/runtime/signals",
"sigs.k8s.io/controller-runtime/pkg/source",
"sigs.k8s.io/testing_frameworks/integration", # for integration testing
"github.com/kubesphere/s2ioperator/pkg/client/clientset/versioned",
"github.com/kubesphere/s2ioperator/pkg/client/informers/externalversions",
"github.com/kubesphere/s2ioperator/pkg/apis/devops/v1alpha1"
]
[[constraint]]
name = "github.com/docker/docker"
version = "v17.05.0-ce"
[[override]]
name = "k8s.io/api"
version = "kubernetes-1.13.1"
[[override]]
name = "k8s.io/apimachinery"
version = "kubernetes-1.13.1"
[[override]]
name = "k8s.io/apiserver"
version = "kubernetes-1.13.1"
[[constraint]]
name = "k8s.io/code-generator"
version = "kubernetes-1.13.1"
[[override]]
name = "k8s.io/client-go"
version = "kubernetes-1.13.1"
[[constraint]]
name = "k8s.io/kubernetes"
version = "1.13.1"
[[constraint]]
name="sigs.k8s.io/controller-runtime"
version="v0.1.7"
[[constraint]]
name="sigs.k8s.io/controller-tools"
version="v0.1.7"
[[constraint]]
name="github.com/kubesphere/s2ioperator"
version="v0.0.8"
[[override]]
name="github.com/bifurcation/mint"
revision="824af65410658916142a7600349144e1289f2110"
[prune]
go-tests = true
unused-packages = true
non-go = true
[[prune.project]]
name = "k8s.io/code-generator"
unused-packages = false
non-go = false
# To use reference package:
# vendor/github.com/docker/docker/client/container_commit.go:17: undefined: reference.ParseNormalizedNamed
# vendor/github.com/docker/docker/client/container_commit.go:25: undefined: reference.TagNameOnly
# vendor/github.com/docker/docker/client/container_commit.go:30: undefined: reference.FamiliarNam
[[override]]
name = "github.com/docker/distribution"
branch = "master"
# To use reference package:
# vendor/github.com/docker/docker/registry/registry.go:30: cannot call non-function tlsconfig.ServerDefault (type tls.Config)
# vendor/github.com/docker/docker/registry/registry.go:66: undefined: tlsconfig.SystemCertPool
# vendor/github.com/docker/docker/registry/registry.go:168: cannot call non-function tlsconfig.ServerDefault (type tls.Config)
# vendor/github.com/docker/docker/registry/service_v2.go:11: cannot call non-function tlsconfig.ServerDefault (type tls.Config)
[[override]]
name = "github.com/docker/go-connections"
version = "0.4.0"
# For dependency below: Refer to issue https://github.com/golang/dep/issues/1799
[[override]]
name = "gopkg.in/fsnotify.v1"
source = "https://github.com/fsnotify/fsnotify.git"
version = "v1.4.7"
[[override]]
name = "github.com/russross/blackfriday"
version = "v1.5.2"
# offical application controller doesn't limit observe scope to namespace
# use our own version instead
[[constraint]]
name = "sigs.k8s.io/application"
source = "https://github.com/kubesphere/application"
branch = "kubesphere"
[[constraint]]
name = "github.com/kiali/kiali"
source = "https://github.com/kubesphere/kiali"
branch = "kubesphere"
[[constraint]]
name = "github.com/kubernetes-sigs/application"
source = "https://github.com/kubesphere/application"
branch = "kubesphere"
[[constraint]]
name = "github.com/knative/pkg"
revision = "cd278f2d3394c865fda66bca12459e879e0279b8"
[[constraint]]
name = "gopkg.in/igm/sockjs-go.v2"
version = "2.0.0"
[[constraint]]
name = "github.com/gocraft/dbr"
revision = "a0fd650918f6287ffe111d1c7b66bb755ff3be4a"
[[constraint]]
name = "github.com/kubesphere/sonargo"
version = "0.0.2"

100
Makefile
View File

@@ -2,12 +2,18 @@
# Use of this source code is governed by a Apache license
# that can be found in the LICENSE file.
# The binary to build
BIN ?= ks-apiserver
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
CRD_OPTIONS ?= "crd:trivialVersions=true"
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
ifeq (,$(shell go env GOBIN))
GOBIN=$(shell go env GOPATH)/bin
else
GOBIN=$(shell go env GOBIN)
endif
IMG ?= kubespheredev/ks-apiserver
OUTPUT_DIR=bin
GOFLAGS=-mod=vendor
define ALL_HELP_INFO
# Build code.
#
@@ -28,27 +34,26 @@ define ALL_HELP_INFO
# debugging tools like delve.
endef
.PHONY: all
all: test ks-apiserver ks-apigateway ks-iam controller-manager
all: test ks-apiserver ks-controller-manager
# Build ks-apiserver binary
ks-apiserver: test
ks-apiserver: fmt vet
hack/gobuild.sh cmd/ks-apiserver
# Build ks-apigateway binary
ks-apigateway: test
hack/gobuild.sh cmd/ks-apigateway
# Build ks-iam binary
ks-iam: test
hack/gobuild.sh cmd/ks-iam
# Build controller-manager binary
controller-manager: test
# Build ks-controller-manager binary
ks-controller-manager: fmt vet
hack/gobuild.sh cmd/controller-manager
# Build e2e binary
e2e: fmt vet
hack/build_e2e.sh test/e2e
# Run go fmt against code
fmt:
go fmt ./pkg/... ./cmd/...
gofmt -w ./pkg ./cmd ./tools ./api
goimports:
@hack/update-goimports.sh
# Run go vet against code
vet:
@@ -56,32 +61,67 @@ vet:
# Generate manifests e.g. CRD, RBAC etc.
manifests:
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go all
go run ./vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go object:headerFile=./hack/boilerplate.go.txt paths=./pkg/apis/... rbac:roleName=controller-perms ${CRD_OPTIONS} output:crd:artifacts:config=config/crds
deploy: manifests
kubectl apply -f config/crds
kustomize build config/default | kubectl apply -f -
# Generate DeepCopy to implement runtime.Object
mockgen:
mockgen -package=openpitrix -source=pkg/simple/client/openpitrix/openpitrix.go -destination=pkg/simple/client/openpitrix/mock.go
deepcopy:
./vendor/k8s.io/code-generator/generate-groups.sh all kubesphere.io/kubesphere/pkg/client kubesphere.io/kubesphere/pkg/apis "servicemesh:v1alpha2 tenant:v1alpha1"
# Generate code
generate:
ifndef GOPATH
$(error GOPATH not defined, please define GOPATH. Run "go help gopath" to learn more about GOPATH)
endif
go generate ./pkg/... ./cmd/...
GO111MODULE=on go install -mod=vendor k8s.io/code-generator/cmd/deepcopy-gen
${GOPATH}/bin/deepcopy-gen -i kubesphere.io/kubesphere/pkg/apis/... -h ./hack/boilerplate.go.txt -O zz_generated.deepcopy
openapi:
go run ./vendor/k8s.io/kube-openapi/cmd/openapi-gen/openapi-gen.go -O openapi_generated -i ./vendor/k8s.io/apimachinery/pkg/apis/meta/v1,./pkg/apis/tenant/v1alpha1 -p kubesphere.io/kubesphere/pkg/apis/tenant/v1alpha1 -h ./hack/boilerplate.go.txt --report-filename ./api/api-rules/violation_exceptions.list
go run ./vendor/k8s.io/kube-openapi/cmd/openapi-gen/openapi-gen.go -O openapi_generated -i ./vendor/k8s.io/apimachinery/pkg/apis/meta/v1,./pkg/apis/servicemesh/v1alpha2 -p kubesphere.io/kubesphere/pkg/apis/servicemesh/v1alpha2 -h ./hack/boilerplate.go.txt --report-filename ./api/api-rules/violation_exceptions.list
go run ./vendor/k8s.io/kube-openapi/cmd/openapi-gen/openapi-gen.go -O openapi_generated -i ./vendor/k8s.io/api/networking/v1,./vendor/k8s.io/apimachinery/pkg/apis/meta/v1,./vendor/k8s.io/apimachinery/pkg/util/intstr,./pkg/apis/network/v1alpha1 -p kubesphere.io/kubesphere/pkg/apis/network/v1alpha1 -h ./hack/boilerplate.go.txt --report-filename ./api/api-rules/violation_exceptions.list
go run ./vendor/k8s.io/kube-openapi/cmd/openapi-gen/openapi-gen.go -O openapi_generated -i ./vendor/k8s.io/apimachinery/pkg/apis/meta/v1,./pkg/apis/devops/v1alpha1,./vendor/k8s.io/apimachinery/pkg/runtime,./vendor/k8s.io/api/core/v1 -p kubesphere.io/kubesphere/pkg/apis/devops/v1alpha1 -h ./hack/boilerplate.go.txt --report-filename ./api/api-rules/violation_exceptions.list
go run ./vendor/k8s.io/kube-openapi/cmd/openapi-gen/openapi-gen.go -O openapi_generated -i ./vendor/k8s.io/apimachinery/pkg/apis/meta/v1,./pkg/apis/cluster/v1alpha1,./vendor/k8s.io/apimachinery/pkg/runtime,./vendor/k8s.io/api/core/v1 -p kubesphere.io/kubesphere/pkg/apis/cluster/v1alpha1 -h ./hack/boilerplate.go.txt --report-filename ./api/api-rules/violation_exceptions.list
go run ./vendor/k8s.io/kube-openapi/cmd/openapi-gen/openapi-gen.go -O openapi_generated -i ./vendor/k8s.io/apimachinery/pkg/apis/meta/v1,./pkg/apis/devops/v1alpha3,./vendor/k8s.io/apimachinery/pkg/runtime -p kubesphere.io/kubesphere/pkg/apis/devops/v1alpha3 -h ./hack/boilerplate.go.txt --report-filename ./api/api-rules/violation_exceptions.list
go run ./tools/cmd/crd-doc-gen/main.go
go run ./tools/cmd/doc-gen/main.go
# Build the docker image
docker-build: all
docker build . -t ${IMG}
hack/docker_build.sh
docker-build-no-test: ks-apiserver ks-controller-manager
hack/docker_build.sh
# Run tests
test: generate fmt vet
go test ./pkg/... ./cmd/... -coverprofile cover.out
test: fmt vet
export KUBEBUILDER_CONTROLPLANE_START_TIMEOUT=2m; go test ./pkg/... ./cmd/... -covermode=atomic -coverprofile=coverage.txt
.PHONY: clean
clean:
-make -C ./pkg/version clean
@echo "ok"
# find or download controller-gen
# download controller-gen if necessary
clientset:
./hack/generate_client.sh
# Currently in the upgrade phase of controller tools.
# But the new controller tools are not compatible with the old version.
# With these commands you may need to manually modify the generated code
# So don't use it unless you know it very deeply
internal-crds:
$(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./pkg/apis/network/..." output:crd:artifacts:config=config/crd/bases
internal-generate-apis: internal-controller-gen
$(CONTROLLER_GEN) object:headerFile=./hack/boilerplate.go.txt paths=./pkg/apis/network/...
internal-controller-gen:
ifeq (, $(shell which controller-gen))
go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.2.0-beta.4
CONTROLLER_GEN=$(GOBIN)/controller-gen
else
CONTROLLER_GEN=$(shell which controller-gen)
endif
network-rbac:
$(CONTROLLER_GEN) paths=./pkg/controller/network/provider/ paths=./pkg/controller/network/ rbac:roleName=network-manager output:rbac:artifacts:config=kustomize/network/calico-k8s
$(CONTROLLER_GEN) paths=./pkg/controller/network/ rbac:roleName=network-manager output:rbac:artifacts:config=kustomize/network/calico-etcd

23
OWNERS Normal file
View File

@@ -0,0 +1,23 @@
approvers:
- zryfish #oncall
- rayzhou2017
reviewers:
- rayzhou2017
- zryfish
- benjaminhuo
- calvinyv
- FeynmanZhou
- huanggze
- huojiao2006
- Ma-Dan
- magicsong
- pixiake
- runzexia
- wansir
- wnxn
- zheng1
- soulseen
- shaowenchen
- stoneshi-yunify
- linuxsuren

157
README.md
View File

@@ -1,104 +1,123 @@
# KubeSphere
# KubeSphere Container Platform
[![License](http://img.shields.io/badge/license-apache%20v2-blue.svg)](https://github.com/KubeSphere/KubeSphere/blob/master/LICENSE)
[![Build Status](https://travis-ci.org/kubesphere/kubesphere.svg?branch=master)](https://travis-ci.org/kubesphere/kubesphere)
[![Go Report Card](https://goreportcard.com/badge/github.com/kubesphere/kubesphere)](https://goreportcard.com/report/github.com/kubesphere/kubesphere)
[![KubeSphere release](https://img.shields.io/github/release/kubesphere/kubesphere.svg?color=release&label=release&logo=release&logoColor=release)](https://github.com/kubesphere/kubesphere/releases/tag/v3.0.0)
![logo](docs/images/kubesphere-logo.png)
----
## What is KubeSphere
[KubeSphere](https://kubesphere.io/) is an enterprise-grade multi-tenant container management platform that built on [Kubernetes](https://kubernetes.io). It provides an easy-to-use UI enables creation of computing resources with a few clicks and one-click deployment, which reduces the learning curve and empower the DevOps teams. It greatly reduces the complexity of the daily work of development, testing, operation and maintenance, aiming to solve the pain spots of Kubernetes' storage, network, security and ease of use, etc.
> English | [中文](README_zh.md)
> See this [document](https://docs.kubesphere.io/advanced-v2.0/zh-CN/introduction/intro/) that describes the KubeSphere landscape and details.
[KubeSphere](https://kubesphere.io/) is a **distributed operating system providing cloud native stack** with [Kubernetes](https://kubernetes.io) as its kernel, and aims to be plug-and-play architecture for third-party applications seamless integration to boost its ecosystem. KubeSphere is also a multi-tenant enterprise-grade container platform with full-stack automated IT operation and streamlined DevOps workflows. It provides developer-friendly wizard web UI, helping enterprises to build out a more robust and feature-rich platform, which includes most common functionalities needed for enterprise Kubernetes strategy, see [Feature List](#features) for details.
The following screenshots give a close insight into KubeSphere. Please check [What is KubeSphere](https://kubesphere.io/docs/introduction/what-is-kubesphere/) for further information.
<table>
<tr>
<td width="50%" align="center"><b>Workbench</b></td>
<td width="50%" align="center"><b>Project Resources</b></td>
</tr>
<tr>
<td><img src="docs/images/console.png"/></td>
<td><img src="docs/images/project.png"/></td>
</tr>
<tr>
<td width="50%" align="center"><b>CI/CD Pipeline</b></td>
<td width="50%" align="center"><b>App Store</b></td>
</tr>
<tr>
<td><img src="docs/images/cicd.png"/></td>
<td><img src="docs/images/app-store.png"/></td>
</tr>
</table>
## Demo Environment
Using the account `demo1 / Demo123` to log in the [demo environment](https://demo.kubesphere.io/). Please note the account is granted view access. You can also have a quick view of [KubeSphere Demo Video](https://youtu.be/u5lQvhi_Xlc).
## Architecture
KubeSphere uses a loosely-coupled architecture that separates the [frontend](https://github.com/kubesphere/console) from the [backend](https://github.com/kubesphere/kubesphere). External systems can access the components of the backend which are delivered as Docker containers through the REST APIs. See [Architecture](https://kubesphere.io/docs/introduction/architecture/) for details.
![Architecture](docs/images/architecture.png)
## Features
KubeSphere Advanced Edition 2.0.0 provides an easy-to-use console with the awesome user experience that allows you to quickly get started with a container management platform. KubeSphere provides and supports following core features:
|Feature|Description|
|---|---|
| Provisioning Kubernetes Cluster|Support deploy Kubernetes on your infrastructure out of box, including online and air gapped installation|
| Multi-cluster Management | Provide a centralized control plane to manage multiple Kubernetes Clusters, support application distribution across multiple clusters and cloud providers|
| Kubernetes Resource Management | Provide web console for creating and managing Kubernetes resources, with powerful observability including monitoring, logging, events, alerting and notification |
| DevOps System | Provide out-of-box CI/CD based on Jenkins, and offers automated workflow tools including binary-to-image (B2I) and source-to-image (S2I) |
| Application Store | Provide application store for Helm-based applications, and offers application lifecycle management |
| Service Mesh (Istio-based) | Provide fine-grained traffic management, observability and tracing for distributed microservice applications, provides visualization for traffic topology |
| Rich Observability | Provide multi-dimensional monitoring metrics, and provides multi-tenant logging, events and [auditing](https://kubernetes.io/docs/tasks/debug-application-cluster/audit/) management, support alerting and notification for both application and infrastructure |
| Multi-tenant Management | Provide unified authentication with fine-grained roles and three-tier authorization system, supports AD/LDAP authentication |
| Infrastructure Management | Support node management and monitoring, and supports adding new nodes for Kubernetes cluster |
| Storage Support | Support GlusterFS, CephRBD, NFS, LocalPV (default), etc. open source storage solutions, provides CSI plugins to consume storage from cloud providers |
| Network Support | Support Calico, Flannel, etc., provides [Network Policy](https://kubernetes.io/docs/concepts/services-networking/network-policies/) management, and load balancer plug-in [Porter](https://github.com/kubesphere/porter) for bare metal.|
| GPU Support | Support add GPU node, support vGPU, enables running ML applications on Kubernetes, e.g. TensorFlow |
- Workload management
- Service mesh (Istio-based)
- DevOps
- Source to Image
- Multi-tenant management
- Multi-dimensional and Multi-tenant Monitoring, Logging, Alerting, Notification
- Service and network management
- Application template and repository
- Infrastructure management, image registry management
- Integrate Harbor and GitLab
- LB controller for Kubernetes on bare metal ([Porter](https://github.com/kubesphere/porter)), [cloud LB plugin](https://github.com/yunify/qingcloud-cloud-controller-manager)
- Support GPU node
It also supports multiple open source storage and high-performance cloud storage as the persistent storage services, as well as supports multiple open source network plugins.
> See this [document](https://docs.kubesphere.io/advanced-v2.0/zh-CN/introduction/features/) that elaborates on the KubeSphere features and services from a professional point of view.
Please see the [Feature and Benefits](https://kubesphere.io/docs/introduction/features/) for further information.
----
## Latest Release
KubeSphere Advanced Edition 2.0.0 was released on **May 18th, 2019**. See the [Release Notes For 2.0.0](https://docs.kubesphere.io/advanced-v2.0/release/release-v200/) to preview the updates.
KubeSphere 3.0.0 is now generally available! See the [Release Notes For 3.0.0](https://kubesphere.io/docs/release/release-v300/) for the updates.
## Installation
KubeSphere installation supports following 2 kinds of installation, please reference the following guides on how to get KubeSphere up and running.
KubeSphere can run anywhere from on-premise datacenter to any cloud to edge. In addition, it can be deployed on any version-compatible running Kubernetes cluster.
### All-in-One
### QuickStarts
[All-in-One](https://docs.kubesphere.io/advanced-v2.0/zh-CN/installation/all-in-one/): For those who are new to KubeSphere and looking for the fastest way to install and experience the dashboard.
[Quickstarts](https://kubesphere.io/docs/quick-start/) include six hands-on lab exercises that help you quickly get started with KubeSphere.
Just download the installer and execute the `install.sh` under `/scripts` folder, choose `"1) All-in-one"` to trigger the installation. Generally, you can install it directly without any modification, for details please reference [All-in-One](https://docs.kubesphere.io/advanced-v2.0/zh-CN/installation/all-in-one/).
### Installing on Existing Kubernetes Cluster
```bash
$ curl -L https://kubesphere.io/download/stable/advanced-2.0.0 > advanced-2.0.0.tar.gz
$ tar -zxf advanced-2.0.0.tar.gz
```
- [Installing KubeSphere on Amazon EKS](https://v3-0.docs.kubesphere.io/docs/installing-on-kubernetes/hosted-kubernetes/install-kubesphere-on-eks/)
- [Installing KubeSphere on Azure AKS](https://v3-0.docs.kubesphere.io/docs/installing-on-kubernetes/hosted-kubernetes/install-kubesphere-on-aks/)
- [Installing KubeSphere on Google GKE](https://v3-0.docs.kubesphere.io/docs/installing-on-kubernetes/hosted-kubernetes/install-kubesphere-on-gke/)
- [Installing KubeSphere on DigitalOcean Kubernetes](https://v3-0.docs.kubesphere.io/docs/installing-on-kubernetes/hosted-kubernetes/install-kubesphere-on-do/)
- [Installing KubeSphere on Oracle OKE](https://v3-0.docs.kubesphere.io/docs/installing-on-kubernetes/hosted-kubernetes/install-kubesphere-on-oke/)
- [Installing KubeSphere on Tencent TKE](https://v3-0.docs.kubesphere.io/docs/installing-on-kubernetes/hosted-kubernetes/install-ks-on-tencent-tke/)
- [Installing KubeSphere on Huaweicloud CCE](https://v3-0.docs.kubesphere.io/docs/installing-on-kubernetes/hosted-kubernetes/install-ks-on-huawei-cce/)
### Multi-Node
### Installing on Linux
[Multi-Node](https://docs.kubesphere.io/advanced-v2.0/zh-CN/installation/multi-node/) is used for installing KubeSphere on multiple instances, supports for installing a highly available cluster which is able to use in a formal environment.
- [Installing KubeSphere on Azure VM](https://v3-0.docs.kubesphere.io/docs/installing-on-linux/public-cloud/install-ks-on-azure-vms/)
- [Installing KubeSphere on VMware vSphere](https://v3-0.docs.kubesphere.io/docs/installing-on-linux/on-premises/install-kubesphere-on-vmware-vsphere/)
- [Installing KubeSphere on QingCloud Instance](https://v3-0.docs.kubesphere.io/docs/installing-on-linux/public-cloud/kubesphere-on-qingcloud-instance/)
- [Installing on Alibaba Cloud ECS](https://v3-0.docs.kubesphere.io/docs/installing-on-linux/public-cloud/install-kubesphere-on-ali-ecs/)
- [Installing on Huaweicloud VM](https://v3-0.docs.kubesphere.io/docs/installing-on-linux/public-cloud/install-ks-on-huaweicloud-ecs/)
## Contributing, Support, Discussion, and Community
### Minimum Requirements
We :heart: your contribution. The [community](https://github.com/kubesphere/community) walks you through how to get started contributing KubeSphere. The [development guide](https://github.com/kubesphere/community/tree/master/developer-guide/development) explains how to set up development environment.
- Operating Systems
- CentOS 7.5 (64 bit)
- Ubuntu 16.04/18.04 LTS (64 bit)
- Red Hat Enterprise Linux Server 7.4 (64 bit)
- Debian Stretch 9.5 (64 bit)
- Hardware
- CPU8 Core, Memory16 G, Disk Space100 G
## Quick Start
The [Quick Start Guide](https://docs.kubesphere.io/advanced-v2.0/quick-start/admin-quick-start/) provides 12 quick-start examples to walk you through the process and common manipulation in KubeSphere, with a quick overview of the core features of KubeSphere that helps you to get familiar with it.
## RoadMap
Currently, KubeSphere has released the following 4 major editions. Advanced Edition 2.0.0 was released on May 18, 2019. The future releases will include Big data, AI, Multicluster, QingCloud SDN, etc.
**Community Edition** => **Express Edition** => **Advanced Edition 1.0.0** => **Advanced Edition 2.0.0**
![Roadmap](docs/images/roadmap-en.png)
## Documentation
- [KubeSphere Documentation (En/中) ](https://docs.kubesphere.io/)
- [KubeSphere Docementation (PDF)](https://docs.kubesphere.io/KubeSphere-advanced-v2.0.pdf)
## Support, Discussion, and Community
If you need any help with KubeSphere, please join us at [Slack channel](http://kubesphere.slack.com/) where most of our team hangs out at.
- [Slack Channel](https://join.slack.com/t/kubesphere/shared_invite/enQtNTE3MDIxNzUxNzQ0LTZkNTdkYWNiYTVkMTM5ZThhODY1MjAyZmVlYWEwZmQ3ODQ1NmM1MGVkNWEzZTRhNzk0MzM5MmY4NDc3ZWVhMjE)
- [Youtube](https://www.youtube.com/channel/UCyTdUQUYjf7XLjxECx63Hpw)
- [Follow us on Twitter](https://twitter.com/KubeSphere)
Please submit any KubeSphere bugs, issues, and feature requests to [KubeSphere GitHub Issue](https://github.com/kubesphere/kubesphere/issues).
## Contributing to the project
## Who are using KubeSphere
All members of the KubeSphere community must abide by [Code of Conduct](docs/code-of-conduct.md). Only by respecting each other can we develop a productive, collaborative community.
How to submit a pull request to KubeSphere? See [Pull Request Instruction](docs/pull-requests.md).
You can then find out more detail [here](docs/welcome-to-KubeSphere-new-developer-guide.md).
The [user case studies](https://kubesphere.io/case/) page includes the user list of the project. You can [submit a PR](https://github.com/kubesphere/kubesphere/blob/master/docs/powered-by-kubesphere.md) to add your institution name and homepage if you are using KubeSphere.
## Landscapes
<p align="center">
<br/><br/>
<img src="https://landscape.cncf.io/images/left-logo.svg" width="150"/>&nbsp;&nbsp;<img src="https://landscape.cncf.io/images/right-logo.svg" width="200"/>&nbsp;&nbsp;<img src="https://www.cncf.io/wp-content/uploads/2017/11/certified_kubernetes_color.png" height="40" width="30"/>
<br/><br/>
KubeSphere is a member of CNCF and a <a href="https://www.cncf.io/certification/software-conformance/#logos">Kubernetes Conformance Certified platform
</a>, which enriches the <a href="https://landscape.cncf.io/landscape=observability-and-analysis&license=apache-license-2-0">CNCF CLOUD NATIVE Landscape.
</a>
</p>

123
README_zh.md Normal file
View File

@@ -0,0 +1,123 @@
# KubeSphere 容器平台
[![License](http://img.shields.io/badge/license-apache%20v2-blue.svg)](https://github.com/KubeSphere/KubeSphere/blob/master/LICENSE)
[![Build Status](https://travis-ci.org/kubesphere/kubesphere.svg?branch=master)](https://travis-ci.org/kubesphere/kubesphere)
[![KubeSphere release](https://img.shields.io/github/release/kubesphere/kubesphere.svg?color=release&label=release&logo=release&logoColor=release)](https://github.com/kubesphere/kubesphere/releases/tag/v3.0.0)
![logo](docs/images/kubesphere-logo.png)
----
## KubeSphere 是什么
> [English](README.md) | 中文
[KubeSphere](https://kubesphere.com.cn) 是在 [Kubernetes](https://kubernetes.io) 之上构建的面向云原生应用的 **容器混合云**,支持多云与多集群管理,提供全栈的 IT 自动化运维的能力,简化企业的 DevOps 工作流。KubeSphere 提供了运维友好的向导式操作界面帮助企业快速构建一个强大和功能丰富的容器云平台。KubeSphere 愿景是打造一个基于 Kubernetes 的云原生分布式操作系统它的架构可以很方便地与云原生生态进行即插即用plug-and-play的集成。
KubeSphere 目前最新的版本为 3.0.0,所有版本 100% 开源,关于 KubeSphere 更详细的介绍与说明请参阅 [什么是 KubeSphere](https://kubesphere.com.cn/docs/zh-CN/introduction/what-is-kubesphere/)。
<table>
<tr>
<td width="50%" align="center"><b>工作台</b></td>
<td width="50%" align="center"><b>项目资源</b></td>
</tr>
<tr>
<td><img src="docs/images/console.png"/></td>
<td><img src="docs/images/project.png"/></td>
</tr>
<tr>
<td width="50%" align="center"><b>CI/CD 流水线</b></td>
<td width="50%" align="center"><b>应用商店</b></td>
</tr>
<tr>
<td><img src="docs/images/cicd.png"/></td>
<td><img src="docs/images/app-store.png"/></td>
</tr>
</table>
## 快速体验
使用体验账号 `demo1 / Demo123` 登录 [Demo 环境](https://demo.kubesphere.io/),该账号仅授予了 view 权限,建议自行安装体验完整的管理功能。您还可以访问 Youtube 查看 [KubeSphere Demo 视频](https://youtu.be/u5lQvhi_Xlc)。
## 架构
KubeSphere 采用了前后端分离的架构设计,后端的各个功能组件可通过 REST API 对接外部系统,详见 [架构说明](https://kubesphere.com.cn/docs/zh-CN/introduction/architecture/)。本仓库仅包含后端代码,前端代码参考 [Console 项目](https://github.com/kubesphere/console)。
![Architecture](docs/images/architecture.png)
## 核心功能
|功能 |介绍 |
| --- | ---|
|多云与多集群管理|提供多云与多集群的中央管理面板,支持集群导入,支持应用在多云与多集群一键分发|
| Kubernetes 集群搭建与运维 | 支持在线 & 离线安装、升级与扩容 K8s 集群,支持安装 “云原生全家桶” |
| Kubernetes 资源可视化管理 | 可视化纳管原生 Kubernetes 资源,支持向导式创建与管理 K8s 资源 |
| 基于 Jenkins 的 DevOps 系统 | 支持图形化与脚本两种方式构建 CI/CD 流水线,内置 Source to ImageS2I和 Binary to ImageB2I等 CD 工具 |
| 应用商店与应用生命周期管理 | 提供应用商店,内置 Redis、MySQL 等 15 个常用应用,支持应用的生命周期管理 |
| 基于 Istio 的微服务治理 (Service Mesh) | 提供可视化无代码侵入的 **灰度发布、熔断、流量治理与流量拓扑、分布式 Tracing** |
| 多租户管理 | 提供基于角色的细粒度多租户统一认证,支持 **对接企业 LDAP/AD**,提供多层级的权限管理 |
| 丰富的可观察性功能 | 提供集群/工作负载/Pod/容器等多维度的监控,提供基于多租户的日志查询与日志收集,支持节点与应用层级的告警与通知 |
|基础设施管理|支持 Kubernetes 节点管理,支持节点扩容与集群升级,提供基于节点的多项监控指标与告警规则 |
| 存储管理 | 支持对接 Ceph、GlusterFS、NFS、Local PV支持可视化运维管理 PVC、StorageClass提供 CSI 插件对接云平台存储 |
| 网络管理 | 提供租户网络隔离与 K8s [Network Policy](https://kubernetes.io/docs/concepts/services-networking/network-policies/) 管理,支持 Calico、Flannel提供 [Porter LB](https://github.com/kubesphere/porter) 用于暴露物理环境 K8s 集群的 LoadBalancer 服务 |
| GPU support | 集群支持添加 GPU 与 vGPU可运行 TensorFlow 等 ML 框架 |
以上功能说明详见 [产品功能](https://kubesphere.com.cn/docs/zh-CN/introduction/features/)。
----
## 最新发布
KubeSphere 3.0.0 已于 2020 年 8 月 31 日正式 GA点击 [Release Notes For 3.0.0](https://kubesphere.com.cn/docs/release/release-v300/) 查看 3.0.0 版本的更新详情。
## 安装 3.0.0
### 快速入门
[快速入门系列](https://kubesphere.com.cn/docs/quick-start/) 提供了快速安装与入门示例,供初次安装体验参考。
### 在已有 Kubernetes 之上安装 KubeSphere
- [基于 Kubernetes 的安装介绍](https://kubesphere.com.cn/docs/installing-on-kubernetes/introduction/overview/)
- [在阿里云 ACK 安装 KubeSphere](https://kubesphere.com.cn/forum/d/1745-kubesphere-v3-0-0-dev-on-ack)
- [在腾讯云 TKE 安装 KubeSphere](https://kubesphere.com.cn/docs/installing-on-kubernetes/hosted-kubernetes/install-ks-on-tencent-tke/)
- [在华为云 CCE 安装 KubeSphere](https://kubesphere.com.cn/docs/installing-on-kubernetes/hosted-kubernetes/install-ks-on-huawei-cce/)
- [在 AWS EKS 安装 KubeSphere](https://kubesphere.com.cn/docs/installing-on-kubernetes/hosted-kubernetes/install-kubesphere-on-eks/)
- [在 Google GKE 安装 KubeSphere](https://kubesphere.com.cn/docs/installing-on-kubernetes/hosted-kubernetes/install-kubesphere-on-gke/)
- [在 Azure AKS 安装 KubeSphere](https://kubesphere.com.cn/docs/installing-on-kubernetes/hosted-kubernetes/install-kubesphere-on-aks/)
- [在 DigitalOcean 安装 KubeSphere](https://kubesphere.com.cn/docs/installing-on-kubernetes/hosted-kubernetes/install-kubesphere-on-do/)
- [在 Oracle OKE 安装 KubeSphere](https://kubesphere.com.cn/docs/installing-on-kubernetes/hosted-kubernetes/install-kubesphere-on-oke/)
### 基于 Linux 安装 KubeSphere
- [多节点安装介绍(以三节点为例)](https://kubesphere.com.cn/docs/installing-on-linux/introduction/multioverview/)
- [在 VMware vSphere 安装高可用集群](https://kubesphere.com.cn/docs/installing-on-linux/on-premises/install-kubesphere-on-vmware-vsphere/)
- [在青云QingCloud 安装高可用集群](https://kubesphere.com.cn/docs/installing-on-linux/public-cloud/kubesphere-on-qingcloud-instance/)
- [在阿里云 ECS 部署高可用集群](https://kubesphere.com.cn/docs/installing-on-linux/public-cloud/install-kubesphere-on-ali-ecs/)
- [在华为云 VM 部署高可用集群](https://kubesphere.com.cn/docs/installing-on-linux/public-cloud/install-kubesphere-on-huaweicloud-ecs/)
- [在 Azure VM 安装高可用集群](https://kubesphere.com.cn/docs/installing-on-linux/public-cloud/install-kubesphere-on-azure-vms/)
## 技术社区
[KubeSphere 社区](https://github.com/kubesphere/community) 包含所有社区的信息,包括如何开发,兴趣小组(SIG)等。比如[开发指南](https://github.com/kubesphere/community/tree/master/developer-guide/development) 详细说明了如何从源码编译、KubeSphere 的 GitHub 工作流、如何贡献代码以及如何测试等。
- [中文论坛](https://kubesphere.com.cn/forum/)
- [Slack Channel](https://join.slack.com/t/kubesphere/shared_invite/enQtNTE3MDIxNzUxNzQ0LTZkNTdkYWNiYTVkMTM5ZThhODY1MjAyZmVlYWEwZmQ3ODQ1NmM1MGVkNWEzZTRhNzk0MzM5MmY4NDc3ZWVhMjE)
- [社区微信群(见官网底部)](https://kubesphere.com.cn/)
- [Bug 与建议反馈GitHub Issue](https://github.com/kubesphere/kubesphere/issues)
## 谁在使用 KubeSphere
[Powered by KubeSphere](https://kubesphere.com.cn/case/) 列出了哪些企业在使用 KubeSphere如果您所在的企业已安装使用了 KubeSphere欢迎[提交 PR](https://github.com/kubesphere/kubesphere/blob/master/docs/powered-by-kubesphere.md)。
## Landscapes
<p align="center">
<br/><br/>
<img src="https://landscape.cncf.io/images/left-logo.svg" width="150"/>&nbsp;&nbsp;<img src="https://landscape.cncf.io/images/right-logo.svg" width="200"/>&nbsp;&nbsp;<img src="https://www.cncf.io/wp-content/uploads/2017/11/certified_kubernetes_color.png" height="40" width="30"/>
<br/><br/>
KubeSphere 是 CNCF 基金会成员并且通过了 <a href="https://www.cncf.io/certification/software-conformance/#logos">Kubernetes 一致性认证
</a>,进一步丰富了 <a href="https://landscape.cncf.io/landscape=observability-and-analysis&license=apache-license-2-0">CNCF 云原生的生态。
</a>
</p>

View File

@@ -0,0 +1,98 @@
API rule violation: list_type_missing,./pkg/apis/devops/v1alpha3,DevOpsProjectList,Items
API rule violation: list_type_missing,./pkg/apis/devops/v1alpha3,NoScmPipeline,Parameters
API rule violation: list_type_missing,./pkg/apis/devops/v1alpha3,PipelineList,Items
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,APIGroup,ServerAddressByClientCIDRs
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,APIGroup,Versions
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,APIGroupList,Groups
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,APIResource,Categories
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,APIResource,ShortNames
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,APIResourceList,APIResources
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,APIVersions,ServerAddressByClientCIDRs
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,APIVersions,Versions
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,CreateOptions,DryRun
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,DeleteOptions,DryRun
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,FieldsV1,Raw
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,LabelSelector,MatchExpressions
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,LabelSelectorRequirement,Values
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,List,Items
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,ObjectMeta,Finalizers
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,ObjectMeta,ManagedFields
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,ObjectMeta,OwnerReferences
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,PartialObjectMetadataList,Items
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,PatchOptions,DryRun
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,RootPaths,Paths
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,StatusDetails,Causes
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,Table,ColumnDefinitions
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,Table,Rows
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,TableRow,Cells
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,TableRow,Conditions
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,UpdateOptions,DryRun
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/runtime,RawExtension,Raw
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/runtime,Unknown,Raw
API rule violation: names_match,./pkg/apis/devops/v1alpha3,BitbucketServerSource,ApiUri
API rule violation: names_match,./pkg/apis/devops/v1alpha3,BitbucketServerSource,CloneOption
API rule violation: names_match,./pkg/apis/devops/v1alpha3,BitbucketServerSource,CredentialId
API rule violation: names_match,./pkg/apis/devops/v1alpha3,BitbucketServerSource,DiscoverBranches
API rule violation: names_match,./pkg/apis/devops/v1alpha3,BitbucketServerSource,DiscoverPRFromForks
API rule violation: names_match,./pkg/apis/devops/v1alpha3,BitbucketServerSource,DiscoverPRFromOrigin
API rule violation: names_match,./pkg/apis/devops/v1alpha3,BitbucketServerSource,DiscoverTags
API rule violation: names_match,./pkg/apis/devops/v1alpha3,BitbucketServerSource,RegexFilter
API rule violation: names_match,./pkg/apis/devops/v1alpha3,BitbucketServerSource,ScmId
API rule violation: names_match,./pkg/apis/devops/v1alpha3,DiscarderProperty,DaysToKeep
API rule violation: names_match,./pkg/apis/devops/v1alpha3,DiscarderProperty,NumToKeep
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GitSource,CloneOption
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GitSource,CredentialId
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GitSource,DiscoverBranches
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GitSource,DiscoverTags
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GitSource,RegexFilter
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GitSource,ScmId
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GithubSource,ApiUri
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GithubSource,CloneOption
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GithubSource,CredentialId
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GithubSource,DiscoverBranches
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GithubSource,DiscoverPRFromForks
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GithubSource,DiscoverPRFromOrigin
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GithubSource,DiscoverTags
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GithubSource,RegexFilter
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GithubSource,ScmId
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GitlabSource,ApiUri
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GitlabSource,CloneOption
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GitlabSource,CredentialId
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GitlabSource,DiscoverBranches
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GitlabSource,DiscoverPRFromForks
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GitlabSource,DiscoverPRFromOrigin
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GitlabSource,DiscoverTags
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GitlabSource,RegexFilter
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GitlabSource,ScmId
API rule violation: names_match,./pkg/apis/devops/v1alpha3,GitlabSource,ServerName
API rule violation: names_match,./pkg/apis/devops/v1alpha3,MultiBranchJobTrigger,CreateActionJobsToTrigger
API rule violation: names_match,./pkg/apis/devops/v1alpha3,MultiBranchJobTrigger,DeleteActionJobsToTrigger
API rule violation: names_match,./pkg/apis/devops/v1alpha3,MultiBranchPipeline,BitbucketServerSource
API rule violation: names_match,./pkg/apis/devops/v1alpha3,MultiBranchPipeline,GitHubSource
API rule violation: names_match,./pkg/apis/devops/v1alpha3,MultiBranchPipeline,GitSource
API rule violation: names_match,./pkg/apis/devops/v1alpha3,MultiBranchPipeline,GitlabSource
API rule violation: names_match,./pkg/apis/devops/v1alpha3,MultiBranchPipeline,MultiBranchJobTrigger
API rule violation: names_match,./pkg/apis/devops/v1alpha3,MultiBranchPipeline,ScriptPath
API rule violation: names_match,./pkg/apis/devops/v1alpha3,MultiBranchPipeline,SingleSvnSource
API rule violation: names_match,./pkg/apis/devops/v1alpha3,MultiBranchPipeline,SourceType
API rule violation: names_match,./pkg/apis/devops/v1alpha3,MultiBranchPipeline,SvnSource
API rule violation: names_match,./pkg/apis/devops/v1alpha3,MultiBranchPipeline,TimerTrigger
API rule violation: names_match,./pkg/apis/devops/v1alpha3,NoScmPipeline,DisableConcurrent
API rule violation: names_match,./pkg/apis/devops/v1alpha3,NoScmPipeline,RemoteTrigger
API rule violation: names_match,./pkg/apis/devops/v1alpha3,NoScmPipeline,TimerTrigger
API rule violation: names_match,./pkg/apis/devops/v1alpha3,Parameter,DefaultValue
API rule violation: names_match,./pkg/apis/devops/v1alpha3,PipelineSpec,MultiBranchPipeline
API rule violation: names_match,./pkg/apis/devops/v1alpha3,SingleSvnSource,CredentialId
API rule violation: names_match,./pkg/apis/devops/v1alpha3,SingleSvnSource,ScmId
API rule violation: names_match,./pkg/apis/devops/v1alpha3,SvnSource,CredentialId
API rule violation: names_match,./pkg/apis/devops/v1alpha3,SvnSource,ScmId
API rule violation: names_match,k8s.io/apimachinery/pkg/apis/meta/v1,APIResourceList,APIResources
API rule violation: names_match,k8s.io/apimachinery/pkg/apis/meta/v1,Duration,Duration
API rule violation: names_match,k8s.io/apimachinery/pkg/apis/meta/v1,InternalEvent,Object
API rule violation: names_match,k8s.io/apimachinery/pkg/apis/meta/v1,InternalEvent,Type
API rule violation: names_match,k8s.io/apimachinery/pkg/apis/meta/v1,MicroTime,Time
API rule violation: names_match,k8s.io/apimachinery/pkg/apis/meta/v1,StatusCause,Type
API rule violation: names_match,k8s.io/apimachinery/pkg/apis/meta/v1,Time,Time
API rule violation: names_match,k8s.io/apimachinery/pkg/runtime,Unknown,ContentEncoding
API rule violation: names_match,k8s.io/apimachinery/pkg/runtime,Unknown,ContentType
API rule violation: names_match,k8s.io/apimachinery/pkg/runtime,Unknown,Raw

File diff suppressed because it is too large Load Diff

12530
api/openapi-spec/swagger.json Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,20 +0,0 @@
# Copyright 2018 The KubeSphere Authors. All rights reserved.
# Use of this source code is governed by a Apache license
# that can be found in the LICENSE file.
# Copyright 2018 The KubeSphere Authors. All rights reserved.
# Use of this source code is governed by a Apache license
# that can be found in the LICENSE file.
FROM golang:1.12 as ks-apigateway-builder
COPY / /go/src/kubesphere.io/kubesphere
WORKDIR /go/src/kubesphere.io/kubesphere
RUN CGO_ENABLED=0 GO111MODULE=off GOOS=linux GOARCH=amd64 go build -i -ldflags '-w -s' -o ks-apigateway cmd/ks-apigateway/apiserver.go && \
go run tools/cmd/doc-gen/main.go --output=install/swagger-ui/api.json
FROM alpine:3.9
RUN apk add --update ca-certificates && update-ca-certificates
COPY --from=ks-apigateway-builder /go/src/kubesphere.io/kubesphere/ks-apigateway /usr/local/bin/
COPY --from=ks-apigateway-builder /go/src/kubesphere.io/kubesphere/install/swagger-ui /var/static/swagger-ui
CMD ["sh"]

View File

@@ -1,18 +1,23 @@
# Copyright 2018 The KubeSphere Authors. All rights reserved.
# Use of this source code is governed by a Apache license
# Copyright 2020 The KubeSphere Authors. All rights reserved.
# Use of this source code is governed by an Apache license
# that can be found in the LICENSE file.
FROM alpine:3.11
# Copyright 2018 The KubeSphere Authors. All rights reserved.
# Use of this source code is governed by a Apache license
# that can be found in the LICENSE file.
FROM golang:1.12 as ks-apiserver-builder
ARG HELM_VERSION=v3.5.2
COPY / /go/src/kubesphere.io/kubesphere
RUN apk add --no-cache ca-certificates
# install helm
RUN wget https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz && \
tar xvf helm-${HELM_VERSION}-linux-amd64.tar.gz && \
rm helm-${HELM_VERSION}-linux-amd64.tar.gz && \
mv linux-amd64/helm /usr/bin/ && \
rm -rf linux-amd64
# To speed up building process, we copy binary directly from make
# result instead of building it again, so make sure you run the
# following command first before building docker image
# make ks-apiserver
#
COPY /bin/cmd/ks-apiserver /usr/local/bin/
WORKDIR /go/src/kubesphere.io/kubesphere
RUN CGO_ENABLED=0 GO111MODULE=off GOOS=linux GOARCH=amd64 go build -i -ldflags '-w -s' -o ks-apiserver cmd/ks-apiserver/apiserver.go
FROM alpine:3.9
RUN apk add --update ca-certificates && update-ca-certificates
COPY --from=ks-apiserver-builder /go/src/kubesphere.io/kubesphere/ks-apiserver /usr/local/bin/
EXPOSE 9090
CMD ["sh"]

View File

@@ -1,18 +1,26 @@
# Copyright 2018 The KubeSphere Authors. All rights reserved.
# Use of this source code is governed by a Apache license
# Copyright 2020 The KubeSphere Authors. All rights reserved.
# Use of this source code is governed by an Apache license
# that can be found in the LICENSE file.
FROM alpine:3.11
# Copyright 2018 The KubeSphere Authors. All rights reserved.
# Use of this source code is governed by a Apache license
# that can be found in the LICENSE file.
FROM golang:1.12 as controller-manager-builder
ARG HELM_VERSION=v3.5.2
ARG KUSTOMIZE_VERSION=v4.0.5
COPY / /go/src/kubesphere.io/kubesphere
WORKDIR /go/src/kubesphere.io/kubesphere
RUN apk add --no-cache ca-certificates
# install helm
RUN wget https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz && \
tar xvf helm-${HELM_VERSION}-linux-amd64.tar.gz && \
rm helm-${HELM_VERSION}-linux-amd64.tar.gz && \
mv linux-amd64/helm /usr/bin/ && \
rm -rf linux-amd64
# install kustomize
RUN wget https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2F${KUSTOMIZE_VERSION}/kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz && \
tar xvf kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz && \
rm kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz && \
mv kustomize /usr/bin
COPY /bin/cmd/controller-manager /usr/local/bin/
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build --ldflags "-extldflags -static" -o controller-manager ./cmd/controller-manager/
EXPOSE 8443 8080
FROM alpine:3.7
RUN apk add --update ca-certificates && update-ca-certificates
COPY --from=controller-manager-builder /go/src/kubesphere.io/kubesphere/controller-manager /usr/local/bin/
CMD controller-manager
CMD ["sh"]

View File

@@ -1,18 +0,0 @@
# Copyright 2018 The KubeSphere Authors. All rights reserved.
# Use of this source code is governed by a Apache license
# that can be found in the LICENSE file.
# Copyright 2018 The KubeSphere Authors. All rights reserved.
# Use of this source code is governed by a Apache license
# that can be found in the LICENSE file.
FROM golang:1.12 as ks-iam-builder
COPY / /go/src/kubesphere.io/kubesphere
WORKDIR /go/src/kubesphere.io/kubesphere
RUN CGO_ENABLED=0 GO111MODULE=off GOOS=linux GOARCH=amd64 go build -i -ldflags '-w -s' -o ks-iam cmd/ks-iam/apiserver.go
FROM alpine:3.9
RUN apk add --update ca-certificates && update-ca-certificates
COPY --from=ks-iam-builder /go/src/kubesphere.io/kubesphere/ks-iam /usr/local/bin/
CMD ["sh"]

View File

@@ -1,123 +1,306 @@
/*
Copyright 2019 The KubeSphere Authors.
Copyright 2019 The KubeSphere 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
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.
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 app
import (
"k8s.io/client-go/informers"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"kubesphere.io/kubesphere/pkg/controller/application"
"kubesphere.io/kubesphere/pkg/controller/destinationrule"
"kubesphere.io/kubesphere/pkg/controller/job"
//"kubesphere.io/kubesphere/pkg/controller/job"
"kubesphere.io/kubesphere/pkg/controller/virtualservice"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/tools/cache"
"k8s.io/klog"
"sigs.k8s.io/controller-runtime/pkg/manager"
"time"
"sigs.k8s.io/kubefed/pkg/controller/util"
logf "sigs.k8s.io/controller-runtime/pkg/runtime/log"
istioclientset "github.com/knative/pkg/client/clientset/versioned"
istioinformers "github.com/knative/pkg/client/informers/externalversions"
applicationclientset "github.com/kubernetes-sigs/application/pkg/client/clientset/versioned"
applicationinformers "github.com/kubernetes-sigs/application/pkg/client/informers/externalversions"
servicemeshclientset "kubesphere.io/kubesphere/pkg/client/clientset/versioned"
servicemeshinformers "kubesphere.io/kubesphere/pkg/client/informers/externalversions"
iamv1alpha2 "kubesphere.io/kubesphere/pkg/apis/iam/v1alpha2"
authoptions "kubesphere.io/kubesphere/pkg/apiserver/authentication/options"
"kubesphere.io/kubesphere/pkg/controller/certificatesigningrequest"
"kubesphere.io/kubesphere/pkg/controller/cluster"
"kubesphere.io/kubesphere/pkg/controller/clusterrolebinding"
"kubesphere.io/kubesphere/pkg/controller/destinationrule"
"kubesphere.io/kubesphere/pkg/controller/devopscredential"
"kubesphere.io/kubesphere/pkg/controller/devopsproject"
"kubesphere.io/kubesphere/pkg/controller/globalrole"
"kubesphere.io/kubesphere/pkg/controller/globalrolebinding"
"kubesphere.io/kubesphere/pkg/controller/group"
"kubesphere.io/kubesphere/pkg/controller/groupbinding"
"kubesphere.io/kubesphere/pkg/controller/job"
"kubesphere.io/kubesphere/pkg/controller/loginrecord"
"kubesphere.io/kubesphere/pkg/controller/network/ippool"
"kubesphere.io/kubesphere/pkg/controller/network/nsnetworkpolicy"
"kubesphere.io/kubesphere/pkg/controller/network/nsnetworkpolicy/provider"
"kubesphere.io/kubesphere/pkg/controller/notification"
"kubesphere.io/kubesphere/pkg/controller/pipeline"
"kubesphere.io/kubesphere/pkg/controller/s2ibinary"
"kubesphere.io/kubesphere/pkg/controller/s2irun"
"kubesphere.io/kubesphere/pkg/controller/storage/capability"
"kubesphere.io/kubesphere/pkg/controller/storage/expansion"
"kubesphere.io/kubesphere/pkg/controller/user"
"kubesphere.io/kubesphere/pkg/controller/virtualservice"
"kubesphere.io/kubesphere/pkg/informers"
"kubesphere.io/kubesphere/pkg/simple/client/devops"
"kubesphere.io/kubesphere/pkg/simple/client/k8s"
ldapclient "kubesphere.io/kubesphere/pkg/simple/client/ldap"
"kubesphere.io/kubesphere/pkg/simple/client/multicluster"
"kubesphere.io/kubesphere/pkg/simple/client/network"
ippoolclient "kubesphere.io/kubesphere/pkg/simple/client/network/ippool"
"kubesphere.io/kubesphere/pkg/simple/client/s3"
)
const defaultResync = 600 * time.Second
func addControllers(
mgr manager.Manager,
client k8s.Client,
informerFactory informers.InformerFactory,
devopsClient devops.Interface,
s3Client s3.Interface,
ldapClient ldapclient.Interface,
options *k8s.KubernetesOptions,
authenticationOptions *authoptions.AuthenticationOptions,
multiClusterOptions *multicluster.Options,
networkOptions *network.Options,
serviceMeshEnabled bool,
kubectlImage string,
stopCh <-chan struct{}) error {
var log = logf.Log.WithName("controller-manager")
kubernetesInformer := informerFactory.KubernetesSharedInformerFactory()
istioInformer := informerFactory.IstioSharedInformerFactory()
kubesphereInformer := informerFactory.KubeSphereSharedInformerFactory()
func AddControllers(mgr manager.Manager, cfg *rest.Config, stopCh <-chan struct{}) error {
multiClusterEnabled := multiClusterOptions.Enable
kubeClient, err := kubernetes.NewForConfig(cfg)
if err != nil {
log.Error(err, "building kubernetes client failed")
var vsController, drController manager.Runnable
if serviceMeshEnabled {
vsController = virtualservice.NewVirtualServiceController(kubernetesInformer.Core().V1().Services(),
istioInformer.Networking().V1alpha3().VirtualServices(),
istioInformer.Networking().V1alpha3().DestinationRules(),
kubesphereInformer.Servicemesh().V1alpha2().Strategies(),
client.Kubernetes(),
client.Istio(),
client.KubeSphere())
drController = destinationrule.NewDestinationRuleController(kubernetesInformer.Apps().V1().Deployments(),
istioInformer.Networking().V1alpha3().DestinationRules(),
kubernetesInformer.Core().V1().Services(),
kubesphereInformer.Servicemesh().V1alpha2().ServicePolicies(),
client.Kubernetes(),
client.Istio(),
client.KubeSphere())
}
istioclient, err := istioclientset.NewForConfig(cfg)
if err != nil {
log.Error(err, "create istio client failed")
return err
jobController := job.NewJobController(kubernetesInformer.Batch().V1().Jobs(), client.Kubernetes())
var s2iBinaryController, s2iRunController, devopsProjectController, devopsPipelineController, devopsCredentialController manager.Runnable
if devopsClient != nil {
s2iBinaryController = s2ibinary.NewController(client.Kubernetes(),
client.KubeSphere(),
kubesphereInformer.Devops().V1alpha1().S2iBinaries(),
s3Client,
)
s2iRunController = s2irun.NewS2iRunController(client.Kubernetes(),
client.KubeSphere(),
kubesphereInformer.Devops().V1alpha1().S2iBinaries(),
kubesphereInformer.Devops().V1alpha1().S2iRuns())
devopsProjectController = devopsproject.NewController(client.Kubernetes(),
client.KubeSphere(), devopsClient,
informerFactory.KubernetesSharedInformerFactory().Core().V1().Namespaces(),
informerFactory.KubeSphereSharedInformerFactory().Devops().V1alpha3().DevOpsProjects(),
informerFactory.KubeSphereSharedInformerFactory().Tenant().V1alpha1().Workspaces())
devopsPipelineController = pipeline.NewController(client.Kubernetes(),
client.KubeSphere(),
devopsClient,
informerFactory.KubernetesSharedInformerFactory().Core().V1().Namespaces(),
informerFactory.KubeSphereSharedInformerFactory().Devops().V1alpha3().Pipelines())
devopsCredentialController = devopscredential.NewController(client.Kubernetes(),
devopsClient,
informerFactory.KubernetesSharedInformerFactory().Core().V1().Namespaces(),
informerFactory.KubernetesSharedInformerFactory().Core().V1().Secrets())
}
applicationClient, err := applicationclientset.NewForConfig(cfg)
if err != nil {
log.Error(err, "create application client failed")
return err
storageCapabilityController := capability.NewController(
client.KubeSphere().StorageV1alpha1().StorageClassCapabilities(),
kubesphereInformer.Storage().V1alpha1(),
client.Kubernetes().StorageV1().StorageClasses(),
kubernetesInformer.Storage().V1().StorageClasses(),
capability.SnapshotSupported(client.Kubernetes().Discovery()),
client.Snapshot().SnapshotV1beta1().VolumeSnapshotClasses(),
informerFactory.SnapshotSharedInformerFactory().Snapshot().V1beta1().VolumeSnapshotClasses(),
kubernetesInformer.Storage().V1beta1().CSIDrivers(),
)
volumeExpansionController := expansion.NewVolumeExpansionController(
client.Kubernetes(),
kubernetesInformer.Core().V1().PersistentVolumeClaims(),
kubernetesInformer.Storage().V1().StorageClasses(),
kubernetesInformer.Core().V1().Pods(),
kubernetesInformer.Apps().V1().Deployments(),
kubernetesInformer.Apps().V1().ReplicaSets(),
kubernetesInformer.Apps().V1().StatefulSets())
var fedUserCache, fedGlobalRoleBindingCache, fedGlobalRoleCache cache.Store
var fedUserCacheController, fedGlobalRoleBindingCacheController, fedGlobalRoleCacheController cache.Controller
if multiClusterEnabled {
fedUserClient, err := util.NewResourceClient(client.Config(), &iamv1alpha2.FedUserResource)
if err != nil {
klog.Error(err)
return err
}
fedGlobalRoleClient, err := util.NewResourceClient(client.Config(), &iamv1alpha2.FedGlobalRoleResource)
if err != nil {
klog.Error(err)
return err
}
fedGlobalRoleBindingClient, err := util.NewResourceClient(client.Config(), &iamv1alpha2.FedGlobalRoleBindingResource)
if err != nil {
klog.Error(err)
return err
}
fedUserCache, fedUserCacheController = util.NewResourceInformer(fedUserClient, "", &iamv1alpha2.FedUserResource, func(object runtime.Object) {})
fedGlobalRoleCache, fedGlobalRoleCacheController = util.NewResourceInformer(fedGlobalRoleClient, "", &iamv1alpha2.FedGlobalRoleResource, func(object runtime.Object) {})
fedGlobalRoleBindingCache, fedGlobalRoleBindingCacheController = util.NewResourceInformer(fedGlobalRoleBindingClient, "", &iamv1alpha2.FedGlobalRoleBindingResource, func(object runtime.Object) {})
go fedUserCacheController.Run(stopCh)
go fedGlobalRoleCacheController.Run(stopCh)
go fedGlobalRoleBindingCacheController.Run(stopCh)
}
informerFactory := informers.NewSharedInformerFactory(kubeClient, defaultResync)
istioInformer := istioinformers.NewSharedInformerFactory(istioclient, defaultResync)
applicationInformer := applicationinformers.NewSharedInformerFactory(applicationClient, defaultResync)
userController := user.NewUserController(client.Kubernetes(), client.KubeSphere(), client.Config(),
kubesphereInformer.Iam().V1alpha2().Users(),
kubesphereInformer.Iam().V1alpha2().LoginRecords(),
fedUserCache, fedUserCacheController,
kubernetesInformer.Core().V1().ConfigMaps(),
ldapClient, devopsClient,
authenticationOptions, multiClusterEnabled)
servicemeshclient, err := servicemeshclientset.NewForConfig(cfg)
if err != nil {
log.Error(err, "create servicemesh client failed")
return err
loginRecordController := loginrecord.NewLoginRecordController(
client.Kubernetes(),
client.KubeSphere(),
kubesphereInformer.Iam().V1alpha2().LoginRecords(),
kubesphereInformer.Iam().V1alpha2().Users(),
authenticationOptions.LoginHistoryRetentionPeriod,
authenticationOptions.LoginHistoryMaximumEntries)
csrController := certificatesigningrequest.NewController(client.Kubernetes(),
kubernetesInformer.Certificates().V1beta1().CertificateSigningRequests(),
kubernetesInformer.Core().V1().ConfigMaps(), client.Config())
clusterRoleBindingController := clusterrolebinding.NewController(client.Kubernetes(),
kubernetesInformer.Rbac().V1().ClusterRoleBindings(),
kubernetesInformer.Apps().V1().Deployments(),
kubernetesInformer.Core().V1().Pods(),
kubesphereInformer.Iam().V1alpha2().Users(),
kubectlImage)
globalRoleController := globalrole.NewController(client.Kubernetes(), client.KubeSphere(),
kubesphereInformer.Iam().V1alpha2().GlobalRoles(), fedGlobalRoleCache, fedGlobalRoleCacheController)
globalRoleBindingController := globalrolebinding.NewController(client.Kubernetes(), client.KubeSphere(),
kubesphereInformer.Iam().V1alpha2().GlobalRoleBindings(),
fedGlobalRoleBindingCache, fedGlobalRoleBindingCacheController,
multiClusterEnabled)
groupBindingController := groupbinding.NewController(client.Kubernetes(), client.KubeSphere(),
kubesphereInformer.Iam().V1alpha2().GroupBindings(),
kubesphereInformer.Types().V1beta1().FederatedGroupBindings(),
multiClusterEnabled)
groupController := group.NewController(client.Kubernetes(), client.KubeSphere(),
kubesphereInformer.Iam().V1alpha2().Groups(),
kubesphereInformer.Types().V1beta1().FederatedGroups(),
multiClusterEnabled)
var clusterController manager.Runnable
if multiClusterEnabled {
clusterController = cluster.NewClusterController(
client.Kubernetes(),
client.Config(),
kubesphereInformer.Cluster().V1alpha1().Clusters(),
client.KubeSphere().ClusterV1alpha1().Clusters(),
multiClusterOptions.ClusterControllerResyncSecond)
}
servicemeshInformer := servicemeshinformers.NewSharedInformerFactory(servicemeshclient, defaultResync)
var nsnpController manager.Runnable
if networkOptions.EnableNetworkPolicy {
nsnpProvider, err := provider.NewNsNetworkPolicyProvider(client.Kubernetes(), kubernetesInformer.Networking().V1().NetworkPolicies())
if err != nil {
return err
}
vsController := virtualservice.NewVirtualServiceController(informerFactory.Core().V1().Services(),
istioInformer.Networking().V1alpha3().VirtualServices(),
istioInformer.Networking().V1alpha3().DestinationRules(),
servicemeshInformer.Servicemesh().V1alpha2().Strategies(),
kubeClient,
istioclient,
servicemeshclient)
nsnpController = nsnetworkpolicy.NewNSNetworkPolicyController(client.Kubernetes(),
client.KubeSphere().NetworkV1alpha1(),
kubesphereInformer.Network().V1alpha1().NamespaceNetworkPolicies(),
kubernetesInformer.Core().V1().Services(),
kubernetesInformer.Core().V1().Nodes(),
kubesphereInformer.Tenant().V1alpha1().Workspaces(),
kubernetesInformer.Core().V1().Namespaces(), nsnpProvider, networkOptions.NSNPOptions)
}
drController := destinationrule.NewDestinationRuleController(informerFactory.Apps().V1().Deployments(),
istioInformer.Networking().V1alpha3().DestinationRules(),
informerFactory.Core().V1().Services(),
servicemeshInformer.Servicemesh().V1alpha2().ServicePolicies(),
kubeClient,
istioclient,
servicemeshclient)
apController := application.NewApplicationController(informerFactory.Core().V1().Services(),
informerFactory.Apps().V1().Deployments(),
informerFactory.Apps().V1().StatefulSets(),
servicemeshInformer.Servicemesh().V1alpha2().Strategies(),
servicemeshInformer.Servicemesh().V1alpha2().ServicePolicies(),
applicationInformer.App().V1beta1().Applications(),
kubeClient,
applicationClient)
jobController := job.NewJobController(informerFactory.Batch().V1().Jobs(), kubeClient)
servicemeshInformer.Start(stopCh)
istioInformer.Start(stopCh)
informerFactory.Start(stopCh)
applicationInformer.Start(stopCh)
var ippoolController manager.Runnable
ippoolProvider := ippoolclient.NewProvider(kubernetesInformer, client.KubeSphere(), client.Kubernetes(), networkOptions.IPPoolType, options)
if ippoolProvider != nil {
ippoolController = ippool.NewIPPoolController(kubesphereInformer, kubernetesInformer, client.Kubernetes(), client.KubeSphere(), ippoolProvider)
}
controllers := map[string]manager.Runnable{
"virtualservice-controller": vsController,
"destinationrule-controller": drController,
"application-controller": apController,
"job-controller": jobController,
"virtualservice-controller": vsController,
"destinationrule-controller": drController,
"job-controller": jobController,
"s2ibinary-controller": s2iBinaryController,
"s2irun-controller": s2iRunController,
"storagecapability-controller": storageCapabilityController,
"volumeexpansion-controller": volumeExpansionController,
"user-controller": userController,
"loginrecord-controller": loginRecordController,
"cluster-controller": clusterController,
"nsnp-controller": nsnpController,
"csr-controller": csrController,
"clusterrolebinding-controller": clusterRoleBindingController,
"globalrolebinding-controller": globalRoleBindingController,
"ippool-controller": ippoolController,
"groupbinding-controller": groupBindingController,
"group-controller": groupController,
}
if devopsClient != nil {
controllers["pipeline-controller"] = devopsPipelineController
controllers["devopsprojects-controller"] = devopsProjectController
controllers["devopscredential-controller"] = devopsCredentialController
}
if multiClusterEnabled {
controllers["globalrole-controller"] = globalRoleController
notificationController, err := notification.NewController(client.Kubernetes(), mgr.GetClient(), mgr.GetCache())
if err != nil {
return err
}
controllers["notification-controller"] = notificationController
}
for name, ctrl := range controllers {
err = mgr.Add(ctrl)
if err != nil {
log.Error(err, "add controller to manager failed", "name", name)
if ctrl == nil {
klog.V(4).Infof("%s is not going to run due to dependent component disabled.", name)
continue
}
if err := mgr.Add(ctrl); err != nil {
klog.Error(err, "add controller to manager failed", "name", name)
return err
}
}

View File

@@ -1,21 +1,39 @@
/*
Copyright 2020 KubeSphere 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 app
import (
"context"
"fmt"
"net/http"
"time"
"k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/klog"
"net/http"
"time"
)
// WaitForAPIServer waits for the API Server's /healthz endpoint to report "ok" with timeout.
// WaitForAPIServer waits for the API Server's /healthz endpoint to report "ok" before timeout.
func WaitForAPIServer(client clientset.Interface, timeout time.Duration) error {
var lastErr error
err := wait.PollImmediate(time.Second, timeout, func() (bool, error) {
healthStatus := 0
result := client.Discovery().RESTClient().Get().AbsPath("/healthz").Do().StatusCode(&healthStatus)
result := client.Discovery().RESTClient().Get().AbsPath("/healthz").Do(context.Background()).StatusCode(&healthStatus)
if result.Error() != nil {
lastErr = fmt.Errorf("failed to get apiserver /healthz status: %v", result.Error())
return false, nil

View File

@@ -0,0 +1,164 @@
/*
Copyright 2020 KubeSphere 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 options
import (
"flag"
"strings"
"time"
"k8s.io/apimachinery/pkg/labels"
"github.com/spf13/pflag"
"k8s.io/client-go/tools/leaderelection"
cliflag "k8s.io/component-base/cli/flag"
"k8s.io/klog"
authoptions "kubesphere.io/kubesphere/pkg/apiserver/authentication/options"
"kubesphere.io/kubesphere/pkg/simple/client/devops/jenkins"
"kubesphere.io/kubesphere/pkg/simple/client/k8s"
ldapclient "kubesphere.io/kubesphere/pkg/simple/client/ldap"
"kubesphere.io/kubesphere/pkg/simple/client/multicluster"
"kubesphere.io/kubesphere/pkg/simple/client/network"
"kubesphere.io/kubesphere/pkg/simple/client/openpitrix"
"kubesphere.io/kubesphere/pkg/simple/client/s3"
"kubesphere.io/kubesphere/pkg/simple/client/servicemesh"
)
type KubeSphereControllerManagerOptions struct {
KubernetesOptions *k8s.KubernetesOptions
DevopsOptions *jenkins.Options
S3Options *s3.Options
AuthenticationOptions *authoptions.AuthenticationOptions
LdapOptions *ldapclient.Options
OpenPitrixOptions *openpitrix.Options
NetworkOptions *network.Options
MultiClusterOptions *multicluster.Options
ServiceMeshOptions *servicemesh.Options
LeaderElect bool
LeaderElection *leaderelection.LeaderElectionConfig
WebhookCertDir string
// KubeSphere is using sigs.k8s.io/application as fundamental object to implement Application Management.
// There are other projects also built on sigs.k8s.io/application, when KubeSphere installed along side
// them, conflicts happen. So we leave an option to only reconcile applications matched with the given
// selector. Default will reconcile all applications.
// For example
// "kubesphere.io/creator=" means reconcile applications with this label key
// "!kubesphere.io/creator" means exclude applications with this key
ApplicationSelector string
}
func NewKubeSphereControllerManagerOptions() *KubeSphereControllerManagerOptions {
s := &KubeSphereControllerManagerOptions{
KubernetesOptions: k8s.NewKubernetesOptions(),
DevopsOptions: jenkins.NewDevopsOptions(),
S3Options: s3.NewS3Options(),
LdapOptions: ldapclient.NewOptions(),
OpenPitrixOptions: openpitrix.NewOptions(),
NetworkOptions: network.NewNetworkOptions(),
MultiClusterOptions: multicluster.NewOptions(),
ServiceMeshOptions: servicemesh.NewServiceMeshOptions(),
AuthenticationOptions: authoptions.NewAuthenticateOptions(),
LeaderElection: &leaderelection.LeaderElectionConfig{
LeaseDuration: 30 * time.Second,
RenewDeadline: 15 * time.Second,
RetryPeriod: 5 * time.Second,
},
LeaderElect: false,
WebhookCertDir: "",
ApplicationSelector: "",
}
return s
}
func (s *KubeSphereControllerManagerOptions) Flags() cliflag.NamedFlagSets {
fss := cliflag.NamedFlagSets{}
s.KubernetesOptions.AddFlags(fss.FlagSet("kubernetes"), s.KubernetesOptions)
s.DevopsOptions.AddFlags(fss.FlagSet("devops"), s.DevopsOptions)
s.S3Options.AddFlags(fss.FlagSet("s3"), s.S3Options)
s.AuthenticationOptions.AddFlags(fss.FlagSet("authentication"), s.AuthenticationOptions)
s.LdapOptions.AddFlags(fss.FlagSet("ldap"), s.LdapOptions)
s.OpenPitrixOptions.AddFlags(fss.FlagSet("openpitrix"), s.OpenPitrixOptions)
s.NetworkOptions.AddFlags(fss.FlagSet("network"), s.NetworkOptions)
s.MultiClusterOptions.AddFlags(fss.FlagSet("multicluster"), s.MultiClusterOptions)
s.ServiceMeshOptions.AddFlags(fss.FlagSet("servicemesh"), s.ServiceMeshOptions)
fs := fss.FlagSet("leaderelection")
s.bindLeaderElectionFlags(s.LeaderElection, fs)
fs.BoolVar(&s.LeaderElect, "leader-elect", s.LeaderElect, ""+
"Whether to enable leader election. This field should be enabled when controller manager"+
"deployed with multiple replicas.")
fs.StringVar(&s.WebhookCertDir, "webhook-cert-dir", s.WebhookCertDir, ""+
"Certificate directory used to setup webhooks, need tls.crt and tls.key placed inside."+
"if not set, webhook server would look up the server key and certificate in"+
"{TempDir}/k8s-webhook-server/serving-certs")
gfs := fss.FlagSet("generic")
gfs.StringVar(&s.ApplicationSelector, "application-selector", s.ApplicationSelector, ""+
"Only reconcile application(sigs.k8s.io/application) objects match given selector, this could avoid conflicts with "+
"other projects built on top of sig-application. Default behavior is to reconcile all of application objects.")
kfs := fss.FlagSet("klog")
local := flag.NewFlagSet("klog", flag.ExitOnError)
klog.InitFlags(local)
local.VisitAll(func(fl *flag.Flag) {
fl.Name = strings.Replace(fl.Name, "_", "-", -1)
kfs.AddGoFlag(fl)
})
return fss
}
func (s *KubeSphereControllerManagerOptions) Validate() []error {
var errs []error
errs = append(errs, s.DevopsOptions.Validate()...)
errs = append(errs, s.KubernetesOptions.Validate()...)
errs = append(errs, s.S3Options.Validate()...)
errs = append(errs, s.OpenPitrixOptions.Validate()...)
errs = append(errs, s.NetworkOptions.Validate()...)
errs = append(errs, s.LdapOptions.Validate()...)
if len(s.ApplicationSelector) != 0 {
_, err := labels.Parse(s.ApplicationSelector)
if err != nil {
errs = append(errs, err)
}
}
return errs
}
func (s *KubeSphereControllerManagerOptions) bindLeaderElectionFlags(l *leaderelection.LeaderElectionConfig, fs *pflag.FlagSet) {
fs.DurationVar(&l.LeaseDuration, "leader-elect-lease-duration", l.LeaseDuration, ""+
"The duration that non-leader candidates will wait after observing a leadership "+
"renewal until attempting to acquire leadership of a led but unrenewed leader "+
"slot. This is effectively the maximum duration that a leader can be stopped "+
"before it is replaced by another candidate. This is only applicable if leader "+
"election is enabled.")
fs.DurationVar(&l.RenewDeadline, "leader-elect-renew-deadline", l.RenewDeadline, ""+
"The interval between attempts by the acting master to renew a leadership slot "+
"before it stops leading. This must be less than or equal to the lease duration. "+
"This is only applicable if leader election is enabled.")
fs.DurationVar(&l.RetryPeriod, "leader-elect-retry-period", l.RetryPeriod, ""+
"The duration the clients should wait between attempting acquisition and renewal "+
"of a leadership. This is only applicable if leader election is enabled.")
}

View File

@@ -0,0 +1,329 @@
/*
Copyright 2019 The KubeSphere 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 app
import (
"fmt"
"os"
"github.com/spf13/cobra"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
utilerrors "k8s.io/apimachinery/pkg/util/errors"
cliflag "k8s.io/component-base/cli/flag"
"k8s.io/klog"
"k8s.io/klog/klogr"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/manager"
"sigs.k8s.io/controller-runtime/pkg/runtime/signals"
"sigs.k8s.io/controller-runtime/pkg/webhook"
"kubesphere.io/kubesphere/cmd/controller-manager/app/options"
"kubesphere.io/kubesphere/pkg/apis"
controllerconfig "kubesphere.io/kubesphere/pkg/apiserver/config"
"kubesphere.io/kubesphere/pkg/controller/application"
"kubesphere.io/kubesphere/pkg/controller/namespace"
"kubesphere.io/kubesphere/pkg/controller/network/webhooks"
"kubesphere.io/kubesphere/pkg/controller/openpitrix/helmapplication"
"kubesphere.io/kubesphere/pkg/controller/openpitrix/helmcategory"
"kubesphere.io/kubesphere/pkg/controller/openpitrix/helmrelease"
"kubesphere.io/kubesphere/pkg/controller/openpitrix/helmrepo"
"kubesphere.io/kubesphere/pkg/controller/quota"
"kubesphere.io/kubesphere/pkg/controller/serviceaccount"
"kubesphere.io/kubesphere/pkg/controller/user"
"kubesphere.io/kubesphere/pkg/controller/workspace"
"kubesphere.io/kubesphere/pkg/controller/workspacerole"
"kubesphere.io/kubesphere/pkg/controller/workspacerolebinding"
"kubesphere.io/kubesphere/pkg/controller/workspacetemplate"
"kubesphere.io/kubesphere/pkg/informers"
"kubesphere.io/kubesphere/pkg/simple/client/devops"
"kubesphere.io/kubesphere/pkg/simple/client/devops/jenkins"
"kubesphere.io/kubesphere/pkg/simple/client/k8s"
ldapclient "kubesphere.io/kubesphere/pkg/simple/client/ldap"
"kubesphere.io/kubesphere/pkg/simple/client/s3"
"kubesphere.io/kubesphere/pkg/utils/metrics"
"kubesphere.io/kubesphere/pkg/utils/term"
)
func NewControllerManagerCommand() *cobra.Command {
s := options.NewKubeSphereControllerManagerOptions()
conf, err := controllerconfig.TryLoadFromDisk()
if err == nil {
// make sure LeaderElection is not nil
s = &options.KubeSphereControllerManagerOptions{
KubernetesOptions: conf.KubernetesOptions,
DevopsOptions: conf.DevopsOptions,
S3Options: conf.S3Options,
AuthenticationOptions: conf.AuthenticationOptions,
LdapOptions: conf.LdapOptions,
OpenPitrixOptions: conf.OpenPitrixOptions,
NetworkOptions: conf.NetworkOptions,
MultiClusterOptions: conf.MultiClusterOptions,
ServiceMeshOptions: conf.ServiceMeshOptions,
LeaderElection: s.LeaderElection,
LeaderElect: s.LeaderElect,
WebhookCertDir: s.WebhookCertDir,
}
} else {
klog.Fatal("Failed to load configuration from disk", err)
}
cmd := &cobra.Command{
Use: "controller-manager",
Long: `KubeSphere controller manager is a daemon that`,
Run: func(cmd *cobra.Command, args []string) {
if errs := s.Validate(); len(errs) != 0 {
klog.Error(utilerrors.NewAggregate(errs))
os.Exit(1)
}
if err = run(s, signals.SetupSignalHandler()); err != nil {
klog.Error(err)
os.Exit(1)
}
},
SilenceUsage: true,
}
fs := cmd.Flags()
namedFlagSets := s.Flags()
for _, f := range namedFlagSets.FlagSets {
fs.AddFlagSet(f)
}
usageFmt := "Usage:\n %s\n"
cols, _, _ := term.TerminalSize(cmd.OutOrStdout())
cmd.SetHelpFunc(func(cmd *cobra.Command, args []string) {
_, _ = fmt.Fprintf(cmd.OutOrStdout(), "%s\n\n"+usageFmt, cmd.Long, cmd.UseLine())
cliflag.PrintSections(cmd.OutOrStdout(), namedFlagSets, cols)
})
return cmd
}
func run(s *options.KubeSphereControllerManagerOptions, stopCh <-chan struct{}) error {
kubernetesClient, err := k8s.NewKubernetesClient(s.KubernetesOptions)
if err != nil {
klog.Errorf("Failed to create kubernetes clientset %v", err)
return err
}
var devopsClient devops.Interface
if s.DevopsOptions != nil && len(s.DevopsOptions.Host) != 0 {
devopsClient, err = jenkins.NewDevopsClient(s.DevopsOptions)
if err != nil {
return fmt.Errorf("failed to connect jenkins, please check jenkins status, error: %v", err)
}
}
var ldapClient ldapclient.Interface
// when there is no ldapOption, we set ldapClient as nil, which means we don't need to sync user info into ldap.
if s.LdapOptions != nil && len(s.LdapOptions.Host) != 0 {
if s.LdapOptions.Host == ldapclient.FAKE_HOST { // for debug only
ldapClient = ldapclient.NewSimpleLdap()
} else {
ldapClient, err = ldapclient.NewLdapClient(s.LdapOptions, stopCh)
if err != nil {
return fmt.Errorf("failed to connect to ldap service, please check ldap status, error: %v", err)
}
}
} else {
klog.Warning("ks-controller-manager starts without ldap provided, it will not sync user into ldap")
}
var s3Client s3.Interface
if s.S3Options != nil && len(s.S3Options.Endpoint) != 0 {
s3Client, err = s3.NewS3Client(s.S3Options)
if err != nil {
return fmt.Errorf("failed to connect to s3, please check s3 service status, error: %v", err)
}
}
informerFactory := informers.NewInformerFactories(
kubernetesClient.Kubernetes(),
kubernetesClient.KubeSphere(),
kubernetesClient.Istio(),
kubernetesClient.Snapshot(),
kubernetesClient.ApiExtensions(),
kubernetesClient.Prometheus())
mgrOptions := manager.Options{
CertDir: s.WebhookCertDir,
Port: 8443,
}
if s.LeaderElect {
mgrOptions = manager.Options{
CertDir: s.WebhookCertDir,
Port: 8443,
LeaderElection: s.LeaderElect,
LeaderElectionNamespace: "kubesphere-system",
LeaderElectionID: "ks-controller-manager-leader-election",
LeaseDuration: &s.LeaderElection.LeaseDuration,
RetryPeriod: &s.LeaderElection.RetryPeriod,
RenewDeadline: &s.LeaderElection.RenewDeadline,
}
}
klog.V(0).Info("setting up manager")
ctrl.SetLogger(klogr.New())
// Use 8443 instead of 443 cause we need root permission to bind port 443
mgr, err := manager.New(kubernetesClient.Config(), mgrOptions)
if err != nil {
klog.Fatalf("unable to set up overall controller manager: %v", err)
}
if err = apis.AddToScheme(mgr.GetScheme()); err != nil {
klog.Fatalf("unable add APIs to scheme: %v", err)
}
// register common meta types into schemas.
metav1.AddToGroupVersion(mgr.GetScheme(), metav1.SchemeGroupVersion)
workspaceTemplateReconciler := &workspacetemplate.Reconciler{MultiClusterEnabled: s.MultiClusterOptions.Enable}
if err = workspaceTemplateReconciler.SetupWithManager(mgr); err != nil {
klog.Fatalf("Unable to create workspace template controller: %v", err)
}
workspaceReconciler := &workspace.Reconciler{}
if err = workspaceReconciler.SetupWithManager(mgr); err != nil {
klog.Fatalf("Unable to create workspace controller: %v", err)
}
workspaceRoleReconciler := &workspacerole.Reconciler{MultiClusterEnabled: s.MultiClusterOptions.Enable}
if err = workspaceRoleReconciler.SetupWithManager(mgr); err != nil {
klog.Fatalf("Unable to create workspace role controller: %v", err)
}
workspaceRoleBindingReconciler := &workspacerolebinding.Reconciler{MultiClusterEnabled: s.MultiClusterOptions.Enable}
if err = workspaceRoleBindingReconciler.SetupWithManager(mgr); err != nil {
klog.Fatalf("Unable to create workspace role binding controller: %v", err)
}
namespaceReconciler := &namespace.Reconciler{}
if err = namespaceReconciler.SetupWithManager(mgr); err != nil {
klog.Fatalf("Unable to create namespace controller: %v", err)
}
err = helmrepo.Add(mgr)
if err != nil {
klog.Fatal("Unable to create helm repo controller")
}
err = helmcategory.Add(mgr)
if err != nil {
klog.Fatal("Unable to create helm category controller")
}
var opS3Client s3.Interface
if !s.OpenPitrixOptions.AppStoreConfIsEmpty() {
opS3Client, err = s3.NewS3Client(s.OpenPitrixOptions.S3Options)
if err != nil {
klog.Fatalf("failed to connect to s3, please check openpitrix s3 service status, error: %v", err)
}
err = (&helmapplication.ReconcileHelmApplication{}).SetupWithManager(mgr)
if err != nil {
klog.Fatalf("Unable to create helm application controller, error: %s", err)
}
err = (&helmapplication.ReconcileHelmApplicationVersion{}).SetupWithManager(mgr)
if err != nil {
klog.Fatalf("Unable to create helm application version controller, error: %s ", err)
}
}
err = (&helmrelease.ReconcileHelmRelease{
// nil interface is valid value.
StorageClient: opS3Client,
KsFactory: informerFactory.KubeSphereSharedInformerFactory(),
MultiClusterEnable: s.MultiClusterOptions.Enable,
}).SetupWithManager(mgr)
if err != nil {
klog.Fatalf("Unable to create helm release controller, error: %s", err)
}
selector, _ := labels.Parse(s.ApplicationSelector)
applicationReconciler := &application.ApplicationReconciler{
Scheme: mgr.GetScheme(),
Client: mgr.GetClient(),
Mapper: mgr.GetRESTMapper(),
ApplicationSelector: selector,
}
if err = applicationReconciler.SetupWithManager(mgr); err != nil {
klog.Fatalf("Unable to create application controller: %v", err)
}
saReconciler := &serviceaccount.Reconciler{}
if err = saReconciler.SetupWithManager(mgr); err != nil {
klog.Fatalf("Unable to create ServiceAccount controller: %v", err)
}
resourceQuotaReconciler := quota.Reconciler{}
if err := resourceQuotaReconciler.SetupWithManager(mgr, quota.DefaultMaxConcurrentReconciles, quota.DefaultResyncPeriod, informerFactory.KubernetesSharedInformerFactory()); err != nil {
klog.Fatalf("Unable to create ResourceQuota controller: %v", err)
}
// TODO(jeff): refactor config with CRD
servicemeshEnabled := s.ServiceMeshOptions != nil && len(s.ServiceMeshOptions.IstioPilotHost) != 0
if err = addControllers(mgr,
kubernetesClient,
informerFactory,
devopsClient,
s3Client,
ldapClient,
s.KubernetesOptions,
s.AuthenticationOptions,
s.MultiClusterOptions,
s.NetworkOptions,
servicemeshEnabled,
s.AuthenticationOptions.KubectlImage, stopCh); err != nil {
klog.Fatalf("unable to register controllers to the manager: %v", err)
}
// Start cache data after all informer is registered
klog.V(0).Info("Starting cache resource from apiserver...")
informerFactory.Start(stopCh)
// Setup webhooks
klog.V(2).Info("setting up webhook server")
hookServer := mgr.GetWebhookServer()
klog.V(2).Info("registering webhooks to the webhook server")
hookServer.Register("/validate-email-iam-kubesphere-io-v1alpha2", &webhook.Admission{Handler: &user.EmailValidator{Client: mgr.GetClient()}})
hookServer.Register("/validate-network-kubesphere-io-v1alpha1", &webhook.Admission{Handler: &webhooks.ValidatingHandler{C: mgr.GetClient()}})
hookServer.Register("/mutate-network-kubesphere-io-v1alpha1", &webhook.Admission{Handler: &webhooks.MutatingHandler{C: mgr.GetClient()}})
resourceQuotaAdmission, err := quota.NewResourceQuotaAdmission(mgr.GetClient(), mgr.GetScheme())
if err != nil {
klog.Fatalf("unable to create resource quota admission: %v", err)
}
hookServer.Register("/validate-quota-kubesphere-io-v1alpha2", &webhook.Admission{Handler: resourceQuotaAdmission})
klog.V(2).Info("registering metrics to the webhook server")
// Add an extra metric endpoint, so we can use the the same metric definition with ks-apiserver
// /kapis/metrics is independent of controller-manager's built-in /metrics
mgr.AddMetricsExtraHandler("/kapis/metrics", metrics.Handler())
klog.V(0).Info("Starting the controllers.")
if err = mgr.Start(stopCh); err != nil {
klog.Fatalf("unable to run the manager: %v", err)
}
return nil
}

View File

@@ -1,89 +1,31 @@
/*
Copyright 2020 KubeSphere Authors
Copyright 2019 The KubeSphere 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
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.
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 main
import (
"flag"
"k8s.io/client-go/tools/clientcmd"
"kubesphere.io/kubesphere/cmd/controller-manager/app"
"kubesphere.io/kubesphere/pkg/apis"
"kubesphere.io/kubesphere/pkg/controller"
"os"
"sigs.k8s.io/controller-runtime/pkg/manager"
logf "sigs.k8s.io/controller-runtime/pkg/runtime/log"
"sigs.k8s.io/controller-runtime/pkg/runtime/signals"
)
var (
masterURL string
kubeconfig string
metricsAddr string
"kubesphere.io/kubesphere/cmd/controller-manager/app"
)
func init() {
flag.StringVar(&masterURL, "master-url", "", "only need if out of cluster")
flag.StringVar(&kubeconfig, "kubeconfig", "", "only need if out of cluster")
flag.StringVar(&metricsAddr, "metrics-addr", ":8080", "The address the metric endpoint binds to.")
}
func main() {
flag.Parse()
command := app.NewControllerManagerCommand()
logf.SetLogger(logf.ZapLogger(false))
log := logf.Log.WithName("controller-manager")
cfg, err := clientcmd.BuildConfigFromFlags(masterURL, kubeconfig)
if err != nil {
log.Error(err, "failed to build kubeconfig")
if err := command.Execute(); err != nil {
os.Exit(1)
}
stopCh := signals.SetupSignalHandler()
log.Info("setting up manager")
mgr, err := manager.New(cfg, manager.Options{})
if err != nil {
log.Error(err, "unable to set up overall controller manager")
os.Exit(1)
}
log.Info("setting up scheme")
if err := apis.AddToScheme(mgr.GetScheme()); err != nil {
log.Error(err, "unable add APIs to scheme")
os.Exit(1)
}
log.Info("Setting up controllers")
if err := controller.AddToManager(mgr); err != nil {
log.Error(err, "unable to register controllers to the manager")
os.Exit(1)
}
if err := app.AddControllers(mgr, cfg, stopCh); err != nil {
log.Error(err, "unable to register controllers to the manager")
os.Exit(1)
}
log.Info("Starting the Cmd.")
if err := mgr.Start(stopCh); err != nil {
log.Error(err, "unable to run the manager")
os.Exit(1)
}
}

View File

@@ -1,35 +0,0 @@
/*
Copyright 2019 The KubeSphere 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 main
import (
"github.com/mholt/caddy/caddy/caddymain"
"github.com/mholt/caddy/caddyhttp/httpserver"
// Install apis
_ "kubesphere.io/kubesphere/pkg/apigateway/caddy-plugin/authenticate"
_ "kubesphere.io/kubesphere/pkg/apigateway/caddy-plugin/authentication"
_ "kubesphere.io/kubesphere/pkg/apigateway/caddy-plugin/swagger"
)
func main() {
httpserver.RegisterDevDirective("authenticate", "jwt")
httpserver.RegisterDevDirective("authentication", "jwt")
httpserver.RegisterDevDirective("swagger", "jwt")
caddymain.Run()
}

View File

@@ -1,34 +1,25 @@
/*
Copyright 2019 The KubeSphere Authors.
Copyright 2019 The KubeSphere 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
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.
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 main
import (
"kubesphere.io/kubesphere/cmd/ks-apiserver/app"
"log"
// Install apis
_ "kubesphere.io/kubesphere/pkg/apis/devops/install"
_ "kubesphere.io/kubesphere/pkg/apis/logging/install"
_ "kubesphere.io/kubesphere/pkg/apis/monitoring/install"
_ "kubesphere.io/kubesphere/pkg/apis/operations/install"
_ "kubesphere.io/kubesphere/pkg/apis/resources/install"
_ "kubesphere.io/kubesphere/pkg/apis/servicemesh/metrics/install"
_ "kubesphere.io/kubesphere/pkg/apis/tenant/install"
_ "kubesphere.io/kubesphere/pkg/apis/terminal/install"
"kubesphere.io/kubesphere/cmd/ks-apiserver/app"
)
func main() {

View File

@@ -1,45 +1,234 @@
/*
Copyright 2020 KubeSphere 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 options
import (
"github.com/spf13/pflag"
genericoptions "kubesphere.io/kubesphere/pkg/options"
"crypto/tls"
"flag"
"fmt"
cliflag "k8s.io/component-base/cli/flag"
"k8s.io/klog"
runtimecache "sigs.k8s.io/controller-runtime/pkg/cache"
"kubesphere.io/kubesphere/pkg/apis"
"kubesphere.io/kubesphere/pkg/apiserver"
apiserverconfig "kubesphere.io/kubesphere/pkg/apiserver/config"
"kubesphere.io/kubesphere/pkg/client/clientset/versioned/scheme"
"kubesphere.io/kubesphere/pkg/informers"
genericoptions "kubesphere.io/kubesphere/pkg/server/options"
"kubesphere.io/kubesphere/pkg/simple/client/alerting"
auditingclient "kubesphere.io/kubesphere/pkg/simple/client/auditing/elasticsearch"
"kubesphere.io/kubesphere/pkg/simple/client/cache"
"net/http"
"strings"
"kubesphere.io/kubesphere/pkg/simple/client/devops/jenkins"
eventsclient "kubesphere.io/kubesphere/pkg/simple/client/events/elasticsearch"
"kubesphere.io/kubesphere/pkg/simple/client/k8s"
esclient "kubesphere.io/kubesphere/pkg/simple/client/logging/elasticsearch"
"kubesphere.io/kubesphere/pkg/simple/client/monitoring/metricsserver"
"kubesphere.io/kubesphere/pkg/simple/client/monitoring/prometheus"
"kubesphere.io/kubesphere/pkg/simple/client/s3"
fakes3 "kubesphere.io/kubesphere/pkg/simple/client/s3/fake"
"kubesphere.io/kubesphere/pkg/simple/client/sonarqube"
)
type ServerRunOptions struct {
ConfigFile string
GenericServerRunOptions *genericoptions.ServerRunOptions
*apiserverconfig.Config
// istio pilot discovery service url
IstioPilotServiceURL string
// jaeger query service url
JaegerQueryServiceUrl string
// prometheus service url for servicemesh metrics
ServicemeshPrometheusServiceUrl string
// openpitrix api gateway service url
OpenPitrixServer string
// openpitrix service token
OpenPitrixProxyToken string
//
DebugMode bool
}
func NewServerRunOptions() *ServerRunOptions {
s := ServerRunOptions{
s := &ServerRunOptions{
GenericServerRunOptions: genericoptions.NewServerRunOptions(),
IstioPilotServiceURL: "http://istio-pilot.istio-system.svc:8080/version",
JaegerQueryServiceUrl: "http://jaeger-query.istio-system.svc:16686/jaeger",
Config: apiserverconfig.New(),
}
return &s
return s
}
func (s *ServerRunOptions) AddFlags(fs *pflag.FlagSet) {
func (s *ServerRunOptions) Flags() (fss cliflag.NamedFlagSets) {
fs := fss.FlagSet("generic")
fs.BoolVar(&s.DebugMode, "debug", false, "Don't enable this if you don't know what it means.")
s.GenericServerRunOptions.AddFlags(fs, s.GenericServerRunOptions)
s.KubernetesOptions.AddFlags(fss.FlagSet("kubernetes"), s.KubernetesOptions)
s.AuthenticationOptions.AddFlags(fss.FlagSet("authentication"), s.AuthenticationOptions)
s.AuthorizationOptions.AddFlags(fss.FlagSet("authorization"), s.AuthorizationOptions)
s.DevopsOptions.AddFlags(fss.FlagSet("devops"), s.DevopsOptions)
s.SonarQubeOptions.AddFlags(fss.FlagSet("sonarqube"), s.SonarQubeOptions)
s.RedisOptions.AddFlags(fss.FlagSet("redis"), s.RedisOptions)
s.S3Options.AddFlags(fss.FlagSet("s3"), s.S3Options)
s.OpenPitrixOptions.AddFlags(fss.FlagSet("openpitrix"), s.OpenPitrixOptions)
s.NetworkOptions.AddFlags(fss.FlagSet("network"), s.NetworkOptions)
s.ServiceMeshOptions.AddFlags(fss.FlagSet("servicemesh"), s.ServiceMeshOptions)
s.MonitoringOptions.AddFlags(fss.FlagSet("monitoring"), s.MonitoringOptions)
s.LoggingOptions.AddFlags(fss.FlagSet("logging"), s.LoggingOptions)
s.MultiClusterOptions.AddFlags(fss.FlagSet("multicluster"), s.MultiClusterOptions)
s.EventsOptions.AddFlags(fss.FlagSet("events"), s.EventsOptions)
s.AuditingOptions.AddFlags(fss.FlagSet("auditing"), s.AuditingOptions)
s.AlertingOptions.AddFlags(fss.FlagSet("alerting"), s.AlertingOptions)
s.GenericServerRunOptions.AddFlags(fs)
fs = fss.FlagSet("klog")
local := flag.NewFlagSet("klog", flag.ExitOnError)
klog.InitFlags(local)
local.VisitAll(func(fl *flag.Flag) {
fl.Name = strings.Replace(fl.Name, "_", "-", -1)
fs.AddGoFlag(fl)
})
fs.StringVar(&s.IstioPilotServiceURL, "istio-pilot-service-url", "http://istio-pilot.istio-system.svc:8080/version", "istio pilot discovery service url")
fs.StringVar(&s.JaegerQueryServiceUrl, "jaeger-query-service-url", "http://jaeger-query.istio-system.svc:16686/jaeger", "jaeger query service url")
fs.StringVar(&s.ServicemeshPrometheusServiceUrl, "servicemesh-prometheus-service-url", "http://prometheus-k8s-system.kubesphere-monitoring-system.svc:9090", "prometheus service for servicemesh")
return fss
}
const fakeInterface string = "FAKE"
// NewAPIServer creates an APIServer instance using given options
func (s *ServerRunOptions) NewAPIServer(stopCh <-chan struct{}) (*apiserver.APIServer, error) {
apiServer := &apiserver.APIServer{
Config: s.Config,
}
kubernetesClient, err := k8s.NewKubernetesClient(s.KubernetesOptions)
if err != nil {
return nil, err
}
apiServer.KubernetesClient = kubernetesClient
informerFactory := informers.NewInformerFactories(kubernetesClient.Kubernetes(), kubernetesClient.KubeSphere(),
kubernetesClient.Istio(), kubernetesClient.Snapshot(), kubernetesClient.ApiExtensions(), kubernetesClient.Prometheus())
apiServer.InformerFactory = informerFactory
if s.MonitoringOptions == nil || len(s.MonitoringOptions.Endpoint) == 0 {
return nil, fmt.Errorf("moinitoring service address in configuration MUST not be empty, please check configmap/kubesphere-config in kubesphere-system namespace")
} else {
monitoringClient, err := prometheus.NewPrometheus(s.MonitoringOptions)
if err != nil {
return nil, fmt.Errorf("failed to connect to prometheus, please check prometheus status, error: %v", err)
}
apiServer.MonitoringClient = monitoringClient
}
apiServer.MetricsClient = metricsserver.NewMetricsClient(kubernetesClient.Kubernetes(), s.KubernetesOptions)
if s.LoggingOptions.Host != "" {
loggingClient, err := esclient.NewClient(s.LoggingOptions)
if err != nil {
return nil, fmt.Errorf("failed to connect to elasticsearch, please check elasticsearch status, error: %v", err)
}
apiServer.LoggingClient = loggingClient
}
if s.S3Options.Endpoint != "" {
if s.S3Options.Endpoint == fakeInterface && s.DebugMode {
apiServer.S3Client = fakes3.NewFakeS3()
} else {
s3Client, err := s3.NewS3Client(s.S3Options)
if err != nil {
return nil, fmt.Errorf("failed to connect to s3, please check s3 service status, error: %v", err)
}
apiServer.S3Client = s3Client
}
}
if s.DevopsOptions.Host != "" {
devopsClient, err := jenkins.NewDevopsClient(s.DevopsOptions)
if err != nil {
return nil, fmt.Errorf("failed to connect to jenkins, please check jenkins status, error: %v", err)
}
apiServer.DevopsClient = devopsClient
}
if s.SonarQubeOptions.Host != "" {
sonarClient, err := sonarqube.NewSonarQubeClient(s.SonarQubeOptions)
if err != nil {
return nil, fmt.Errorf("failed to connecto to sonarqube, please check sonarqube status, error: %v", err)
}
apiServer.SonarClient = sonarqube.NewSonar(sonarClient.SonarQube())
}
var cacheClient cache.Interface
if s.RedisOptions != nil && len(s.RedisOptions.Host) != 0 {
if s.RedisOptions.Host == fakeInterface && s.DebugMode {
apiServer.CacheClient = cache.NewSimpleCache()
} else {
cacheClient, err = cache.NewRedisClient(s.RedisOptions, stopCh)
if err != nil {
return nil, fmt.Errorf("failed to connect to redis service, please check redis status, error: %v", err)
}
apiServer.CacheClient = cacheClient
}
} else {
klog.Warning("ks-apiserver starts without redis provided, it will use in memory cache. " +
"This may cause inconsistencies when running ks-apiserver with multiple replicas.")
apiServer.CacheClient = cache.NewSimpleCache()
}
if s.EventsOptions.Host != "" {
eventsClient, err := eventsclient.NewClient(s.EventsOptions)
if err != nil {
return nil, fmt.Errorf("failed to connect to elasticsearch, please check elasticsearch status, error: %v", err)
}
apiServer.EventsClient = eventsClient
}
if s.AuditingOptions.Host != "" {
auditingClient, err := auditingclient.NewClient(s.AuditingOptions)
if err != nil {
return nil, fmt.Errorf("failed to connect to elasticsearch, please check elasticsearch status, error: %v", err)
}
apiServer.AuditingClient = auditingClient
}
if s.AlertingOptions != nil && (s.AlertingOptions.PrometheusEndpoint != "" || s.AlertingOptions.ThanosRulerEndpoint != "") {
alertingClient, err := alerting.NewRuleClient(s.AlertingOptions)
if err != nil {
return nil, fmt.Errorf("failed to init alerting client: %v", err)
}
apiServer.AlertingClient = alertingClient
}
server := &http.Server{
Addr: fmt.Sprintf(":%d", s.GenericServerRunOptions.InsecurePort),
}
if s.GenericServerRunOptions.SecurePort != 0 {
certificate, err := tls.LoadX509KeyPair(s.GenericServerRunOptions.TlsCertFile, s.GenericServerRunOptions.TlsPrivateKey)
if err != nil {
return nil, err
}
server.TLSConfig.Certificates = []tls.Certificate{certificate}
}
sch := scheme.Scheme
if err := apis.AddToScheme(sch); err != nil {
klog.Fatalf("unable add APIs to scheme: %v", err)
}
apiServer.RuntimeCache, err = runtimecache.New(apiServer.KubernetesClient.Config(), runtimecache.Options{Scheme: sch})
if err != nil {
klog.Fatalf("unable to create runtime cache: %v", err)
}
apiServer.Server = server
return apiServer, nil
}

View File

@@ -0,0 +1,41 @@
/*
Copyright 2020 KubeSphere 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 options
// Validate validates server run options, to find
// options' misconfiguration
func (s *ServerRunOptions) Validate() []error {
var errors []error
errors = append(errors, s.GenericServerRunOptions.Validate()...)
errors = append(errors, s.DevopsOptions.Validate()...)
errors = append(errors, s.KubernetesOptions.Validate()...)
errors = append(errors, s.ServiceMeshOptions.Validate()...)
errors = append(errors, s.MonitoringOptions.Validate()...)
errors = append(errors, s.SonarQubeOptions.Validate()...)
errors = append(errors, s.S3Options.Validate()...)
errors = append(errors, s.OpenPitrixOptions.Validate()...)
errors = append(errors, s.NetworkOptions.Validate()...)
errors = append(errors, s.LoggingOptions.Validate()...)
errors = append(errors, s.AuthenticationOptions.Validate()...)
errors = append(errors, s.AuthorizationOptions.Validate()...)
errors = append(errors, s.EventsOptions.Validate()...)
errors = append(errors, s.AuditingOptions.Validate()...)
errors = append(errors, s.AlertingOptions.Validate()...)
return errors
}

View File

@@ -1,198 +1,106 @@
/*
Copyright 2019 The KubeSphere Authors.
Copyright 2019 The KubeSphere 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
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.
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 app
import (
goflag "flag"
"fmt"
"github.com/golang/glog"
"github.com/json-iterator/go"
kconfig "github.com/kiali/kiali/config"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"kubesphere.io/kubesphere/cmd/ks-apiserver/app/options"
"kubesphere.io/kubesphere/pkg/apiserver/runtime"
"kubesphere.io/kubesphere/pkg/apiserver/servicemesh/tracing"
"kubesphere.io/kubesphere/pkg/filter"
"kubesphere.io/kubesphere/pkg/informers"
"kubesphere.io/kubesphere/pkg/models/devops"
logging "kubesphere.io/kubesphere/pkg/models/log"
"kubesphere.io/kubesphere/pkg/server"
"kubesphere.io/kubesphere/pkg/signals"
"kubesphere.io/kubesphere/pkg/simple/client/admin_jenkins"
"kubesphere.io/kubesphere/pkg/simple/client/devops_mysql"
"log"
"net/http"
)
var jsonIter = jsoniter.ConfigCompatibleWithStandardLibrary
"github.com/spf13/cobra"
utilerrors "k8s.io/apimachinery/pkg/util/errors"
cliflag "k8s.io/component-base/cli/flag"
"k8s.io/klog"
"kubesphere.io/kubesphere/cmd/ks-apiserver/app/options"
apiserverconfig "kubesphere.io/kubesphere/pkg/apiserver/config"
"kubesphere.io/kubesphere/pkg/utils/signals"
"kubesphere.io/kubesphere/pkg/utils/term"
tracing "kubesphere.io/kubesphere/pkg/kapis/servicemesh/metrics/v1alpha2"
)
func NewAPIServerCommand() *cobra.Command {
s := options.NewServerRunOptions()
cmd := &cobra.Command{
Use: "ks-apiserver",
Long: `The KubeSphere API server validates and configures data
for the api objects. The API Server services REST operations and provides the frontend to the
cluster's shared state through which all other components interact.`,
RunE: func(cmd *cobra.Command, args []string) error {
return Run(s)
},
// Load configuration from file
conf, err := apiserverconfig.TryLoadFromDisk()
if err == nil {
s = &options.ServerRunOptions{
GenericServerRunOptions: s.GenericServerRunOptions,
Config: conf,
}
} else {
klog.Fatal("Failed to load configuration from disk", err)
}
s.AddFlags(cmd.Flags())
cmd.Flags().AddGoFlagSet(goflag.CommandLine)
glog.CopyStandardLogTo("INFO")
cmd := &cobra.Command{
Use: "ks-apiserver",
Long: `The KubeSphere API server validates and configures data for the API objects.
The API Server services REST operations and provides the frontend to the
cluster's shared state through which all other components interact.`,
RunE: func(cmd *cobra.Command, args []string) error {
if errs := s.Validate(); len(errs) != 0 {
return utilerrors.NewAggregate(errs)
}
return Run(s, signals.SetupSignalHandler())
},
SilenceUsage: true,
}
fs := cmd.Flags()
namedFlagSets := s.Flags()
for _, f := range namedFlagSets.FlagSets {
fs.AddFlagSet(f)
}
usageFmt := "Usage:\n %s\n"
cols, _, _ := term.TerminalSize(cmd.OutOrStdout())
cmd.SetHelpFunc(func(cmd *cobra.Command, args []string) {
fmt.Fprintf(cmd.OutOrStdout(), "%s\n\n"+usageFmt, cmd.Long, cmd.UseLine())
cliflag.PrintSections(cmd.OutOrStdout(), namedFlagSets, cols)
})
return cmd
}
func Run(s *options.ServerRunOptions) error {
func Run(s *options.ServerRunOptions, stopCh <-chan struct{}) error {
pflag.VisitAll(func(flag *pflag.Flag) {
log.Printf("FLAG: --%s=%q", flag.Name, flag.Value)
})
var err error
waitForResourceSync()
container := runtime.Container
container.DoNotRecover(false)
container.Filter(filter.Logging)
container.RecoverHandler(server.LogStackOnRecover)
for _, webservice := range container.RegisteredWebServices() {
for _, route := range webservice.Routes() {
log.Println(route.Method, route.Path)
}
}
initializeAdminJenkins()
initializeDevOpsDatabase()
initializeESClientConfig()
initializeServicemeshConfig(s)
if s.GenericServerRunOptions.InsecurePort != 0 {
log.Printf("Server listening on %d.", s.GenericServerRunOptions.InsecurePort)
err = http.ListenAndServe(fmt.Sprintf("%s:%d", s.GenericServerRunOptions.BindAddress, s.GenericServerRunOptions.InsecurePort), container)
apiserver, err := s.NewAPIServer(stopCh)
if err != nil {
return err
}
if s.GenericServerRunOptions.SecurePort != 0 && len(s.GenericServerRunOptions.TlsCertFile) > 0 && len(s.GenericServerRunOptions.TlsPrivateKey) > 0 {
log.Printf("Server listening on %d.", s.GenericServerRunOptions.SecurePort)
err = http.ListenAndServeTLS(fmt.Sprintf("%s:%d", s.GenericServerRunOptions.BindAddress, s.GenericServerRunOptions.SecurePort), s.GenericServerRunOptions.TlsCertFile, s.GenericServerRunOptions.TlsPrivateKey, container)
err = apiserver.PrepareRun(stopCh)
if err != nil {
return nil
}
return err
}
func initializeAdminJenkins() {
devops.JenkinsInit()
admin_jenkins.Client()
}
func initializeDevOpsDatabase() {
devops_mysql.OpenDatabase()
return apiserver.Run(stopCh)
}
func initializeServicemeshConfig(s *options.ServerRunOptions) {
// Initialize kiali config
config := kconfig.NewConfig()
tracing.JaegerQueryUrl = s.JaegerQueryServiceUrl
// Exclude system namespaces
config.API.Namespaces.Exclude = []string{"istio-system", "kubesphere*", "kube*"}
config.InCluster = true
// Set default prometheus service url
config.ExternalServices.PrometheusServiceURL = s.ServicemeshPrometheusServiceUrl
config.ExternalServices.PrometheusCustomMetricsURL = config.ExternalServices.PrometheusServiceURL
// Set istio pilot discovery service url
config.ExternalServices.Istio.UrlServiceVersion = s.IstioPilotServiceURL
kconfig.Set(config)
}
func initializeESClientConfig() {
// List all outputs
outputs, err := logging.GetFluentbitOutputFromConfigMap()
if err != nil {
glog.Errorln(err)
return
// Config jaeger query endpoint address
if s.ServiceMeshOptions != nil && len(s.ServiceMeshOptions.JaegerQueryHost) != 0 {
tracing.JaegerQueryUrl = s.ServiceMeshOptions.JaegerQueryHost
}
// Iterate the outputs to get elasticsearch configs
for _, output := range outputs {
if configs := logging.ParseEsOutputParams(output.Parameters); configs != nil {
configs.WriteESConfigs()
return
}
// Set the kiali query endpoint address
if s.ServiceMeshOptions != nil && len(s.ServiceMeshOptions.KialiQueryHost) != 0 {
tracing.KialiQueryUrl = s.ServiceMeshOptions.KialiQueryHost
}
}
func waitForResourceSync() {
stopChan := signals.SetupSignalHandler()
informerFactory := informers.SharedInformerFactory()
informerFactory.Rbac().V1().Roles().Lister()
informerFactory.Rbac().V1().RoleBindings().Lister()
informerFactory.Rbac().V1().ClusterRoles().Lister()
informerFactory.Rbac().V1().ClusterRoleBindings().Lister()
informerFactory.Storage().V1().StorageClasses().Lister()
informerFactory.Core().V1().Namespaces().Lister()
informerFactory.Core().V1().Nodes().Lister()
informerFactory.Core().V1().ResourceQuotas().Lister()
informerFactory.Core().V1().Pods().Lister()
informerFactory.Core().V1().Services().Lister()
informerFactory.Core().V1().PersistentVolumeClaims().Lister()
informerFactory.Core().V1().Secrets().Lister()
informerFactory.Core().V1().ConfigMaps().Lister()
informerFactory.Apps().V1().ControllerRevisions().Lister()
informerFactory.Apps().V1().StatefulSets().Lister()
informerFactory.Apps().V1().Deployments().Lister()
informerFactory.Apps().V1().DaemonSets().Lister()
informerFactory.Apps().V1().ReplicaSets().Lister()
informerFactory.Batch().V1().Jobs().Lister()
informerFactory.Batch().V1beta1().CronJobs().Lister()
informerFactory.Extensions().V1beta1().Ingresses().Lister()
informerFactory.Start(stopChan)
informerFactory.WaitForCacheSync(stopChan)
s2iInformerFactory := informers.S2iSharedInformerFactory()
s2iInformerFactory.Devops().V1alpha1().S2iBuilderTemplates().Lister()
s2iInformerFactory.Devops().V1alpha1().S2iRuns().Lister()
s2iInformerFactory.Devops().V1alpha1().S2iBuilders().Lister()
s2iInformerFactory.Start(stopChan)
s2iInformerFactory.WaitForCacheSync(stopChan)
ksInformerFactory := informers.KsSharedInformerFactory()
ksInformerFactory.Tenant().V1alpha1().Workspaces().Lister()
ksInformerFactory.Start(stopChan)
ksInformerFactory.WaitForCacheSync(stopChan)
log.Println("resources sync success")
}

View File

@@ -1,34 +0,0 @@
/*
Copyright 2019 The KubeSphere 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 main
import (
"kubesphere.io/kubesphere/cmd/ks-iam/app"
"log"
// Install apis
_ "kubesphere.io/kubesphere/pkg/apis/iam/install"
)
func main() {
cmd := app.NewAPIServerCommand()
if err := cmd.Execute(); err != nil {
log.Fatalln(err)
}
}

View File

@@ -1,46 +0,0 @@
/*
Copyright 2019 The KubeSphere 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 options
import (
"github.com/spf13/pflag"
genericoptions "kubesphere.io/kubesphere/pkg/options"
)
type ServerRunOptions struct {
GenericServerRunOptions *genericoptions.ServerRunOptions
AdminEmail string
AdminPassword string
TokenExpireTime string
JWTSecret string
}
func NewServerRunOptions() *ServerRunOptions {
s := &ServerRunOptions{
GenericServerRunOptions: genericoptions.NewServerRunOptions(),
}
return s
}
func (s *ServerRunOptions) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&s.AdminEmail, "admin-email", "admin@kubesphere.io", "default administrator's email")
fs.StringVar(&s.AdminPassword, "admin-password", "passw0rd", "default administrator's password")
fs.StringVar(&s.TokenExpireTime, "token-expire-time", "2h", "token expire time,valid time units are \"ns\",\"us\",\"ms\",\"s\",\"m\",\"h\"")
fs.StringVar(&s.JWTSecret, "jwt-secret", "", "jwt secret")
s.GenericServerRunOptions.AddFlags(fs)
}

View File

@@ -1,137 +0,0 @@
/*
Copyright 2019 The KubeSphere 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 app
import (
goflag "flag"
"fmt"
"github.com/golang/glog"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"kubesphere.io/kubesphere/cmd/ks-iam/app/options"
"kubesphere.io/kubesphere/pkg/apiserver/runtime"
"kubesphere.io/kubesphere/pkg/filter"
"kubesphere.io/kubesphere/pkg/informers"
"kubesphere.io/kubesphere/pkg/models/iam"
"kubesphere.io/kubesphere/pkg/server"
"kubesphere.io/kubesphere/pkg/signals"
"kubesphere.io/kubesphere/pkg/simple/client/admin_jenkins"
"kubesphere.io/kubesphere/pkg/simple/client/devops_mysql"
"kubesphere.io/kubesphere/pkg/utils/jwtutil"
"log"
"net/http"
"time"
)
func NewAPIServerCommand() *cobra.Command {
s := options.NewServerRunOptions()
cmd := &cobra.Command{
Use: "ks-iam",
Long: `The KubeSphere API server validates and configures data
for the api objects. The API Server services REST operations and provides the frontend to the
cluster's shared state through which all other components interact.`,
RunE: func(cmd *cobra.Command, args []string) error {
return Run(s)
},
}
s.AddFlags(cmd.Flags())
cmd.Flags().AddGoFlagSet(goflag.CommandLine)
glog.CopyStandardLogTo("INFO")
return cmd
}
func Run(s *options.ServerRunOptions) error {
pflag.VisitAll(func(flag *pflag.Flag) {
log.Printf("FLAG: --%s=%q", flag.Name, flag.Value)
})
var err error
expireTime, err := time.ParseDuration(s.TokenExpireTime)
if err != nil {
return err
}
waitForResourceSync()
initializeAdminJenkins()
initializeDevOpsDatabase()
err = iam.Init(s.AdminEmail, s.AdminPassword, expireTime)
jwtutil.Setup(s.JWTSecret)
if err != nil {
return err
}
container := runtime.Container
container.Filter(filter.Logging)
container.DoNotRecover(false)
container.RecoverHandler(server.LogStackOnRecover)
for _, webservice := range container.RegisteredWebServices() {
for _, route := range webservice.Routes() {
log.Println(route.Method, route.Path)
}
}
if s.GenericServerRunOptions.InsecurePort != 0 {
log.Printf("Server listening on %d.", s.GenericServerRunOptions.InsecurePort)
err = http.ListenAndServe(fmt.Sprintf("%s:%d", s.GenericServerRunOptions.BindAddress, s.GenericServerRunOptions.InsecurePort), container)
}
if s.GenericServerRunOptions.SecurePort != 0 && len(s.GenericServerRunOptions.TlsCertFile) > 0 && len(s.GenericServerRunOptions.TlsPrivateKey) > 0 {
log.Printf("Server listening on %d.", s.GenericServerRunOptions.SecurePort)
err = http.ListenAndServeTLS(fmt.Sprintf("%s:%d", s.GenericServerRunOptions.BindAddress, s.GenericServerRunOptions.SecurePort), s.GenericServerRunOptions.TlsCertFile, s.GenericServerRunOptions.TlsPrivateKey, container)
}
return err
}
func waitForResourceSync() {
stopChan := signals.SetupSignalHandler()
informerFactory := informers.SharedInformerFactory()
informerFactory.Rbac().V1().Roles().Lister()
informerFactory.Rbac().V1().RoleBindings().Lister()
informerFactory.Rbac().V1().ClusterRoles().Lister()
informerFactory.Rbac().V1().ClusterRoleBindings().Lister()
informerFactory.Core().V1().Namespaces().Lister()
informerFactory.Start(stopChan)
informerFactory.WaitForCacheSync(stopChan)
ksInformerFactory := informers.KsSharedInformerFactory()
ksInformerFactory.Tenant().V1alpha1().Workspaces().Lister()
ksInformerFactory.Start(stopChan)
ksInformerFactory.WaitForCacheSync(stopChan)
log.Println("resources sync success")
}
func initializeAdminJenkins() {
admin_jenkins.Client()
}
func initializeDevOpsDatabase() {
devops_mysql.OpenDatabase()
}

View File

@@ -0,0 +1,114 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: agents.cluster.kubesphere.io
spec:
additionalPrinterColumns:
- JSONPath: .spec.Paused
name: Paused
type: bool
group: cluster.kubesphere.io
names:
kind: Agent
listKind: AgentList
plural: agents
singular: agent
scope: Cluster
subresources: {}
validation:
openAPIV3Schema:
description: Agent is the Schema for the agents API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: AgentSpec defines the desired state of Agent
properties:
kubernetesAPIServerPort:
description: KubeAPIServerPort is the port which listens for forwarding
kube-apiserver traffic
type: integer
kubesphereAPIServerPort:
description: KubeSphereAPIServerPort is the port which listens for forwarding
kubesphere apigateway traffic
type: integer
paused:
description: Indicates that the agent is paused.
type: boolean
proxy:
description: Proxy address
type: string
token:
description: Token used by agents to connect to proxy.
type: string
type: object
status:
description: AgentStatus defines the observed state of Agent
properties:
conditions:
description: Represents the latest available observations of a agent's
current state.
items:
properties:
lastTransitionTime:
description: Last time the condition transitioned from one status
to another.
format: date-time
type: string
lastUpdateTime:
description: The last time this condition was updated.
format: date-time
type: string
message:
description: A human readable message indicating details about
the transition.
type: string
reason:
description: The reason for the condition's last transition.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of AgentCondition
type: string
required:
- status
type: object
type: array
kubeconfig:
description: Issued new kubeconfig by proxy server
format: byte
type: string
ping:
description: Represents the connection quality, in ms
format: int64
type: integer
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,168 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: clusters.cluster.kubesphere.io
spec:
additionalPrinterColumns:
- JSONPath: .spec.joinFederation
name: Federated
type: boolean
- JSONPath: .spec.provider
name: Provider
type: string
- JSONPath: .spec.enable
name: Active
type: boolean
- JSONPath: .status.kubernetesVersion
name: Version
type: string
group: cluster.kubesphere.io
names:
kind: Cluster
listKind: ClusterList
plural: clusters
singular: cluster
scope: Cluster
subresources: {}
validation:
openAPIV3Schema:
description: Cluster is the schema for the clusters API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
connection:
description: Connection holds info to connect to the member cluster
properties:
kubeconfig:
description: KubeConfig content used to connect to cluster api server
Should provide this field explicitly if connection type is direct.
Will be populated by ks-proxy if connection type is proxy.
format: byte
type: string
kubernetesAPIEndpoint:
description: Kubernetes API Server endpoint. This can be a hostname,
hostname:port, IP or IP:port. Should provide this field explicitly
if connection type is direct. Will be populated by ks-apiserver
if connection type is proxy.
type: string
kubernetesAPIServerPort:
description: KubeAPIServerPort is the port which listens for forwarding
kube-apiserver traffic Only applicable when connection type is
proxy.
type: integer
kubesphereAPIEndpoint:
description: KubeSphere API Server endpoint. This can be a hostname,
hostname:port, IP or IP:port. Should provide this field explicitly
if connection type is direct. Will be populated by ks-apiserver
if connection type is proxy.
type: string
kubesphereAPIServerPort:
description: KubeSphereAPIServerPort is the port which listens for
forwarding kubesphere apigateway traffic Only applicable when
connection type is proxy.
type: integer
token:
description: Token used by agents of member cluster to connect to
host cluster proxy. This field is populated by apiserver only
if connection type is proxy.
type: string
type:
description: type defines how host cluster will connect to host
cluster ConnectionTypeDirect means direct connection, this requires kubeconfig
and kubesphere apiserver endpoint provided ConnectionTypeProxy
means using kubesphere proxy, no kubeconfig or kubesphere apiserver
endpoint required
type: string
type: object
enable:
description: Desired state of the cluster
type: boolean
joinFederation:
description: Join cluster as a kubefed cluster
type: boolean
provider:
description: Provider of the cluster, this field is just for description
type: string
type: object
status:
properties:
conditions:
description: Represents the latest available observations of a cluster's
current state.
items:
properties:
lastTransitionTime:
description: Last time the condition transitioned from one status
to another.
format: date-time
type: string
lastUpdateTime:
description: The last time this condition was updated.
format: date-time
type: string
message:
description: A human readable message indicating details about
the transition.
type: string
reason:
description: The reason for the condition's last transition.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of the condition
type: string
required:
- status
- type
type: object
type: array
kubernetesVersion:
description: GitVersion of the kubernetes cluster, this field is populated
by cluster controller
type: string
nodeCount:
description: Count of the kubernetes cluster nodes This field may not
reflect the instant status of the cluster.
type: integer
region:
description: Region is the name of the region in which all of the nodes
in the cluster exist. e.g. 'us-east1'.
type: string
zones:
description: Zones are the names of availability zones in which the
nodes of the cluster exist, e.g. 'us-east1-a'.
items:
type: string
type: array
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,59 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: devopsprojects.devops.kubesphere.io
spec:
group: devops.kubesphere.io
names:
categories:
- devops
kind: DevOpsProject
listKind: DevOpsProjectList
plural: devopsprojects
singular: devopsproject
scope: Cluster
validation:
openAPIV3Schema:
description: DevOpsProject is the Schema for the devopsprojects API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: DevOpsProjectSpec defines the desired state of DevOpsProject
type: object
status:
description: DevOpsProjectStatus defines the observed state of DevOpsProject
properties:
adminNamespace:
description: 'INSERT ADDITIONAL STATUS FIELD - define observed state
of cluster Important: Run "make" to regenerate code after modifying
this file'
type: string
type: object
type: object
version: v1alpha3
versions:
- name: v1alpha3
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,260 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: pipelines.devops.kubesphere.io
spec:
group: devops.kubesphere.io
names:
kind: Pipeline
listKind: PipelineList
plural: pipelines
singular: pipeline
scope: Namespaced
validation:
openAPIV3Schema:
description: Pipeline is the Schema for the pipelines API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: PipelineSpec defines the desired state of Pipeline
properties:
multi_branch_pipeline:
properties:
bitbucket_server_source:
properties:
api_uri:
type: string
credential_id:
type: string
discover_branches:
type: integer
discover_pr_from_forks:
properties:
strategy:
type: integer
trust:
type: integer
type: object
discover_pr_from_origin:
type: integer
git_clone_option:
properties:
depth:
type: integer
shallow:
type: boolean
timeout:
type: integer
type: object
owner:
type: string
regex_filter:
type: string
repo:
type: string
scm_id:
type: string
type: object
descriptio:
type: string
discarder:
properties:
days_to_keep:
type: string
num_to_keep:
type: string
type: object
git_source:
properties:
credential_id:
type: string
discover_branches:
type: boolean
git_clone_option:
properties:
depth:
type: integer
shallow:
type: boolean
timeout:
type: integer
type: object
regex_filter:
type: string
scm_id:
type: string
url:
type: string
type: object
github_source:
properties:
api_uri:
type: string
credential_id:
type: string
discover_branches:
type: integer
discover_pr_from_forks:
properties:
strategy:
type: integer
trust:
type: integer
type: object
discover_pr_from_origin:
type: integer
git_clone_option:
properties:
depth:
type: integer
shallow:
type: boolean
timeout:
type: integer
type: object
owner:
type: string
regex_filter:
type: string
repo:
type: string
scm_id:
type: string
type: object
multibranch_job_trigger:
properties:
create_action_job_to_trigger:
type: string
delete_action_job_to_trigger:
type: string
type: object
name:
type: string
script_path:
type: string
single_svn_source:
properties:
credential_id:
type: string
remote:
type: string
scm_id:
type: string
type: object
source_type:
type: string
svn_source:
properties:
credential_id:
type: string
excludes:
type: string
includes:
type: string
remote:
type: string
scm_id:
type: string
type: object
timer_trigger:
properties:
cron:
description: user in no scm job
type: string
interval:
description: use in multi-branch job
type: string
type: object
required:
- name
- script_path
- source_type
type: object
pipeline:
properties:
descriptio:
type: string
disable_concurrent:
type: boolean
discarder:
properties:
days_to_keep:
type: string
num_to_keep:
type: string
type: object
jenkinsfile:
type: string
name:
type: string
parameters:
items:
properties:
default_value:
type: string
description:
type: string
name:
type: string
type:
type: string
required:
- name
- type
type: object
type: array
remote_trigger:
properties:
token:
type: string
type: object
timer_trigger:
properties:
cron:
description: user in no scm job
type: string
interval:
description: use in multi-branch job
type: string
type: object
required:
- name
type: object
type:
description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
Important: Run "make" to regenerate code after modifying this file'
type: string
required:
- type
type: object
status:
description: PipelineStatus defines the observed state of Pipeline
type: object
type: object
version: v1alpha3
versions:
- name: v1alpha3
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,86 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: s2ibinaries.devops.kubesphere.io
spec:
additionalPrinterColumns:
- JSONPath: .spec.fileName
name: FileName
type: string
- JSONPath: .spec.md5
name: MD5
type: string
- JSONPath: .spec.size
name: Size
type: string
- JSONPath: .status.phase
name: Phase
type: string
group: devops.kubesphere.io
names:
kind: S2iBinary
listKind: S2iBinaryList
plural: s2ibinaries
singular: s2ibinary
scope: Namespaced
subresources: {}
validation:
openAPIV3Schema:
description: S2iBinary is the Schema for the s2ibinaries API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: S2iBinarySpec defines the desired state of S2iBinary
properties:
downloadURL:
description: DownloadURL in KubeSphere
type: string
fileName:
description: FileName is filename of binary
type: string
md5:
description: MD5 is Binary's MD5 Hash
type: string
size:
description: Size is the file size of file
type: string
uploadTimeStamp:
description: UploadTime is last upload time
format: date-time
type: string
type: object
status:
description: S2iBinaryStatus defines the observed state of S2iBinary
properties:
phase:
description: Phase is status of S2iBinary . Possible value is "Ready","UnableToDownload"
type: string
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,578 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: s2ibuilders.devops.kubesphere.io
spec:
additionalPrinterColumns:
- JSONPath: .status.runCount
name: RunCount
type: integer
- JSONPath: .status.lastRunState
name: LastRunState
type: string
- JSONPath: .status.lastRunName
name: LastRunName
type: string
- JSONPath: .status.lastRunStartTime
name: LastRunStartTime
type: date
group: devops.kubesphere.io
names:
kind: S2iBuilder
listKind: S2iBuilderList
plural: s2ibuilders
shortNames:
- s2ib
singular: s2ibuilder
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
description: S2iBuilder is the Schema for the s2ibuilders API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: S2iBuilderSpec defines the desired state of S2iBuilder
properties:
config:
description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
Important: Run "make" to regenerate code after modifying this file'
properties:
addHost:
description: AddHost Add a line to /etc/hosts for test purpose or
private use in LAN. Its format is host:IP,muliple hosts can be
added by using multiple --add-host
items:
type: string
type: array
asDockerfile:
description: AsDockerfile indicates the path where the Dockerfile
should be written instead of building a new image.
type: string
assembleUser:
description: AssembleUser specifies the user to run the assemble
script in container
type: string
blockOnBuild:
description: BlockOnBuild prevents s2i from performing a docker
build operation if one is necessary to execute ONBUILD commands,
or to layer source code into the container for images that don't
have a tar binary available, if the image contains ONBUILD commands
that would be executed.
type: boolean
branchExpression:
description: Regular expressions, ignoring names that do not match
the provided regular expression
type: string
buildVolumes:
description: BuildVolumes specifies a list of volumes to mount to
container running the build.
items:
type: string
type: array
builderBaseImageVersion:
description: BuilderBaseImageVersion provides optional version information
about the builder base image.
type: string
builderImage:
description: BuilderImage describes which image is used for building
the result images.
type: string
builderImageVersion:
description: BuilderImageVersion provides optional version information
about the builder image.
type: string
builderPullPolicy:
description: BuilderPullPolicy specifies when to pull the builder
image
type: string
callbackUrl:
description: CallbackURL is a URL which is called upon successful
build to inform about that fact.
type: string
cgroupLimits:
description: CGroupLimits describes the cgroups limits that will
be applied to any containers run by s2i.
properties:
cpuPeriod:
format: int64
type: integer
cpuQuota:
format: int64
type: integer
cpuShares:
format: int64
type: integer
memoryLimitBytes:
format: int64
type: integer
memorySwap:
format: int64
type: integer
parent:
type: string
required:
- cpuPeriod
- cpuQuota
- cpuShares
- memoryLimitBytes
- memorySwap
- parent
type: object
contextDir:
description: Specify a relative directory inside the application
repository that should be used as a root directory for the application.
type: string
description:
description: Description is a result image description label. The
default is no description.
type: string
destination:
description: Destination specifies a location where the untar operation
will place its artifacts.
type: string
displayName:
description: DisplayName is a result image display-name label. This
defaults to the output image name.
type: string
dockerConfig:
description: DockerConfig describes how to access host docker daemon.
properties:
caFile:
description: CAFile is the certificate authority file path for
a TLS connection
type: string
certFile:
description: CertFile is the certificate file path for a TLS
connection
type: string
endPoint:
description: Endpoint is the docker network endpoint or socket
type: string
keyFile:
description: KeyFile is the key file path for a TLS connection
type: string
tlsVerify:
description: TLSVerify indicates if TLS peer must be verified
type: boolean
useTLS:
description: UseTLS indicates if TLS must be used
type: boolean
required:
- caFile
- certFile
- endPoint
- keyFile
- tlsVerify
- useTLS
type: object
dockerNetworkMode:
description: DockerNetworkMode is used to set the docker network
setting to --net=container:<id> when the builder is invoked from
a container.
type: string
dropCapabilities:
description: DropCapabilities contains a list of capabilities to
drop when executing containers
items:
type: string
type: array
environment:
description: Environment is a map of environment variables to be
passed to the image.
items:
description: EnvironmentSpec specifies a single environment variable.
properties:
name:
type: string
value:
type: string
required:
- name
- value
type: object
type: array
excludeRegExp:
description: ExcludeRegExp contains a string representation of the
regular expression desired for deciding which files to exclude
from the tar stream
type: string
export:
description: Export Push the result image to specify image registry
in tag
type: boolean
gitSecretRef:
description: GitSecretRef is the BasicAuth Secret of Git Clone
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
hasOnBuild:
description: HasOnBuild will be set to true if the builder image
contains ONBUILD instructions
type: boolean
imageName:
description: ImageName Contains the registry address and reponame,
tag should set by field tag alone
type: string
imageScriptsUrl:
description: ImageScriptsURL is the default location to find the
assemble/run scripts for a builder image. This url can be a reference
within the builder image if the scheme is specified as image://
type: string
imageWorkDir:
description: ImageWorkDir is the default working directory for the
builder image.
type: string
incremental:
description: Incremental describes whether to try to perform incremental
build.
type: boolean
incrementalAuthentication:
description: IncrementalAuthentication holds the authentication
information for pulling the previous image from private repositories
properties:
email:
type: string
password:
type: string
secretRef:
description: LocalObjectReference contains enough information
to let you locate the referenced object inside the same namespace.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
serverAddress:
type: string
username:
type: string
type: object
incrementalFromTag:
description: IncrementalFromTag sets an alternative image tag to
look for existing artifacts. Tag is used by default if this is
not set.
type: string
injections:
description: Injections specifies a list source/destination folders
that are injected to the container that runs assemble. All files
we inject will be truncated after the assemble script finishes.
items:
description: VolumeSpec represents a single volume mount point.
properties:
destination:
description: Destination is the path to mount the volume to
- absolute or relative.
type: string
keep:
description: Keep indicates if the mounted data should be
kept in the final image.
type: boolean
source:
description: Source is a reference to the volume source.
type: string
type: object
type: array
isBinaryURL:
description: IsBinaryURL explain the type of SourceURL. If it is
IsBinaryURL, it will download the file directly without using
git.
type: boolean
keepSymlinks:
description: KeepSymlinks indicates to copy symlinks as symlinks.
Default behavior is to follow symlinks and copy files by content.
type: boolean
labelNamespace:
description: LabelNamespace provides the namespace under which the
labels will be generated.
type: string
labels:
additionalProperties:
type: string
description: Labels specify labels and their values to be applied
to the resulting image. Label keys must have non-zero length.
The labels defined here override generated labels in case they
have the same name.
type: object
layeredBuild:
description: LayeredBuild describes if this is build which layered
scripts and sources on top of BuilderImage.
type: boolean
nodeAffinityKey:
description: The key of Node Affinity.
type: string
nodeAffinityValues:
description: The values of Node Affinity.
items:
type: string
type: array
outputBuildResult:
description: Whether output build result to status.
type: boolean
outputImageName:
description: OutputImageName is a result image name without tag,
default is latest. tag will append to ImageName in the end
type: string
preserveWorkingDir:
description: PreserveWorkingDir describes if working directory should
be left after processing.
type: boolean
previousImagePullPolicy:
description: PreviousImagePullPolicy specifies when to pull the
previously build image when doing incremental build
type: string
pullAuthentication:
description: PullAuthentication holds the authentication information
for pulling the Docker images from private repositories
properties:
email:
type: string
password:
type: string
secretRef:
description: LocalObjectReference contains enough information
to let you locate the referenced object inside the same namespace.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
serverAddress:
type: string
username:
type: string
type: object
pushAuthentication:
description: PullAuthentication holds the authentication information
for pulling the Docker images from private repositories
properties:
email:
type: string
password:
type: string
secretRef:
description: LocalObjectReference contains enough information
to let you locate the referenced object inside the same namespace.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
serverAddress:
type: string
username:
type: string
type: object
removePreviousImage:
description: RemovePreviousImage describes if previous image should
be removed after successful build. This applies only to incremental
builds.
type: boolean
revisionId:
description: The RevisionId is a branch name or a SHA-1 hash of
every important thing about the commit
type: string
runImage:
description: RunImage will trigger a "docker run ..." invocation
of the produced image so the user can see if it operates as he
would expect
type: boolean
runtimeArtifacts:
description: RuntimeArtifacts specifies a list of source/destination
pairs that will be copied from builder to a runtime image. Source
can be a file or directory. Destination must be a directory. Regardless
whether it is an absolute or relative path, it will be placed
into image's WORKDIR. Destination also can be empty or equals
to ".", in this case it just refers to a root of WORKDIR. In case
it's empty, S2I will try to get this list from io.openshift.s2i.assemble-input-files
label on a RuntimeImage.
items:
description: VolumeSpec represents a single volume mount point.
properties:
destination:
description: Destination is the path to mount the volume to
- absolute or relative.
type: string
keep:
description: Keep indicates if the mounted data should be
kept in the final image.
type: boolean
source:
description: Source is a reference to the volume source.
type: string
type: object
type: array
runtimeAuthentication:
description: RuntimeAuthentication holds the authentication information
for pulling the runtime Docker images from private repositories.
properties:
email:
type: string
password:
type: string
secretRef:
description: LocalObjectReference contains enough information
to let you locate the referenced object inside the same namespace.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
serverAddress:
type: string
username:
type: string
type: object
runtimeImage:
description: RuntimeImage specifies the image that will be a base
for resulting image and will be used for running an application.
By default, BuilderImage is used for building and running, but
the latter may be overridden.
type: string
runtimeImagePullPolicy:
description: RuntimeImagePullPolicy specifies when to pull a runtime
image.
type: string
scriptDownloadProxyConfig:
description: ScriptDownloadProxyConfig optionally specifies the
http and https proxy to use when downloading scripts
properties:
httpProxy:
type: string
httpsProxy:
type: string
type: object
scriptsUrl:
description: ScriptsURL is a URL describing where to fetch the S2I
scripts from during build process. This url can be a reference
within the builder image if the scheme is specified as image://
type: string
secretCode:
description: SecretCode
type: string
securityOpt:
description: SecurityOpt are passed as options to the docker containers
launched by s2i.
items:
type: string
type: array
sourceUrl:
description: SourceURL is url of the codes such as https://github.com/a/b.git
type: string
tag:
description: Tag is a result image tag name.
type: string
taintKey:
description: The name of taint.
type: string
usage:
description: Usage allows for properly shortcircuiting s2i logic
when `s2i usage` is invoked
type: boolean
workingDir:
description: WorkingDir describes temporary directory used for downloading
sources, scripts and tar operations.
type: string
workingSourceDir:
description: WorkingSourceDir describes the subdirectory off of
WorkingDir set up during the repo download that is later used
as the root for ignore processing
type: string
required:
- imageName
- sourceUrl
type: object
fromTemplate:
description: FromTemplate define some inputs from user
properties:
builderImage:
description: BaseImage specify which version of this template to
use
type: string
name:
description: Name specify a template to use, so many fields in Config
can left empty
type: string
parameters:
description: Parameters must use with `template`, fill some parameters
which template will use
items:
properties:
defaultValue:
type: string
description:
type: string
key:
type: string
optValues:
items:
type: string
type: array
required:
type: boolean
type:
type: string
value:
type: string
type: object
type: array
type: object
type: object
status:
description: S2iBuilderStatus defines the observed state of S2iBuilder
properties:
lastRunName:
description: LastRunState return the name of the newest run of this
builder
type: string
lastRunStartTime:
description: LastRunStartTime return the startTime of the newest run
of this builder
format: date-time
type: string
lastRunState:
description: LastRunState return the state of the newest run of this
builder
type: string
runCount:
description: RunCount represent the sum of s2irun of this builder
type: integer
required:
- runCount
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,141 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: s2ibuildertemplates.devops.kubesphere.io
spec:
additionalPrinterColumns:
- JSONPath: .spec.codeFramework
name: Framework
type: string
- JSONPath: .spec.defaultBaseImage
name: DefaultBaseImage
type: string
- JSONPath: .spec.version
name: Version
type: string
group: devops.kubesphere.io
names:
categories:
- devops
kind: S2iBuilderTemplate
listKind: S2iBuilderTemplateList
plural: s2ibuildertemplates
shortNames:
- s2ibt
singular: s2ibuildertemplate
scope: Cluster
subresources: {}
validation:
openAPIV3Schema:
description: S2iBuilderTemplate is the Schema for the s2ibuildertemplates API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: S2iBuilderTemplateSpec defines the desired state of S2iBuilderTemplate
properties:
codeFramework:
description: CodeFramework means which language this template is designed
for and which framework is using if has framework. Like Java, NodeJS
etc
type: string
containerInfo:
description: Images are the images this template will use.
items:
properties:
buildVolumes:
description: BuildVolumes specifies a list of volumes to mount
to container running the build.
items:
type: string
type: array
builderImage:
description: BaseImage are the images this template will use.
type: string
runtimeArtifacts:
items:
description: VolumeSpec represents a single volume mount point.
properties:
destination:
description: Destination is the path to mount the volume
to - absolute or relative.
type: string
keep:
description: Keep indicates if the mounted data should be
kept in the final image.
type: boolean
source:
description: Source is a reference to the volume source.
type: string
type: object
type: array
runtimeImage:
type: string
type: object
type: array
defaultBaseImage:
description: DefaultBaseImage is the image that will be used by default
type: string
description:
description: Description illustrate the purpose of this template
type: string
environment:
description: Parameters is a set of environment variables to be passed
to the image.
items:
properties:
defaultValue:
type: string
description:
type: string
key:
type: string
optValues:
items:
type: string
type: array
required:
type: boolean
type:
type: string
value:
type: string
type: object
type: array
iconPath:
description: IconPath is used for frontend display
type: string
version:
description: Version of template
type: string
type: object
status:
description: S2iBuilderTemplateStatus defines the observed state of S2iBuilderTemplate
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,181 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: s2iruns.devops.kubesphere.io
spec:
additionalPrinterColumns:
- JSONPath: .status.runState
name: State
type: string
- JSONPath: .status.kubernetesJobName
name: K8sJobName
type: string
- JSONPath: .status.startTime
name: StartTime
type: date
- JSONPath: .status.completionTime
name: CompletionTime
type: date
- JSONPath: .status.s2iBuildResult.imageName
name: ImageName
type: string
group: devops.kubesphere.io
names:
kind: S2iRun
listKind: S2iRunList
plural: s2iruns
shortNames:
- s2ir
singular: s2irun
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
description: S2iRun is the Schema for the s2iruns API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: S2iRunSpec defines the desired state of S2iRun
properties:
backoffLimit:
description: BackoffLimit limits the restart count of each s2irun. Default
is 0
format: int32
type: integer
builderName:
description: BuilderName specify the name of s2ibuilder, required
type: string
newRevisionId:
description: NewRevisionId override the default NewRevisionId in its
s2ibuilder.
type: string
newSourceURL:
description: NewSourceURL is used to download new binary artifacts
type: string
newTag:
description: NewTag override the default tag in its s2ibuilder, image
name cannot be changed.
type: string
secondsAfterFinished:
description: SecondsAfterFinished if is set and greater than zero, and
the job created by s2irun become successful or failed , the job will
be auto deleted after SecondsAfterFinished
format: int32
type: integer
required:
- builderName
type: object
status:
description: S2iRunStatus defines the observed state of S2iRun
properties:
completionTime:
description: Represents time when the job was completed. It is not guaranteed
to be set in happens-before order across separate operations. It is
represented in RFC3339 form and is in UTC.
format: date-time
type: string
kubernetesJobName:
description: KubernetesJobName is the job name in k8s
type: string
logURL:
description: LogURL is uesd for external log handler to let user know
where is log located in
type: string
runState:
description: RunState indicates whether this job is done or failed
type: string
s2iBuildResult:
description: S2i build result info.
properties:
commandPull:
description: Command for pull image.
type: string
imageCreated:
description: Image created time.
type: string
imageID:
description: Image ID.
type: string
imageName:
description: ImageName is the name of artifact
type: string
imageRepoTags:
description: image tags.
items:
type: string
type: array
imageSize:
description: The size in bytes of the image
format: int64
type: integer
type: object
s2iBuildSource:
description: S2i build source info.
properties:
binaryName:
description: Binary file Name
type: string
binarySize:
description: Binary file Size
format: int64
type: integer
builderImage:
description: // BuilderImage describes which image is used for building
the result images.
type: string
commitID:
description: CommitID represents an arbitrary extended object reference
in Git as SHA-1
type: string
committerEmail:
description: CommitterEmail contains the e-mail of the committer
type: string
committerName:
description: CommitterName contains the name of the committer
type: string
description:
description: Description is a result image description label. The
default is no description.
type: string
revisionId:
description: The RevisionId is a branch name or a SHA-1 hash of
every important thing about the commit
type: string
sourceUrl:
description: SourceURL is url of the codes such as https://github.com/a/b.git
type: string
type: object
startTime:
description: StartTime represent when this run began
format: date-time
type: string
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,236 +1,529 @@
apiVersion: apiextensions.k8s.io/v1beta1
# Copyright 2020 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
api-approved.kubernetes.io: https://github.com/kubernetes-sigs/application/pull/2
controller-gen.kubebuilder.io/version: v0.4.0
creationTimestamp: null
labels:
controller-tools.k8s.io: "1.0"
name: applications.app.k8s.io
spec:
group: app.k8s.io
names:
categories:
- all
kind: Application
listKind: ApplicationList
plural: applications
shortNames:
- app
singular: application
scope: Namespaced
validation:
openAPIV3Schema:
properties:
apiVersion:
type: string
kind:
type: string
metadata:
type: object
spec:
properties:
assemblyPhase:
type: string
componentKinds:
items:
type: object
type: array
descriptor:
properties:
description:
type: string
icons:
items:
properties:
size:
type: string
src:
type: string
type:
type: string
required:
- src
type: object
type: array
keywords:
items:
type: string
type: array
links:
items:
properties:
description:
type: string
url:
type: string
type: object
type: array
maintainers:
items:
properties:
email:
type: string
name:
type: string
url:
type: string
type: object
type: array
notes:
type: string
owners:
items:
properties:
email:
type: string
name:
type: string
url:
type: string
type: object
type: array
type:
type: string
version:
type: string
type: object
info:
items:
versions:
- additionalPrinterColumns:
- description: The type of the application
jsonPath: .spec.descriptor.type
name: Type
type: string
- description: The creation date
jsonPath: .spec.descriptor.version
name: Version
type: string
- description: The application object owns the matched resources
jsonPath: .spec.addOwnerRef
name: Owner
type: boolean
- description: Numbers of components ready
jsonPath: .status.componentsReady
name: Ready
type: string
- description: The creation date
jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1beta1
schema:
openAPIV3Schema:
description: Application is the Schema for the applications API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: ApplicationSpec defines the specification for an Application.
properties:
addOwnerRef:
description: AddOwnerRef objects - flag to indicate if we need to
add OwnerRefs to matching objects Matching is done by using Selector
to query all ComponentGroupKinds
type: boolean
assemblyPhase:
description: AssemblyPhase represents the current phase of the application's
assembly. An empty value is equivalent to "Succeeded".
type: string
componentKinds:
description: ComponentGroupKinds is a list of Kinds for Application's
components (e.g. Deployments, Pods, Services, CRDs). It can be used
in conjunction with the Application's Selector to list or watch
the Applications components.
items:
description: GroupKind specifies a Group and a Kind, but does not
force a version. This is useful for identifying concepts during
lookup stages without having partially valid types
properties:
group:
type: string
kind:
type: string
required:
- group
- kind
type: object
type: array
descriptor:
description: Descriptor regroups information and metadata about an
application.
properties:
name:
description:
description: Description is a brief string description of the
Application.
type: string
icons:
description: Icons is an optional list of icons for an application.
Icon information includes the source, size, and mime type.
items:
description: ImageSpec contains information about an image used
as an icon.
properties:
size:
description: (optional) The size of the image in pixels
(e.g., 25x25).
type: string
src:
description: The source for image represented as either
an absolute URL to the image or a Data URL containing
the image. Data URLs are defined in RFC 2397.
type: string
type:
description: (optional) The mine type of the image (e.g.,
"image/png").
type: string
required:
- src
type: object
type: array
keywords:
description: Keywords is an optional list of key words associated
with the application (e.g. MySQL, RDBMS, database).
items:
type: string
type: array
links:
description: Links are a list of descriptive URLs intended to
be used to surface additional documentation, dashboards, etc.
items:
description: Link contains information about an URL to surface
documentation, dashboards, etc.
properties:
description:
description: Description is human readable content explaining
the purpose of the link.
type: string
url:
description: Url typically points at a website address.
type: string
type: object
type: array
maintainers:
description: Maintainers is an optional list of maintainers of
the application. The maintainers in this list maintain the the
source code, images, and package for the application.
items:
description: ContactData contains information about an individual
or organization.
properties:
email:
description: Email is the email address.
type: string
name:
description: Name is the descriptive name.
type: string
url:
description: Url could typically be a website address.
type: string
type: object
type: array
notes:
description: Notes contain a human readable snippets intended
as a quick start for the users of the Application. CommonMark
markdown syntax may be used for rich text representation.
type: string
owners:
description: Owners is an optional list of the owners of the installed
application. The owners of the application should be contacted
in the event of a planned or unplanned disruption affecting
the application.
items:
description: ContactData contains information about an individual
or organization.
properties:
email:
description: Email is the email address.
type: string
name:
description: Name is the descriptive name.
type: string
url:
description: Url could typically be a website address.
type: string
type: object
type: array
type:
description: Type is the type of the application (e.g. WordPress,
MySQL, Cassandra).
type: string
value:
version:
description: Version is an optional version indicator for the
Application.
type: string
valueFrom:
properties:
configMapKeyRef:
properties:
apiVersion:
type: object
info:
description: Info contains human readable key,value pairs for the
Application.
items:
description: InfoItem is a human readable key,value pair containing
important information about how to access the Application.
properties:
name:
description: Name is a human readable title for this piece of
information.
type: string
type:
description: Type of the value for this InfoItem.
type: string
value:
description: Value is human readable content.
type: string
valueFrom:
description: ValueFrom defines a reference to derive the value
from another source.
properties:
configMapKeyRef:
description: Selects a key of a ConfigMap.
properties:
apiVersion:
description: API version of the referent.
type: string
fieldPath:
description: 'If referring to a piece of an object instead
of an entire object, this string should contain a
valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
For example, if the object reference is to a container
within a pod, this would take on a value like: "spec.containers{name}"
(where "name" refers to the name of the container
that triggered the event) or if no container name
is specified "spec.containers[2]" (container with
index 2 in this pod). This syntax is chosen only to
have some well-defined way of referencing a part of
an object. TODO: this design is not final and this
field is subject to change in the future.'
type: string
key:
description: The key to select.
type: string
kind:
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type: string
namespace:
description: 'Namespace of the referent. More info:
https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type: string
resourceVersion:
description: 'Specific resourceVersion to which this
reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
type: string
uid:
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
type: string
type: object
ingressRef:
description: Select an Ingress.
properties:
apiVersion:
description: API version of the referent.
type: string
fieldPath:
description: 'If referring to a piece of an object instead
of an entire object, this string should contain a
valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
For example, if the object reference is to a container
within a pod, this would take on a value like: "spec.containers{name}"
(where "name" refers to the name of the container
that triggered the event) or if no container name
is specified "spec.containers[2]" (container with
index 2 in this pod). This syntax is chosen only to
have some well-defined way of referencing a part of
an object. TODO: this design is not final and this
field is subject to change in the future.'
type: string
host:
description: The optional host to select.
type: string
kind:
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type: string
namespace:
description: 'Namespace of the referent. More info:
https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type: string
path:
description: The optional HTTP path.
type: string
protocol:
description: Protocol for the ingress
type: string
resourceVersion:
description: 'Specific resourceVersion to which this
reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
type: string
uid:
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
type: string
type: object
secretKeyRef:
description: Selects a key of a Secret.
properties:
apiVersion:
description: API version of the referent.
type: string
fieldPath:
description: 'If referring to a piece of an object instead
of an entire object, this string should contain a
valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
For example, if the object reference is to a container
within a pod, this would take on a value like: "spec.containers{name}"
(where "name" refers to the name of the container
that triggered the event) or if no container name
is specified "spec.containers[2]" (container with
index 2 in this pod). This syntax is chosen only to
have some well-defined way of referencing a part of
an object. TODO: this design is not final and this
field is subject to change in the future.'
type: string
key:
description: The key to select.
type: string
kind:
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type: string
namespace:
description: 'Namespace of the referent. More info:
https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type: string
resourceVersion:
description: 'Specific resourceVersion to which this
reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
type: string
uid:
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
type: string
type: object
serviceRef:
description: Select a Service.
properties:
apiVersion:
description: API version of the referent.
type: string
fieldPath:
description: 'If referring to a piece of an object instead
of an entire object, this string should contain a
valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
For example, if the object reference is to a container
within a pod, this would take on a value like: "spec.containers{name}"
(where "name" refers to the name of the container
that triggered the event) or if no container name
is specified "spec.containers[2]" (container with
index 2 in this pod). This syntax is chosen only to
have some well-defined way of referencing a part of
an object. TODO: this design is not final and this
field is subject to change in the future.'
type: string
kind:
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type: string
namespace:
description: 'Namespace of the referent. More info:
https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type: string
path:
description: The optional HTTP path.
type: string
port:
description: The optional port to select.
format: int32
type: integer
protocol:
description: Protocol for the service
type: string
resourceVersion:
description: 'Specific resourceVersion to which this
reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
type: string
uid:
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
type: string
type: object
type:
description: Type of source.
type: string
type: object
type: object
type: array
selector:
description: 'Selector is a label query over kinds that created by
the application. It must match the component objects'' labels. More
info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors'
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements.
The requirements are ANDed.
items:
description: A label selector requirement is a selector that
contains values, a key, and an operator that relates the key
and values.
properties:
key:
description: key is the label key that the selector applies
to.
type: string
operator:
description: operator represents a key's relationship to
a set of values. Valid operators are In, NotIn, Exists
and DoesNotExist.
type: string
values:
description: values is an array of string values. If the
operator is In or NotIn, the values array must be non-empty.
If the operator is Exists or DoesNotExist, the values
array must be empty. This array is replaced during a strategic
merge patch.
items:
type: string
fieldPath:
type: string
key:
type: string
kind:
type: string
name:
type: string
namespace:
type: string
resourceVersion:
type: string
uid:
type: string
type: object
ingressRef:
properties:
apiVersion:
type: string
fieldPath:
type: string
host:
type: string
kind:
type: string
name:
type: string
namespace:
type: string
path:
type: string
resourceVersion:
type: string
uid:
type: string
type: object
secretKeyRef:
properties:
apiVersion:
type: string
fieldPath:
type: string
key:
type: string
kind:
type: string
name:
type: string
namespace:
type: string
resourceVersion:
type: string
uid:
type: string
type: object
serviceRef:
properties:
apiVersion:
type: string
fieldPath:
type: string
kind:
type: string
name:
type: string
namespace:
type: string
path:
type: string
port:
format: int32
type: integer
resourceVersion:
type: string
uid:
type: string
type: object
type:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single
{key,value} in the matchLabels map is equivalent to an element
of matchExpressions, whose key field is "key", the operator
is "In", and the values array contains only "value". The requirements
are ANDed.
type: object
type: object
type: array
selector:
type: object
type: object
status:
properties:
components:
items:
properties:
group:
type: string
kind:
type: string
link:
type: string
name:
type: string
status:
type: string
type: object
type: array
conditions:
items:
properties:
lastTransitionTime:
format: date-time
type: string
lastUpdateTime:
format: date-time
type: string
message:
type: string
reason:
type: string
status:
type: string
type:
type: string
required:
- type
- status
type: object
type: array
observedGeneration:
format: int64
type: integer
type: object
version: v1beta1
type: object
status:
description: ApplicationStatus defines controller's the observed state
of Application
properties:
components:
description: Object status array for all matching objects
items:
description: ObjectStatus is a generic status holder for objects
properties:
group:
description: Object group
type: string
kind:
description: Kind of object
type: string
link:
description: Link to object
type: string
name:
description: Name of object
type: string
status:
description: 'Status. Values: InProgress, Ready, Unknown'
type: string
type: object
type: array
componentsReady:
description: 'ComponentsReady: status of the components in the format
ready/total'
type: string
conditions:
description: Conditions represents the latest state of the object
items:
description: Condition describes the state of an object at a certain
point.
properties:
lastTransitionTime:
description: Last time the condition transitioned from one status
to another.
format: date-time
type: string
lastUpdateTime:
description: Last time the condition was probed
format: date-time
type: string
message:
description: A human readable message indicating details about
the transition.
type: string
reason:
description: The reason for the condition's last transition.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of condition.
type: string
required:
- status
- type
type: object
type: array
observedGeneration:
description: ObservedGeneration is the most recent generation observed.
It corresponds to the Object's generation, which is updated on mutation
by the API Server.
format: int64
type: integer
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""

View File

@@ -0,0 +1,101 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: helmapplications.application.kubesphere.io
spec:
group: application.kubesphere.io
names:
kind: HelmApplication
listKind: HelmApplicationList
plural: helmapplications
shortNames:
- happ
singular: helmapplication
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .spec.name
name: application name
type: string
- jsonPath: .metadata.labels.kubesphere\.io/workspace
name: workspace
type: string
- jsonPath: .status.state
name: State
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: HelmApplication is the Schema for the helmapplications API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: HelmApplicationSpec defines the desired state of HelmApplication
properties:
abstraction:
description: info from frontend
type: string
appHome:
type: string
attachments:
description: attachments id
items:
type: string
type: array
description:
description: description from chart's description or frontend
type: string
icon:
description: The attachment id of the icon
type: string
name:
description: the name of the helm application
type: string
required:
- name
type: object
status:
description: HelmApplicationStatus defines the observed state of HelmApplication
properties:
latestVersion:
description: If this application belong to appStore, latestVersion is the the latest version of the active application version. otherwise latestVersion is the latest version of all application version
type: string
state:
description: 'the state of the helm application: draft, submitted, passed, rejected, suspended, active'
type: string
statusTime:
format: date-time
type: string
updateTime:
format: date-time
type: string
required:
- statusTime
- updateTime
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,205 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: helmapplicationversions.application.kubesphere.io
spec:
group: application.kubesphere.io
names:
kind: HelmApplicationVersion
listKind: HelmApplicationVersionList
plural: helmapplicationversions
shortNames:
- happver
singular: helmapplicationversion
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .spec.name
name: application name
type: string
- jsonPath: .status.state
name: State
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: HelmApplicationVersion is the Schema for the helmapplicationversions API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: HelmApplicationVersionSpec defines the desired state of HelmApplicationVersion
properties:
annotations:
additionalProperties:
type: string
description: Annotations are additional mappings uninterpreted by Helm, made available for inspection by other applications.
type: object
apiVersion:
description: The API Version of this chart.
type: string
appVersion:
description: The version of the application enclosed inside of this chart.
type: string
condition:
description: The condition to check to enable chart
type: string
created:
description: chart create time
format: date-time
type: string
data:
description: raw data of chart, it will !!!NOT!!! be save to etcd
format: byte
type: string
dataKey:
description: dataKey in the storage
type: string
dependencies:
description: Dependencies are a list of dependencies for a chart.
items:
description: Dependency describes a chart upon which another chart depends. Dependencies can be used to express developer intent, or to capture the state of a chart.
properties:
alias:
description: Alias usable alias to be used for the chart
type: string
condition:
description: A yaml path that resolves to a boolean, used for enabling/disabling charts (e.g. subchart1.enabled )
type: string
enabled:
description: Enabled bool determines if chart should be loaded
type: boolean
name:
description: Name is the name of the dependency. This must mach the name in the dependency's Chart.yaml.
type: string
repository:
description: The URL to the repository. Appending `index.yaml` to this string should result in a URL that can be used to fetch the repository index.
type: string
tags:
description: Tags can be used to group charts for enabling/disabling together
items:
type: string
type: array
version:
description: Version is the version (range) of this chart. A lock file will always produce a single version, while a dependency may contain a semantic version range.
type: string
required:
- name
- repository
type: object
type: array
deprecated:
description: Whether or not this chart is deprecated
type: boolean
description:
description: A one-sentence description of the chart
type: string
digest:
description: chart digest
type: string
home:
description: The URL to a relevant project page, git repo, or contact person
type: string
icon:
description: The URL to an icon file.
type: string
keywords:
description: A list of string keywords
items:
type: string
type: array
kubeVersion:
description: KubeVersion is a SemVer constraint specifying the version of Kubernetes required.
type: string
maintainers:
description: A list of name and URL/email address combinations for the maintainer(s)
items:
description: Maintainer describes a Chart maintainer.
properties:
email:
description: Email is an optional email address to contact the named maintainer
type: string
name:
description: Name is a user name or organization name
type: string
url:
description: URL is an optional URL to an address for the named maintainer
type: string
type: object
type: array
name:
description: The name of the chart
type: string
sources:
description: Source is the URL to the source code of this chart
items:
type: string
type: array
tags:
description: The tags to check to enable chart
type: string
type:
description: 'Specifies the chart type: application or library'
type: string
urls:
description: chart url
items:
type: string
type: array
version:
description: A SemVer 2 conformant version string of the chart
type: string
type: object
status:
description: HelmApplicationVersionStatus defines the observed state of HelmApplicationVersion
properties:
audit:
items:
properties:
message:
description: audit message
type: string
operator:
description: audit operator
type: string
operatorType:
type: string
state:
description: 'audit state: submitted, passed, draft, active, rejected, suspended'
type: string
time:
description: audit time
format: date-time
type: string
required:
- time
type: object
type: array
state:
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,76 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: helmcategories.application.kubesphere.io
spec:
group: application.kubesphere.io
names:
kind: HelmCategory
listKind: HelmCategoryList
plural: helmcategories
shortNames:
- hctg
singular: helmcategory
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .spec.name
name: name
type: string
- jsonPath: .status.total
name: total
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: HelmCategory is the Schema for the helmcategories API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: HelmCategorySpec defines the desired state of HelmRepo
properties:
description:
description: info from frontend
type: string
locale:
type: string
name:
description: name of the category
type: string
required:
- name
type: object
status:
properties:
total:
description: total helmapplications belong to this category
type: integer
required:
- total
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,145 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: helmreleases.application.kubesphere.io
spec:
group: application.kubesphere.io
names:
kind: HelmRelease
listKind: HelmReleaseList
plural: helmreleases
shortNames:
- hrls
singular: helmrelease
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .spec.name
name: Release Name
type: string
- jsonPath: .metadata.labels.kubesphere\.io/workspace
name: Workspace
type: string
- jsonPath: .metadata.labels.kubesphere\.io/cluster
name: Cluster
type: string
- jsonPath: .metadata.labels.kubesphere\.io/namespace
name: Namespace
type: string
- jsonPath: .status.state
name: State
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: HelmRelease is the Schema for the helmreleases API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: HelmReleaseSpec defines the desired state of HelmRelease
properties:
appId:
description: id of the helmapplication
type: string
appVerId:
description: application version id
type: string
chartAppVer:
description: appVersion from Chart.yaml
type: string
chartName:
description: The name of the chart which will be installed.
type: string
chartVersion:
description: Specify the exact chart version to install. If this is not specified, the latest version is installed
type: string
description:
description: Message got from frontend
type: string
name:
description: Name of the release
type: string
repoId:
description: id of the repo
type: string
values:
description: helm release values.yaml
format: byte
type: string
version:
description: expected release version, when this version is not equal status.version, the release need upgrade this filed should be modified when any filed of the spec modified.
type: integer
required:
- chartName
- chartVersion
- name
- version
type: object
status:
description: HelmReleaseStatus defines the observed state of HelmRelease
properties:
deployStatus:
description: deploy status list of history, which will store at most 10 state
items:
properties:
deployTime:
description: deploy time
format: date-time
type: string
message:
description: A human readable message indicating details about why the release is in this state.
type: string
state:
description: deploy state
type: string
required:
- deployTime
- state
type: object
type: array
lastDeployed:
description: last successful deploy time
format: date-time
type: string
lastUpdate:
description: last update time
format: date-time
type: string
message:
description: A human readable message indicating details about why the release is in this state.
type: string
state:
description: current state
type: string
version:
description: current release version
type: integer
required:
- state
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,142 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: helmrepos.application.kubesphere.io
spec:
group: application.kubesphere.io
names:
kind: HelmRepo
listKind: HelmRepoList
plural: helmrepos
shortNames:
- hrepo
singular: helmrepo
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .spec.name
name: name
type: string
- jsonPath: .metadata.labels.kubesphere\.io/workspace
name: Workspace
type: string
- jsonPath: .spec.url
name: url
type: string
- jsonPath: .status.state
name: State
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: HelmRepo is the Schema for the helmrepoes API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: HelmRepoSpec defines the desired state of HelmRepo
properties:
credential:
description: helm repo credential
properties:
accessKeyID:
type: string
caFile:
description: verify certificates of HTTPS-enabled servers using this CA bundle
type: string
certFile:
description: identify HTTPS client using this SSL certificate file
type: string
insecureSkipTLSVerify:
description: skip tls certificate checks for the repository, default is ture
type: boolean
keyFile:
description: identify HTTPS client using this SSL key file
type: string
password:
description: chart repository password
type: string
secretAccessKey:
type: string
username:
description: chart repository username
type: string
type: object
description:
description: chart repo description from frontend
type: string
name:
description: name of the repo
type: string
syncPeriod:
description: sync period in seconds, no sync when SyncPeriod=0, the minimum SyncPeriod is 180s
type: integer
url:
description: helm repo url
type: string
version:
description: expected repo version, when this version is not equal status.version, the repo need upgrade this filed should be modified when any filed of the spec modified.
type: integer
required:
- name
- url
type: object
status:
description: HelmRepoStatus defines the observed state of HelmRepo
properties:
data:
description: repo index
type: string
lastUpdateTime:
description: status last update time
format: date-time
type: string
state:
description: current state of the repo, successful, failed or syncing
type: string
syncState:
description: sync state list of history, which will store at most 10 state
items:
properties:
message:
description: A human readable message indicating details about why the repo is in this state.
type: string
state:
description: 'last sync state, valid state are: "failed", "success", and ""'
type: string
syncTime:
format: date-time
type: string
required:
- syncTime
type: object
type: array
version:
description: if status.version!=spec.Version, we need sync the repo now
type: integer
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,92 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: rules.auditing.kubesphere.io
spec:
group: auditing.kubesphere.io
names:
kind: Rule
listKind: RuleList
plural: rules
singular: rule
scope: Namespaced
validation:
openAPIV3Schema:
description: Rule is the Schema for the rules API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: AuditRuleSpec defines the desired state of Rule
properties:
rules:
items:
properties:
alias:
description: This effective When the rule type is alias
type: string
condition:
description: Rule condition This effective When the rule type
is rule
type: string
desc:
description: Rule describe
type: string
enable:
description: Is the rule enable
type: boolean
list:
description: This effective When the rule type is list
items:
type: string
type: array
macro:
description: This effective When the rule type is macro
type: string
name:
description: Rule name
type: string
output:
description: The output formater of message which send to user
type: string
priority:
description: Rule priority, DEBUG, INFO, WARNING
type: string
type:
description: Rule type, rule, macro,list,alias
type: string
required:
- enable
type: object
type: array
type: object
status:
description: AuditRuleStatus defines the observed state of Rule
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,915 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: webhooks.auditing.kubesphere.io
spec:
group: auditing.kubesphere.io
names:
kind: Webhook
listKind: WebhookList
plural: webhooks
singular: webhook
scope: Namespaced
validation:
openAPIV3Schema:
description: Webhook is the Schema for the webhooks API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: WebhookSpec defines the desired state of Webhook
properties:
affinity:
description: If specified, the pod's scheduling constraints
properties:
nodeAffinity:
description: Describes node affinity scheduling rules for the pod.
properties:
preferredDuringSchedulingIgnoredDuringExecution:
description: The scheduler will prefer to schedule pods to nodes
that satisfy the affinity expressions specified by this field,
but it may choose a node that violates one or more of the
expressions. The node that is most preferred is the one with
the greatest sum of weights, i.e. for each node that meets
all of the scheduling requirements (resource request, requiredDuringScheduling
affinity expressions, etc.), compute a sum by iterating through
the elements of this field and adding "weight" to the sum
if the node matches the corresponding matchExpressions; the
node(s) with the highest sum are the most preferred.
items:
description: An empty preferred scheduling term matches all
objects with implicit weight 0 (i.e. it's a no-op). A null
preferred scheduling term matches no objects (i.e. is also
a no-op).
properties:
preference:
description: A node selector term, associated with the
corresponding weight.
properties:
matchExpressions:
description: A list of node selector requirements
by node's labels.
items:
description: A node selector requirement is a selector
that contains values, a key, and an operator that
relates the key and values.
properties:
key:
description: The label key that the selector
applies to.
type: string
operator:
description: Represents a key's relationship
to a set of values. Valid operators are In,
NotIn, Exists, DoesNotExist. Gt, and Lt.
type: string
values:
description: An array of string values. If the
operator is In or NotIn, the values array
must be non-empty. If the operator is Exists
or DoesNotExist, the values array must be
empty. If the operator is Gt or Lt, the values
array must have a single element, which will
be interpreted as an integer. This array is
replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchFields:
description: A list of node selector requirements
by node's fields.
items:
description: A node selector requirement is a selector
that contains values, a key, and an operator that
relates the key and values.
properties:
key:
description: The label key that the selector
applies to.
type: string
operator:
description: Represents a key's relationship
to a set of values. Valid operators are In,
NotIn, Exists, DoesNotExist. Gt, and Lt.
type: string
values:
description: An array of string values. If the
operator is In or NotIn, the values array
must be non-empty. If the operator is Exists
or DoesNotExist, the values array must be
empty. If the operator is Gt or Lt, the values
array must have a single element, which will
be interpreted as an integer. This array is
replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
type: object
weight:
description: Weight associated with matching the corresponding
nodeSelectorTerm, in the range 1-100.
format: int32
type: integer
required:
- preference
- weight
type: object
type: array
requiredDuringSchedulingIgnoredDuringExecution:
description: If the affinity requirements specified by this
field are not met at scheduling time, the pod will not be
scheduled onto the node. If the affinity requirements specified
by this field cease to be met at some point during pod execution
(e.g. due to an update), the system may or may not try to
eventually evict the pod from its node.
properties:
nodeSelectorTerms:
description: Required. A list of node selector terms. The
terms are ORed.
items:
description: A null or empty node selector term matches
no objects. The requirements of them are ANDed. The
TopologySelectorTerm type implements a subset of the
NodeSelectorTerm.
properties:
matchExpressions:
description: A list of node selector requirements
by node's labels.
items:
description: A node selector requirement is a selector
that contains values, a key, and an operator that
relates the key and values.
properties:
key:
description: The label key that the selector
applies to.
type: string
operator:
description: Represents a key's relationship
to a set of values. Valid operators are In,
NotIn, Exists, DoesNotExist. Gt, and Lt.
type: string
values:
description: An array of string values. If the
operator is In or NotIn, the values array
must be non-empty. If the operator is Exists
or DoesNotExist, the values array must be
empty. If the operator is Gt or Lt, the values
array must have a single element, which will
be interpreted as an integer. This array is
replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchFields:
description: A list of node selector requirements
by node's fields.
items:
description: A node selector requirement is a selector
that contains values, a key, and an operator that
relates the key and values.
properties:
key:
description: The label key that the selector
applies to.
type: string
operator:
description: Represents a key's relationship
to a set of values. Valid operators are In,
NotIn, Exists, DoesNotExist. Gt, and Lt.
type: string
values:
description: An array of string values. If the
operator is In or NotIn, the values array
must be non-empty. If the operator is Exists
or DoesNotExist, the values array must be
empty. If the operator is Gt or Lt, the values
array must have a single element, which will
be interpreted as an integer. This array is
replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
type: object
type: array
required:
- nodeSelectorTerms
type: object
type: object
podAffinity:
description: Describes pod affinity scheduling rules (e.g. co-locate
this pod in the same node, zone, etc. as some other pod(s)).
properties:
preferredDuringSchedulingIgnoredDuringExecution:
description: The scheduler will prefer to schedule pods to nodes
that satisfy the affinity expressions specified by this field,
but it may choose a node that violates one or more of the
expressions. The node that is most preferred is the one with
the greatest sum of weights, i.e. for each node that meets
all of the scheduling requirements (resource request, requiredDuringScheduling
affinity expressions, etc.), compute a sum by iterating through
the elements of this field and adding "weight" to the sum
if the node has pods which matches the corresponding podAffinityTerm;
the node(s) with the highest sum are the most preferred.
items:
description: The weights of all of the matched WeightedPodAffinityTerm
fields are added per-node to find the most preferred node(s)
properties:
podAffinityTerm:
description: Required. A pod affinity term, associated
with the corresponding weight.
properties:
labelSelector:
description: A label query over a set of resources,
in this case pods.
properties:
matchExpressions:
description: matchExpressions is a list of label
selector requirements. The requirements are
ANDed.
items:
description: A label selector requirement is
a selector that contains values, a key, and
an operator that relates the key and values.
properties:
key:
description: key is the label key that the
selector applies to.
type: string
operator:
description: operator represents a key's
relationship to a set of values. Valid
operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string
values. If the operator is In or NotIn,
the values array must be non-empty. If
the operator is Exists or DoesNotExist,
the values array must be empty. This array
is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value}
pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions,
whose key field is "key", the operator is "In",
and the values array contains only "value".
The requirements are ANDed.
type: object
type: object
namespaces:
description: namespaces specifies which namespaces
the labelSelector applies to (matches against);
null or empty list means "this pod's namespace"
items:
type: string
type: array
topologyKey:
description: This pod should be co-located (affinity)
or not co-located (anti-affinity) with the pods
matching the labelSelector in the specified namespaces,
where co-located is defined as running on a node
whose value of the label with key topologyKey matches
that of any node on which any of the selected pods
is running. Empty topologyKey is not allowed.
type: string
required:
- topologyKey
type: object
weight:
description: weight associated with matching the corresponding
podAffinityTerm, in the range 1-100.
format: int32
type: integer
required:
- podAffinityTerm
- weight
type: object
type: array
requiredDuringSchedulingIgnoredDuringExecution:
description: If the affinity requirements specified by this
field are not met at scheduling time, the pod will not be
scheduled onto the node. If the affinity requirements specified
by this field cease to be met at some point during pod execution
(e.g. due to a pod label update), the system may or may not
try to eventually evict the pod from its node. When there
are multiple elements, the lists of nodes corresponding to
each podAffinityTerm are intersected, i.e. all terms must
be satisfied.
items:
description: Defines a set of pods (namely those matching
the labelSelector relative to the given namespace(s)) that
this pod should be co-located (affinity) or not co-located
(anti-affinity) with, where co-located is defined as running
on a node whose value of the label with key <topologyKey>
matches that of any node on which a pod of the set of pods
is running
properties:
labelSelector:
description: A label query over a set of resources, in
this case pods.
properties:
matchExpressions:
description: matchExpressions is a list of label selector
requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector
that contains values, a key, and an operator that
relates the key and values.
properties:
key:
description: key is the label key that the selector
applies to.
type: string
operator:
description: operator represents a key's relationship
to a set of values. Valid operators are In,
NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values.
If the operator is In or NotIn, the values
array must be non-empty. If the operator is
Exists or DoesNotExist, the values array must
be empty. This array is replaced during a
strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs.
A single {key,value} in the matchLabels map is equivalent
to an element of matchExpressions, whose key field
is "key", the operator is "In", and the values array
contains only "value". The requirements are ANDed.
type: object
type: object
namespaces:
description: namespaces specifies which namespaces the
labelSelector applies to (matches against); null or
empty list means "this pod's namespace"
items:
type: string
type: array
topologyKey:
description: This pod should be co-located (affinity)
or not co-located (anti-affinity) with the pods matching
the labelSelector in the specified namespaces, where
co-located is defined as running on a node whose value
of the label with key topologyKey matches that of any
node on which any of the selected pods is running. Empty
topologyKey is not allowed.
type: string
required:
- topologyKey
type: object
type: array
type: object
podAntiAffinity:
description: Describes pod anti-affinity scheduling rules (e.g.
avoid putting this pod in the same node, zone, etc. as some other
pod(s)).
properties:
preferredDuringSchedulingIgnoredDuringExecution:
description: The scheduler will prefer to schedule pods to nodes
that satisfy the anti-affinity expressions specified by this
field, but it may choose a node that violates one or more
of the expressions. The node that is most preferred is the
one with the greatest sum of weights, i.e. for each node that
meets all of the scheduling requirements (resource request,
requiredDuringScheduling anti-affinity expressions, etc.),
compute a sum by iterating through the elements of this field
and adding "weight" to the sum if the node has pods which
matches the corresponding podAffinityTerm; the node(s) with
the highest sum are the most preferred.
items:
description: The weights of all of the matched WeightedPodAffinityTerm
fields are added per-node to find the most preferred node(s)
properties:
podAffinityTerm:
description: Required. A pod affinity term, associated
with the corresponding weight.
properties:
labelSelector:
description: A label query over a set of resources,
in this case pods.
properties:
matchExpressions:
description: matchExpressions is a list of label
selector requirements. The requirements are
ANDed.
items:
description: A label selector requirement is
a selector that contains values, a key, and
an operator that relates the key and values.
properties:
key:
description: key is the label key that the
selector applies to.
type: string
operator:
description: operator represents a key's
relationship to a set of values. Valid
operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string
values. If the operator is In or NotIn,
the values array must be non-empty. If
the operator is Exists or DoesNotExist,
the values array must be empty. This array
is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value}
pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions,
whose key field is "key", the operator is "In",
and the values array contains only "value".
The requirements are ANDed.
type: object
type: object
namespaces:
description: namespaces specifies which namespaces
the labelSelector applies to (matches against);
null or empty list means "this pod's namespace"
items:
type: string
type: array
topologyKey:
description: This pod should be co-located (affinity)
or not co-located (anti-affinity) with the pods
matching the labelSelector in the specified namespaces,
where co-located is defined as running on a node
whose value of the label with key topologyKey matches
that of any node on which any of the selected pods
is running. Empty topologyKey is not allowed.
type: string
required:
- topologyKey
type: object
weight:
description: weight associated with matching the corresponding
podAffinityTerm, in the range 1-100.
format: int32
type: integer
required:
- podAffinityTerm
- weight
type: object
type: array
requiredDuringSchedulingIgnoredDuringExecution:
description: If the anti-affinity requirements specified by
this field are not met at scheduling time, the pod will not
be scheduled onto the node. If the anti-affinity requirements
specified by this field cease to be met at some point during
pod execution (e.g. due to a pod label update), the system
may or may not try to eventually evict the pod from its node.
When there are multiple elements, the lists of nodes corresponding
to each podAffinityTerm are intersected, i.e. all terms must
be satisfied.
items:
description: Defines a set of pods (namely those matching
the labelSelector relative to the given namespace(s)) that
this pod should be co-located (affinity) or not co-located
(anti-affinity) with, where co-located is defined as running
on a node whose value of the label with key <topologyKey>
matches that of any node on which a pod of the set of pods
is running
properties:
labelSelector:
description: A label query over a set of resources, in
this case pods.
properties:
matchExpressions:
description: matchExpressions is a list of label selector
requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector
that contains values, a key, and an operator that
relates the key and values.
properties:
key:
description: key is the label key that the selector
applies to.
type: string
operator:
description: operator represents a key's relationship
to a set of values. Valid operators are In,
NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values.
If the operator is In or NotIn, the values
array must be non-empty. If the operator is
Exists or DoesNotExist, the values array must
be empty. This array is replaced during a
strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs.
A single {key,value} in the matchLabels map is equivalent
to an element of matchExpressions, whose key field
is "key", the operator is "In", and the values array
contains only "value". The requirements are ANDed.
type: object
type: object
namespaces:
description: namespaces specifies which namespaces the
labelSelector applies to (matches against); null or
empty list means "this pod's namespace"
items:
type: string
type: array
topologyKey:
description: This pod should be co-located (affinity)
or not co-located (anti-affinity) with the pods matching
the labelSelector in the specified namespaces, where
co-located is defined as running on a node whose value
of the label with key topologyKey matches that of any
node on which any of the selected pods is running. Empty
topologyKey is not allowed.
type: string
required:
- topologyKey
type: object
type: array
type: object
type: object
args:
description: Arguments to the entrypoint.. It will be appended to the
args and replace the default value.
items:
type: string
type: array
auditLevel:
description: 'The Level that all requests are recorded at. available
options: None, Metadata, Request, RequestResponse default: Metadata'
type: string
auditSinkPolicy:
description: AuditSinkPolicy is a rule selector, only the rule matched
this selector will be taked effect.
properties:
alertingRuleSelector:
description: A label selector is a label query over a set of resources.
The result of matchLabels and matchExpressions are ANDed. An empty
label selector matches all objects. A null label selector matches
no objects.
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements.
The requirements are ANDed.
items:
description: A label selector requirement is a selector that
contains values, a key, and an operator that relates the
key and values.
properties:
key:
description: key is the label key that the selector applies
to.
type: string
operator:
description: operator represents a key's relationship
to a set of values. Valid operators are In, NotIn, Exists
and DoesNotExist.
type: string
values:
description: values is an array of string values. If the
operator is In or NotIn, the values array must be non-empty.
If the operator is Exists or DoesNotExist, the values
array must be empty. This array is replaced during a
strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single
{key,value} in the matchLabels map is equivalent to an element
of matchExpressions, whose key field is "key", the operator
is "In", and the values array contains only "value". The requirements
are ANDed.
type: object
type: object
archivingRuleSelector:
description: A label selector is a label query over a set of resources.
The result of matchLabels and matchExpressions are ANDed. An empty
label selector matches all objects. A null label selector matches
no objects.
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements.
The requirements are ANDed.
items:
description: A label selector requirement is a selector that
contains values, a key, and an operator that relates the
key and values.
properties:
key:
description: key is the label key that the selector applies
to.
type: string
operator:
description: operator represents a key's relationship
to a set of values. Valid operators are In, NotIn, Exists
and DoesNotExist.
type: string
values:
description: values is an array of string values. If the
operator is In or NotIn, the values array must be non-empty.
If the operator is Exists or DoesNotExist, the values
array must be empty. This array is replaced during a
strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single
{key,value} in the matchLabels map is equivalent to an element
of matchExpressions, whose key field is "key", the operator
is "In", and the values array contains only "value". The requirements
are ANDed.
type: object
type: object
type: object
auditType:
description: Audit type, static or dynamic.
type: string
image:
description: The webhook docker image name.
type: string
imagePullPolicy:
description: 'Image pull policy. One of Always, Never, IfNotPresent.
Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images'
type: string
imagePullSecrets:
description: 'ImagePullSecrets is an optional list of references to
secrets in the same namespace to use for pulling any of the images
used by this PodSpec. If specified, these secrets will be passed to
individual puller implementations for them to use. For example, in
the case of docker, only DockerConfig type secrets are honored. More
info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod'
items:
description: LocalObjectReference contains enough information to let
you locate the referenced object inside the same namespace.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
type: array
k8sAuditingEnabled:
description: K8s auditing is enabled or not.
type: boolean
nodeSelector:
additionalProperties:
type: string
description: 'NodeSelector is a selector which must be true for the
pod to fit on a node. Selector which must match a node''s labels for
the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/'
type: object
priority:
description: Rule priority, DEBUG < INFO < WARNING Audit events will
be stored only when the priority of the audit rule matching the audit
event is greater than this.
type: string
receivers:
description: ' Receiver contains the information to make a connection
with the alertmanager'
items:
description: Receiver config which received the audit alert
properties:
config:
description: ClientConfig holds the connection parameters for
the webhook
properties:
caBundle:
description: '`caBundle` is a PEM encoded CA bundle which
will be used to validate the webhook''s server certificate.
If unspecified, system trust roots on the apiserver are
used.'
format: byte
type: string
service:
description: "`service` is a reference to the service for
this webhook. Either `service` or `url` must be specified.
\n If the webhook is running within the cluster, then you
should use `service`."
properties:
name:
description: '`name` is the name of the service. Required'
type: string
namespace:
description: '`namespace` is the namespace of the service.
Required'
type: string
path:
description: '`path` is an optional URL path which will
be sent in any request to this service.'
type: string
port:
description: If specified, the port on the service that
hosting webhook. Default to 443 for backward compatibility.
`port` should be a valid port number (1-65535, inclusive).
format: int32
type: integer
required:
- name
- namespace
type: object
url:
description: "`url` gives the location of the webhook, in
standard URL form (`scheme://host:port/path`). Exactly one
of `url` or `service` must be specified. \n The `host` should
not refer to a service running in the cluster; use the `service`
field instead. The host might be resolved via external DNS
in some apiservers (e.g., `kube-apiserver` cannot resolve
in-cluster DNS as that would be a layering violation). `host`
may also be an IP address. \n Please note that using `localhost`
or `127.0.0.1` as a `host` is risky unless you take great
care to run this webhook on all hosts which run an apiserver
which might need to make calls to this webhook. Such installs
are likely to be non-portable, i.e., not easy to turn up
in a new cluster. \n The scheme must be \"https\"; the URL
must begin with \"https://\". \n A path is optional, and
if present may be any string permissible in a URL. You may
use the path to pass an arbitrary string to the webhook,
for example, a cluster identifier. \n Attempting to use
a user or basic auth e.g. \"user:password@\" is not allowed.
Fragments (\"#...\") and query parameters (\"?...\") are
not allowed, either."
type: string
type: object
name:
description: Receiver name
type: string
type:
description: Receiver type, alertmanager or webhook
type: string
type: object
type: array
replicas:
description: Number of desired pods. This is a pointer to distinguish
between explicit zero and not specified. Defaults to 1.
format: int32
type: integer
resources:
description: 'Compute Resources required by this container. Cannot be
updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
properties:
limits:
additionalProperties:
type: string
description: 'Limits describes the maximum amount of compute resources
allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
type: object
requests:
additionalProperties:
type: string
description: 'Requests describes the minimum amount of compute resources
required. If Requests is omitted for a container, it defaults
to Limits if that is explicitly specified, otherwise to an implementation-defined
value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
type: object
type: object
tolerations:
description: If specified, the pod's tolerations.
items:
description: The pod this Toleration is attached to tolerates any
taint that matches the triple <key,value,effect> using the matching
operator <operator>.
properties:
effect:
description: Effect indicates the taint effect to match. Empty
means match all taint effects. When specified, allowed values
are NoSchedule, PreferNoSchedule and NoExecute.
type: string
key:
description: Key is the taint key that the toleration applies
to. Empty means match all taint keys. If the key is empty, operator
must be Exists; this combination means to match all values and
all keys.
type: string
operator:
description: Operator represents a key's relationship to the value.
Valid operators are Exists and Equal. Defaults to Equal. Exists
is equivalent to wildcard for value, so that a pod can tolerate
all taints of a particular category.
type: string
tolerationSeconds:
description: TolerationSeconds represents the period of time the
toleration (which must be of effect NoExecute, otherwise this
field is ignored) tolerates the taint. By default, it is not
set, which means tolerate the taint forever (do not evict).
Zero and negative values will be treated as 0 (evict immediately)
by the system.
format: int64
type: integer
value:
description: Value is the taint value the toleration matches to.
If the operator is Exists, the value should be empty, otherwise
just a regular string.
type: string
type: object
type: array
type: object
status:
description: WebhookStatus defines the observed state of Webhook
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,173 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: clusters.cluster.kubesphere.io
spec:
additionalPrinterColumns:
- JSONPath: .spec.joinFederation
name: Federated
type: boolean
- JSONPath: .spec.provider
name: Provider
type: string
- JSONPath: .spec.enable
name: Active
type: boolean
- JSONPath: .status.kubernetesVersion
name: Version
type: string
group: cluster.kubesphere.io
names:
kind: Cluster
listKind: ClusterList
plural: clusters
singular: cluster
scope: Cluster
subresources: {}
validation:
openAPIV3Schema:
description: Cluster is the schema for the clusters API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
connection:
description: Connection holds info to connect to the member cluster
properties:
kubeconfig:
description: KubeConfig content used to connect to cluster api server
Should provide this field explicitly if connection type is direct.
Will be populated by ks-proxy if connection type is proxy.
format: byte
type: string
kubernetesAPIEndpoint:
description: 'Kubernetes API Server endpoint. Example: https://10.10.0.1:6443
Should provide this field explicitly if connection type is direct.
Will be populated by ks-apiserver if connection type is proxy.'
type: string
kubernetesAPIServerPort:
description: KubeAPIServerPort is the port which listens for forwarding
kube-apiserver traffic Only applicable when connection type is
proxy.
type: integer
kubesphereAPIEndpoint:
description: 'KubeSphere API Server endpoint. Example: http://10.10.0.11:8080
Should provide this field explicitly if connection type is direct.
Will be populated by ks-apiserver if connection type is proxy.'
type: string
kubesphereAPIServerPort:
description: KubeSphereAPIServerPort is the port which listens for
forwarding kubesphere apigateway traffic Only applicable when
connection type is proxy.
type: integer
token:
description: Token used by agents of member cluster to connect to
host cluster proxy. This field is populated by apiserver only
if connection type is proxy.
type: string
type:
description: type defines how host cluster will connect to host
cluster ConnectionTypeDirect means direct connection, this requires kubeconfig
and kubesphere apiserver endpoint provided ConnectionTypeProxy
means using kubesphere proxy, no kubeconfig or kubesphere apiserver
endpoint required
type: string
type: object
enable:
description: Desired state of the cluster
type: boolean
joinFederation:
description: Join cluster as a kubefed cluster
type: boolean
provider:
description: Provider of the cluster, this field is just for description
type: string
type: object
status:
properties:
conditions:
description: Represents the latest available observations of a cluster's
current state.
items:
properties:
lastTransitionTime:
description: Last time the condition transitioned from one status
to another.
format: date-time
type: string
lastUpdateTime:
description: The last time this condition was updated.
format: date-time
type: string
message:
description: A human readable message indicating details about
the transition.
type: string
reason:
description: The reason for the condition's last transition.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of the condition
type: string
required:
- status
- type
type: object
type: array
configz:
additionalProperties:
type: boolean
description: Configz is status of components enabled in the member cluster.
This is synchronized with member cluster every amount of time, like
5 minutes.
type: object
kubernetesVersion:
description: GitVersion of the kubernetes cluster, this field is populated
by cluster controller
type: string
nodeCount:
description: Count of the kubernetes cluster nodes This field may not
reflect the instant status of the cluster.
type: integer
region:
description: Region is the name of the region in which all of the nodes
in the cluster exist. e.g. 'us-east1'.
type: string
zones:
description: Zones are the names of availability zones in which the
nodes of the cluster exist, e.g. 'us-east1-a'.
items:
type: string
type: array
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,59 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: devopsprojects.devops.kubesphere.io
spec:
group: devops.kubesphere.io
names:
categories:
- devops
kind: DevOpsProject
listKind: DevOpsProjectList
plural: devopsprojects
singular: devopsproject
scope: Cluster
validation:
openAPIV3Schema:
description: DevOpsProject is the Schema for the devopsprojects API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: DevOpsProjectSpec defines the desired state of DevOpsProject
type: object
status:
description: DevOpsProjectStatus defines the observed state of DevOpsProject
properties:
adminNamespace:
description: 'INSERT ADDITIONAL STATUS FIELD - define observed state
of cluster Important: Run "make" to regenerate code after modifying
this file'
type: string
type: object
type: object
version: v1alpha3
versions:
- name: v1alpha3
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,307 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: pipelines.devops.kubesphere.io
spec:
group: devops.kubesphere.io
names:
kind: Pipeline
listKind: PipelineList
plural: pipelines
singular: pipeline
scope: Namespaced
validation:
openAPIV3Schema:
description: Pipeline is the Schema for the pipelines API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: PipelineSpec defines the desired state of Pipeline
properties:
multi_branch_pipeline:
properties:
bitbucket_server_source:
properties:
api_uri:
type: string
credential_id:
type: string
discover_branches:
type: integer
discover_pr_from_forks:
properties:
strategy:
type: integer
trust:
type: integer
type: object
discover_pr_from_origin:
type: integer
discover_tags:
type: boolean
git_clone_option:
properties:
depth:
type: integer
shallow:
type: boolean
timeout:
type: integer
type: object
owner:
type: string
regex_filter:
type: string
repo:
type: string
scm_id:
type: string
type: object
description:
type: string
discarder:
properties:
days_to_keep:
type: string
num_to_keep:
type: string
type: object
git_source:
properties:
credential_id:
type: string
discover_branches:
type: boolean
discover_tags:
type: boolean
git_clone_option:
properties:
depth:
type: integer
shallow:
type: boolean
timeout:
type: integer
type: object
regex_filter:
type: string
scm_id:
type: string
url:
type: string
type: object
github_source:
description: GithubSource and BitbucketServerSource have the same
structure, but we don't use one due to crd errors
properties:
api_uri:
type: string
credential_id:
type: string
discover_branches:
type: integer
discover_pr_from_forks:
properties:
strategy:
type: integer
trust:
type: integer
type: object
discover_pr_from_origin:
type: integer
discover_tags:
type: boolean
git_clone_option:
properties:
depth:
type: integer
shallow:
type: boolean
timeout:
type: integer
type: object
owner:
type: string
regex_filter:
type: string
repo:
type: string
scm_id:
type: string
type: object
gitlab_source:
properties:
api_uri:
type: string
credential_id:
type: string
discover_branches:
type: integer
discover_pr_from_forks:
properties:
strategy:
type: integer
trust:
type: integer
type: object
discover_pr_from_origin:
type: integer
discover_tags:
type: boolean
git_clone_option:
properties:
depth:
type: integer
shallow:
type: boolean
timeout:
type: integer
type: object
owner:
type: string
regex_filter:
type: string
repo:
type: string
scm_id:
type: string
server_name:
type: string
type: object
multibranch_job_trigger:
properties:
create_action_job_to_trigger:
type: string
delete_action_job_to_trigger:
type: string
type: object
name:
type: string
script_path:
type: string
single_svn_source:
properties:
credential_id:
type: string
remote:
type: string
scm_id:
type: string
type: object
source_type:
type: string
svn_source:
properties:
credential_id:
type: string
excludes:
type: string
includes:
type: string
remote:
type: string
scm_id:
type: string
type: object
timer_trigger:
properties:
cron:
description: user in no scm job
type: string
interval:
description: use in multi-branch job
type: string
type: object
required:
- name
- script_path
- source_type
type: object
pipeline:
properties:
description:
type: string
disable_concurrent:
type: boolean
discarder:
properties:
days_to_keep:
type: string
num_to_keep:
type: string
type: object
jenkinsfile:
type: string
name:
type: string
parameters:
items:
properties:
default_value:
type: string
description:
type: string
name:
type: string
type:
type: string
required:
- name
- type
type: object
type: array
remote_trigger:
properties:
token:
type: string
type: object
timer_trigger:
properties:
cron:
description: user in no scm job
type: string
interval:
description: use in multi-branch job
type: string
type: object
required:
- name
type: object
type:
description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
Important: Run "make" to regenerate code after modifying this file'
type: string
required:
- type
type: object
status:
description: PipelineStatus defines the observed state of Pipeline
type: object
type: object
version: v1alpha3
versions:
- name: v1alpha3
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,86 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: s2ibinaries.devops.kubesphere.io
spec:
additionalPrinterColumns:
- JSONPath: .spec.fileName
name: FileName
type: string
- JSONPath: .spec.md5
name: MD5
type: string
- JSONPath: .spec.size
name: Size
type: string
- JSONPath: .status.phase
name: Phase
type: string
group: devops.kubesphere.io
names:
kind: S2iBinary
listKind: S2iBinaryList
plural: s2ibinaries
singular: s2ibinary
scope: Namespaced
subresources: {}
validation:
openAPIV3Schema:
description: S2iBinary is the Schema for the s2ibinaries API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: S2iBinarySpec defines the desired state of S2iBinary
properties:
downloadURL:
description: DownloadURL in KubeSphere
type: string
fileName:
description: FileName is filename of binary
type: string
md5:
description: MD5 is Binary's MD5 Hash
type: string
size:
description: Size is the file size of file
type: string
uploadTimeStamp:
description: UploadTime is last upload time
format: date-time
type: string
type: object
status:
description: S2iBinaryStatus defines the observed state of S2iBinary
properties:
phase:
description: Phase is status of S2iBinary . Possible value is "Ready","UnableToDownload"
type: string
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,578 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: s2ibuilders.devops.kubesphere.io
spec:
additionalPrinterColumns:
- JSONPath: .status.runCount
name: RunCount
type: integer
- JSONPath: .status.lastRunState
name: LastRunState
type: string
- JSONPath: .status.lastRunName
name: LastRunName
type: string
- JSONPath: .status.lastRunStartTime
name: LastRunStartTime
type: date
group: devops.kubesphere.io
names:
kind: S2iBuilder
listKind: S2iBuilderList
plural: s2ibuilders
shortNames:
- s2ib
singular: s2ibuilder
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
description: S2iBuilder is the Schema for the s2ibuilders API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: S2iBuilderSpec defines the desired state of S2iBuilder
properties:
config:
description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
Important: Run "make" to regenerate code after modifying this file'
properties:
addHost:
description: AddHost Add a line to /etc/hosts for test purpose or
private use in LAN. Its format is host:IP,muliple hosts can be
added by using multiple --add-host
items:
type: string
type: array
asDockerfile:
description: AsDockerfile indicates the path where the Dockerfile
should be written instead of building a new image.
type: string
assembleUser:
description: AssembleUser specifies the user to run the assemble
script in container
type: string
blockOnBuild:
description: BlockOnBuild prevents s2i from performing a docker
build operation if one is necessary to execute ONBUILD commands,
or to layer source code into the container for images that don't
have a tar binary available, if the image contains ONBUILD commands
that would be executed.
type: boolean
branchExpression:
description: Regular expressions, ignoring names that do not match
the provided regular expression
type: string
buildVolumes:
description: BuildVolumes specifies a list of volumes to mount to
container running the build.
items:
type: string
type: array
builderBaseImageVersion:
description: BuilderBaseImageVersion provides optional version information
about the builder base image.
type: string
builderImage:
description: BuilderImage describes which image is used for building
the result images.
type: string
builderImageVersion:
description: BuilderImageVersion provides optional version information
about the builder image.
type: string
builderPullPolicy:
description: BuilderPullPolicy specifies when to pull the builder
image
type: string
callbackUrl:
description: CallbackURL is a URL which is called upon successful
build to inform about that fact.
type: string
cgroupLimits:
description: CGroupLimits describes the cgroups limits that will
be applied to any containers run by s2i.
properties:
cpuPeriod:
format: int64
type: integer
cpuQuota:
format: int64
type: integer
cpuShares:
format: int64
type: integer
memoryLimitBytes:
format: int64
type: integer
memorySwap:
format: int64
type: integer
parent:
type: string
required:
- cpuPeriod
- cpuQuota
- cpuShares
- memoryLimitBytes
- memorySwap
- parent
type: object
contextDir:
description: Specify a relative directory inside the application
repository that should be used as a root directory for the application.
type: string
description:
description: Description is a result image description label. The
default is no description.
type: string
destination:
description: Destination specifies a location where the untar operation
will place its artifacts.
type: string
displayName:
description: DisplayName is a result image display-name label. This
defaults to the output image name.
type: string
dockerConfig:
description: DockerConfig describes how to access host docker daemon.
properties:
caFile:
description: CAFile is the certificate authority file path for
a TLS connection
type: string
certFile:
description: CertFile is the certificate file path for a TLS
connection
type: string
endPoint:
description: Endpoint is the docker network endpoint or socket
type: string
keyFile:
description: KeyFile is the key file path for a TLS connection
type: string
tlsVerify:
description: TLSVerify indicates if TLS peer must be verified
type: boolean
useTLS:
description: UseTLS indicates if TLS must be used
type: boolean
required:
- caFile
- certFile
- endPoint
- keyFile
- tlsVerify
- useTLS
type: object
dockerNetworkMode:
description: DockerNetworkMode is used to set the docker network
setting to --net=container:<id> when the builder is invoked from
a container.
type: string
dropCapabilities:
description: DropCapabilities contains a list of capabilities to
drop when executing containers
items:
type: string
type: array
environment:
description: Environment is a map of environment variables to be
passed to the image.
items:
description: EnvironmentSpec specifies a single environment variable.
properties:
name:
type: string
value:
type: string
required:
- name
- value
type: object
type: array
excludeRegExp:
description: ExcludeRegExp contains a string representation of the
regular expression desired for deciding which files to exclude
from the tar stream
type: string
export:
description: Export Push the result image to specify image registry
in tag
type: boolean
gitSecretRef:
description: GitSecretRef is the BasicAuth Secret of Git Clone
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
hasOnBuild:
description: HasOnBuild will be set to true if the builder image
contains ONBUILD instructions
type: boolean
imageName:
description: ImageName Contains the registry address and reponame,
tag should set by field tag alone
type: string
imageScriptsUrl:
description: ImageScriptsURL is the default location to find the
assemble/run scripts for a builder image. This url can be a reference
within the builder image if the scheme is specified as image://
type: string
imageWorkDir:
description: ImageWorkDir is the default working directory for the
builder image.
type: string
incremental:
description: Incremental describes whether to try to perform incremental
build.
type: boolean
incrementalAuthentication:
description: IncrementalAuthentication holds the authentication
information for pulling the previous image from private repositories
properties:
email:
type: string
password:
type: string
secretRef:
description: LocalObjectReference contains enough information
to let you locate the referenced object inside the same namespace.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
serverAddress:
type: string
username:
type: string
type: object
incrementalFromTag:
description: IncrementalFromTag sets an alternative image tag to
look for existing artifacts. Tag is used by default if this is
not set.
type: string
injections:
description: Injections specifies a list source/destination folders
that are injected to the container that runs assemble. All files
we inject will be truncated after the assemble script finishes.
items:
description: VolumeSpec represents a single volume mount point.
properties:
destination:
description: Destination is the path to mount the volume to
- absolute or relative.
type: string
keep:
description: Keep indicates if the mounted data should be
kept in the final image.
type: boolean
source:
description: Source is a reference to the volume source.
type: string
type: object
type: array
isBinaryURL:
description: IsBinaryURL explain the type of SourceURL. If it is
IsBinaryURL, it will download the file directly without using
git.
type: boolean
keepSymlinks:
description: KeepSymlinks indicates to copy symlinks as symlinks.
Default behavior is to follow symlinks and copy files by content.
type: boolean
labelNamespace:
description: LabelNamespace provides the namespace under which the
labels will be generated.
type: string
labels:
additionalProperties:
type: string
description: Labels specify labels and their values to be applied
to the resulting image. Label keys must have non-zero length.
The labels defined here override generated labels in case they
have the same name.
type: object
layeredBuild:
description: LayeredBuild describes if this is build which layered
scripts and sources on top of BuilderImage.
type: boolean
nodeAffinityKey:
description: The key of Node Affinity.
type: string
nodeAffinityValues:
description: The values of Node Affinity.
items:
type: string
type: array
outputBuildResult:
description: Whether output build result to status.
type: boolean
outputImageName:
description: OutputImageName is a result image name without tag,
default is latest. tag will append to ImageName in the end
type: string
preserveWorkingDir:
description: PreserveWorkingDir describes if working directory should
be left after processing.
type: boolean
previousImagePullPolicy:
description: PreviousImagePullPolicy specifies when to pull the
previously build image when doing incremental build
type: string
pullAuthentication:
description: PullAuthentication holds the authentication information
for pulling the Docker images from private repositories
properties:
email:
type: string
password:
type: string
secretRef:
description: LocalObjectReference contains enough information
to let you locate the referenced object inside the same namespace.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
serverAddress:
type: string
username:
type: string
type: object
pushAuthentication:
description: PullAuthentication holds the authentication information
for pulling the Docker images from private repositories
properties:
email:
type: string
password:
type: string
secretRef:
description: LocalObjectReference contains enough information
to let you locate the referenced object inside the same namespace.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
serverAddress:
type: string
username:
type: string
type: object
removePreviousImage:
description: RemovePreviousImage describes if previous image should
be removed after successful build. This applies only to incremental
builds.
type: boolean
revisionId:
description: The RevisionId is a branch name or a SHA-1 hash of
every important thing about the commit
type: string
runImage:
description: RunImage will trigger a "docker run ..." invocation
of the produced image so the user can see if it operates as he
would expect
type: boolean
runtimeArtifacts:
description: RuntimeArtifacts specifies a list of source/destination
pairs that will be copied from builder to a runtime image. Source
can be a file or directory. Destination must be a directory. Regardless
whether it is an absolute or relative path, it will be placed
into image's WORKDIR. Destination also can be empty or equals
to ".", in this case it just refers to a root of WORKDIR. In case
it's empty, S2I will try to get this list from io.openshift.s2i.assemble-input-files
label on a RuntimeImage.
items:
description: VolumeSpec represents a single volume mount point.
properties:
destination:
description: Destination is the path to mount the volume to
- absolute or relative.
type: string
keep:
description: Keep indicates if the mounted data should be
kept in the final image.
type: boolean
source:
description: Source is a reference to the volume source.
type: string
type: object
type: array
runtimeAuthentication:
description: RuntimeAuthentication holds the authentication information
for pulling the runtime Docker images from private repositories.
properties:
email:
type: string
password:
type: string
secretRef:
description: LocalObjectReference contains enough information
to let you locate the referenced object inside the same namespace.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
serverAddress:
type: string
username:
type: string
type: object
runtimeImage:
description: RuntimeImage specifies the image that will be a base
for resulting image and will be used for running an application.
By default, BuilderImage is used for building and running, but
the latter may be overridden.
type: string
runtimeImagePullPolicy:
description: RuntimeImagePullPolicy specifies when to pull a runtime
image.
type: string
scriptDownloadProxyConfig:
description: ScriptDownloadProxyConfig optionally specifies the
http and https proxy to use when downloading scripts
properties:
httpProxy:
type: string
httpsProxy:
type: string
type: object
scriptsUrl:
description: ScriptsURL is a URL describing where to fetch the S2I
scripts from during build process. This url can be a reference
within the builder image if the scheme is specified as image://
type: string
secretCode:
description: SecretCode
type: string
securityOpt:
description: SecurityOpt are passed as options to the docker containers
launched by s2i.
items:
type: string
type: array
sourceUrl:
description: SourceURL is url of the codes such as https://github.com/a/b.git
type: string
tag:
description: Tag is a result image tag name.
type: string
taintKey:
description: The name of taint.
type: string
usage:
description: Usage allows for properly shortcircuiting s2i logic
when `s2i usage` is invoked
type: boolean
workingDir:
description: WorkingDir describes temporary directory used for downloading
sources, scripts and tar operations.
type: string
workingSourceDir:
description: WorkingSourceDir describes the subdirectory off of
WorkingDir set up during the repo download that is later used
as the root for ignore processing
type: string
required:
- imageName
- sourceUrl
type: object
fromTemplate:
description: FromTemplate define some inputs from user
properties:
builderImage:
description: BaseImage specify which version of this template to
use
type: string
name:
description: Name specify a template to use, so many fields in Config
can left empty
type: string
parameters:
description: Parameters must use with `template`, fill some parameters
which template will use
items:
properties:
defaultValue:
type: string
description:
type: string
key:
type: string
optValues:
items:
type: string
type: array
required:
type: boolean
type:
type: string
value:
type: string
type: object
type: array
type: object
type: object
status:
description: S2iBuilderStatus defines the observed state of S2iBuilder
properties:
lastRunName:
description: LastRunState return the name of the newest run of this
builder
type: string
lastRunStartTime:
description: LastRunStartTime return the startTime of the newest run
of this builder
format: date-time
type: string
lastRunState:
description: LastRunState return the state of the newest run of this
builder
type: string
runCount:
description: RunCount represent the sum of s2irun of this builder
type: integer
required:
- runCount
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,141 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: s2ibuildertemplates.devops.kubesphere.io
spec:
additionalPrinterColumns:
- JSONPath: .spec.codeFramework
name: Framework
type: string
- JSONPath: .spec.defaultBaseImage
name: DefaultBaseImage
type: string
- JSONPath: .spec.version
name: Version
type: string
group: devops.kubesphere.io
names:
categories:
- devops
kind: S2iBuilderTemplate
listKind: S2iBuilderTemplateList
plural: s2ibuildertemplates
shortNames:
- s2ibt
singular: s2ibuildertemplate
scope: Cluster
subresources: {}
validation:
openAPIV3Schema:
description: S2iBuilderTemplate is the Schema for the s2ibuildertemplates API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: S2iBuilderTemplateSpec defines the desired state of S2iBuilderTemplate
properties:
codeFramework:
description: CodeFramework means which language this template is designed
for and which framework is using if has framework. Like Java, NodeJS
etc
type: string
containerInfo:
description: Images are the images this template will use.
items:
properties:
buildVolumes:
description: BuildVolumes specifies a list of volumes to mount
to container running the build.
items:
type: string
type: array
builderImage:
description: BaseImage are the images this template will use.
type: string
runtimeArtifacts:
items:
description: VolumeSpec represents a single volume mount point.
properties:
destination:
description: Destination is the path to mount the volume
to - absolute or relative.
type: string
keep:
description: Keep indicates if the mounted data should be
kept in the final image.
type: boolean
source:
description: Source is a reference to the volume source.
type: string
type: object
type: array
runtimeImage:
type: string
type: object
type: array
defaultBaseImage:
description: DefaultBaseImage is the image that will be used by default
type: string
description:
description: Description illustrate the purpose of this template
type: string
environment:
description: Parameters is a set of environment variables to be passed
to the image.
items:
properties:
defaultValue:
type: string
description:
type: string
key:
type: string
optValues:
items:
type: string
type: array
required:
type: boolean
type:
type: string
value:
type: string
type: object
type: array
iconPath:
description: IconPath is used for frontend display
type: string
version:
description: Version of template
type: string
type: object
status:
description: S2iBuilderTemplateStatus defines the observed state of S2iBuilderTemplate
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,181 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: s2iruns.devops.kubesphere.io
spec:
additionalPrinterColumns:
- JSONPath: .status.runState
name: State
type: string
- JSONPath: .status.kubernetesJobName
name: K8sJobName
type: string
- JSONPath: .status.startTime
name: StartTime
type: date
- JSONPath: .status.completionTime
name: CompletionTime
type: date
- JSONPath: .status.s2iBuildResult.imageName
name: ImageName
type: string
group: devops.kubesphere.io
names:
kind: S2iRun
listKind: S2iRunList
plural: s2iruns
shortNames:
- s2ir
singular: s2irun
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
description: S2iRun is the Schema for the s2iruns API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: S2iRunSpec defines the desired state of S2iRun
properties:
backoffLimit:
description: BackoffLimit limits the restart count of each s2irun. Default
is 0
format: int32
type: integer
builderName:
description: BuilderName specify the name of s2ibuilder, required
type: string
newRevisionId:
description: NewRevisionId override the default NewRevisionId in its
s2ibuilder.
type: string
newSourceURL:
description: NewSourceURL is used to download new binary artifacts
type: string
newTag:
description: NewTag override the default tag in its s2ibuilder, image
name cannot be changed.
type: string
secondsAfterFinished:
description: SecondsAfterFinished if is set and greater than zero, and
the job created by s2irun become successful or failed , the job will
be auto deleted after SecondsAfterFinished
format: int32
type: integer
required:
- builderName
type: object
status:
description: S2iRunStatus defines the observed state of S2iRun
properties:
completionTime:
description: Represents time when the job was completed. It is not guaranteed
to be set in happens-before order across separate operations. It is
represented in RFC3339 form and is in UTC.
format: date-time
type: string
kubernetesJobName:
description: KubernetesJobName is the job name in k8s
type: string
logURL:
description: LogURL is uesd for external log handler to let user know
where is log located in
type: string
runState:
description: RunState indicates whether this job is done or failed
type: string
s2iBuildResult:
description: S2i build result info.
properties:
commandPull:
description: Command for pull image.
type: string
imageCreated:
description: Image created time.
type: string
imageID:
description: Image ID.
type: string
imageName:
description: ImageName is the name of artifact
type: string
imageRepoTags:
description: image tags.
items:
type: string
type: array
imageSize:
description: The size in bytes of the image
format: int64
type: integer
type: object
s2iBuildSource:
description: S2i build source info.
properties:
binaryName:
description: Binary file Name
type: string
binarySize:
description: Binary file Size
format: int64
type: integer
builderImage:
description: // BuilderImage describes which image is used for building
the result images.
type: string
commitID:
description: CommitID represents an arbitrary extended object reference
in Git as SHA-1
type: string
committerEmail:
description: CommitterEmail contains the e-mail of the committer
type: string
committerName:
description: CommitterName contains the name of the committer
type: string
description:
description: Description is a result image description label. The
default is no description.
type: string
revisionId:
description: The RevisionId is a branch name or a SHA-1 hash of
every important thing about the commit
type: string
sourceUrl:
description: SourceURL is url of the codes such as https://github.com/a/b.git
type: string
type: object
startTime:
description: StartTime represent when this run began
format: date-time
type: string
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,99 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: globalrolebindings.iam.kubesphere.io
spec:
group: iam.kubesphere.io
names:
categories:
- iam
kind: GlobalRoleBinding
listKind: GlobalRoleBindingList
plural: globalrolebindings
singular: globalrolebinding
scope: Cluster
validation:
openAPIV3Schema:
description: GlobalRoleBinding is the Schema for the globalrolebindings API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
description: Standard object's metadata.
type: object
roleRef:
description: RoleRef can only reference a GlobalRole. If the RoleRef cannot
be resolved, the Authorizer must return an error.
properties:
apiGroup:
description: APIGroup is the group for the resource being referenced
type: string
kind:
description: Kind is the type of resource being referenced
type: string
name:
description: Name is the name of resource being referenced
type: string
required:
- apiGroup
- kind
- name
type: object
subjects:
description: Subjects holds references to the objects the role applies to.
items:
description: Subject contains a reference to the object or user identities
a role binding applies to. This can either hold a direct API object
reference, or a value for non-objects such as user and group names.
properties:
apiGroup:
description: APIGroup holds the API group of the referenced subject.
Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io"
for User and Group subjects.
type: string
kind:
description: Kind of object being referenced. Values defined by this
API group are "User", "Group", and "ServiceAccount". If the Authorizer
does not recognized the kind value, the Authorizer should report
an error.
type: string
name:
description: Name of the object being referenced.
type: string
namespace:
description: Namespace of the referenced object. If the object kind
is non-namespace, such as "User" or "Group", and this value is not
empty the Authorizer should report an error.
type: string
required:
- kind
- name
type: object
type: array
required:
- roleRef
type: object
version: v1alpha2
versions:
- name: v1alpha2
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,95 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: globalroles.iam.kubesphere.io
spec:
group: iam.kubesphere.io
names:
categories:
- iam
kind: GlobalRole
listKind: GlobalRoleList
plural: globalroles
singular: globalrole
scope: Cluster
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
description: Standard object's metadata.
type: object
rules:
description: Rules holds all the PolicyRules for this GlobalRole
items:
description: PolicyRule holds information that describes a policy rule,
but does not contain information about who the rule applies to or which
namespace the rule applies to.
properties:
apiGroups:
description: APIGroups is the name of the APIGroup that contains the
resources. If multiple API groups are specified, any action requested
against one of the enumerated resources in any API group will be
allowed.
items:
type: string
type: array
nonResourceURLs:
description: NonResourceURLs is a set of partial urls that a user
should have access to. *s are allowed, but only as the full, final
step in the path Since non-resource URLs are not namespaced, this
field is only applicable for ClusterRoles referenced from a ClusterRoleBinding.
Rules can either apply to API resources (such as "pods" or "secrets")
or non-resource URL paths (such as "/api"), but not both.
items:
type: string
type: array
resourceNames:
description: ResourceNames is an optional white list of names that
the rule applies to. An empty set means that everything is allowed.
items:
type: string
type: array
resources:
description: Resources is a list of resources this rule applies to. ResourceAll
represents all resources.
items:
type: string
type: array
verbs:
description: Verbs is a list of Verbs that apply to ALL the ResourceKinds
and AttributeRestrictions contained in this rule. VerbAll represents
all kinds.
items:
type: string
type: array
required:
- verbs
type: object
type: array
type: object
version: v1alpha2
versions:
- name: v1alpha2
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,69 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: groupbindings.iam.kubesphere.io
spec:
additionalPrinterColumns:
- JSONPath: .groupRef.name
name: Group
type: string
- JSONPath: .users
name: Users
type: string
group: iam.kubesphere.io
names:
categories:
- group
kind: GroupBinding
listKind: GroupBindingList
plural: groupbindings
singular: groupbinding
scope: Cluster
subresources: {}
validation:
openAPIV3Schema:
description: GroupBinding is the Schema for the groupbindings API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
groupRef:
description: GroupRef defines the desired relation of GroupBinding
properties:
apiGroup:
type: string
kind:
type: string
name:
type: string
type: object
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
users:
items:
type: string
type: array
type: object
version: v1alpha2
versions:
- name: v1alpha2
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,58 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: groups.iam.kubesphere.io
spec:
additionalPrinterColumns:
- JSONPath: .metadata.labels.kubesphere\.io/workspace
name: Workspace
type: string
group: iam.kubesphere.io
names:
categories:
- group
kind: Group
listKind: GroupList
plural: groups
singular: group
scope: Cluster
subresources: {}
validation:
openAPIV3Schema:
description: Group is the Schema for the groups API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: GroupSpec defines the desired state of Group
type: object
status:
description: GroupStatus defines the observed state of Group
type: object
type: object
version: v1alpha2
versions:
- name: v1alpha2
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,95 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: loginrecords.iam.kubesphere.io
spec:
additionalPrinterColumns:
- JSONPath: .spec.type
name: Type
type: string
- JSONPath: .spec.provider
name: Provider
type: string
- JSONPath: .spec.sourceIP
name: From
type: string
- JSONPath: .spec.success
name: Success
type: string
- JSONPath: .spec.reason
name: Reason
type: string
- JSONPath: .metadata.creationTimestamp
name: Age
type: date
group: iam.kubesphere.io
names:
categories:
- iam
kind: LoginRecord
listKind: LoginRecordList
plural: loginrecords
singular: loginrecord
scope: Cluster
subresources: {}
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
provider:
description: Provider of authentication, Ldap/Github etc.
type: string
reason:
description: States failed login attempt reason
type: string
sourceIP:
description: Source IP of client
type: string
success:
description: Successful login attempt or not
type: boolean
type:
description: Which authentication method used, BasicAuth/OAuth
type: string
userAgent:
description: User agent of login attempt
type: string
required:
- provider
- reason
- sourceIP
- success
- type
type: object
required:
- spec
type: object
version: v1alpha2
versions:
- name: v1alpha2
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,50 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: rolebases.iam.kubesphere.io
spec:
group: iam.kubesphere.io
names:
categories:
- iam
kind: RoleBase
listKind: RoleBaseList
plural: rolebases
singular: rolebase
scope: Cluster
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
role:
type: object
required:
- role
type: object
version: v1alpha2
versions:
- name: v1alpha2
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

92
config/crds/iam.kubesphere.io_users.yaml generated Normal file
View File

@@ -0,0 +1,92 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: users.iam.kubesphere.io
spec:
group: iam.kubesphere.io
names:
categories:
- iam
kind: User
listKind: UserList
plural: users
singular: user
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .spec.email
name: Email
type: string
- jsonPath: .status.state
name: Status
type: string
name: v1alpha2
schema:
openAPIV3Schema:
description: User is the Schema for the users API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: UserSpec defines the desired state of User
properties:
description:
description: Description of the user.
type: string
displayName:
type: string
email:
description: Unique email address(https://www.ietf.org/rfc/rfc5322.txt).
type: string
groups:
items:
type: string
type: array
lang:
description: The preferred written or spoken language for the user.
type: string
password:
description: password will be encrypted by mutating admission webhook
type: string
required:
- email
type: object
status:
description: UserStatus defines the observed state of User
properties:
lastLoginTime:
description: Last login attempt timestamp
format: date-time
type: string
lastTransitionTime:
format: date-time
type: string
reason:
type: string
state:
description: The user status
type: string
type: object
required:
- spec
type: object
served: true
storage: true
subresources: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,104 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: workspacerolebindings.iam.kubesphere.io
spec:
additionalPrinterColumns:
- JSONPath: .metadata.labels.kubesphere\.io/workspace
name: Workspace
type: string
group: iam.kubesphere.io
names:
categories:
- iam
kind: WorkspaceRoleBinding
listKind: WorkspaceRoleBindingList
plural: workspacerolebindings
singular: workspacerolebinding
scope: Cluster
subresources: {}
validation:
openAPIV3Schema:
description: WorkspaceRoleBinding is the Schema for the workspacerolebindings
API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
roleRef:
description: RoleRef can only reference a WorkspaceRole. If the RoleRef
cannot be resolved, the Authorizer must return an error.
properties:
apiGroup:
description: APIGroup is the group for the resource being referenced
type: string
kind:
description: Kind is the type of resource being referenced
type: string
name:
description: Name is the name of resource being referenced
type: string
required:
- apiGroup
- kind
- name
type: object
subjects:
description: Subjects holds references to the objects the role applies to.
items:
description: Subject contains a reference to the object or user identities
a role binding applies to. This can either hold a direct API object
reference, or a value for non-objects such as user and group names.
properties:
apiGroup:
description: APIGroup holds the API group of the referenced subject.
Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io"
for User and Group subjects.
type: string
kind:
description: Kind of object being referenced. Values defined by this
API group are "User", "Group", and "ServiceAccount". If the Authorizer
does not recognized the kind value, the Authorizer should report
an error.
type: string
name:
description: Name of the object being referenced.
type: string
namespace:
description: Namespace of the referenced object. If the object kind
is non-namespace, such as "User" or "Group", and this value is not
empty the Authorizer should report an error.
type: string
required:
- kind
- name
type: object
type: array
required:
- roleRef
type: object
version: v1alpha2
versions:
- name: v1alpha2
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,103 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: workspaceroles.iam.kubesphere.io
spec:
additionalPrinterColumns:
- JSONPath: .metadata.labels.kubesphere\.io/workspace
name: Workspace
type: string
- JSONPath: .metadata.annotations.kubesphere\.io/alias-name
name: Alias
type: string
group: iam.kubesphere.io
names:
categories:
- iam
kind: WorkspaceRole
listKind: WorkspaceRoleList
plural: workspaceroles
singular: workspacerole
scope: Cluster
subresources: {}
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
description: Standard object's metadata.
type: object
rules:
description: Rules holds all the PolicyRules for this WorkspaceRole
items:
description: PolicyRule holds information that describes a policy rule,
but does not contain information about who the rule applies to or which
namespace the rule applies to.
properties:
apiGroups:
description: APIGroups is the name of the APIGroup that contains the
resources. If multiple API groups are specified, any action requested
against one of the enumerated resources in any API group will be
allowed.
items:
type: string
type: array
nonResourceURLs:
description: NonResourceURLs is a set of partial urls that a user
should have access to. *s are allowed, but only as the full, final
step in the path Since non-resource URLs are not namespaced, this
field is only applicable for ClusterRoles referenced from a ClusterRoleBinding.
Rules can either apply to API resources (such as "pods" or "secrets")
or non-resource URL paths (such as "/api"), but not both.
items:
type: string
type: array
resourceNames:
description: ResourceNames is an optional white list of names that
the rule applies to. An empty set means that everything is allowed.
items:
type: string
type: array
resources:
description: Resources is a list of resources this rule applies to. ResourceAll
represents all resources.
items:
type: string
type: array
verbs:
description: Verbs is a list of Verbs that apply to ALL the ResourceKinds
and AttributeRestrictions contained in this rule. VerbAll represents
all kinds.
items:
type: string
type: array
required:
- verbs
type: object
type: array
type: object
version: v1alpha2
versions:
- name: v1alpha2
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,184 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.4
creationTimestamp: null
name: clusterdashboards.monitoring.kubesphere.io
spec:
group: monitoring.kubesphere.io
names:
kind: ClusterDashboard
listKind: ClusterDashboardList
plural: clusterdashboards
singular: clusterdashboard
scope: Cluster
validation:
openAPIV3Schema:
description: ClusterDashboard is the Schema for the culsterdashboards API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: DashboardSpec defines the desired state of Dashboard
properties:
datasource:
description: Dashboard datasource
type: string
description:
description: Dashboard description
type: string
panels:
description: Collection of panels. Panel is one of [Row](row.md), [Singlestat](#singlestat.md)
or [Graph](graph.md)
items:
description: Supported panel type
properties:
bars:
description: Display as a bar chart
type: boolean
colors:
description: Set series color
items:
type: string
type: array
decimals:
description: Limit the decimal numbers
format: int64
type: integer
description:
description: Panel description
type: string
format:
description: Display unit
type: string
id:
description: Panel ID
format: int64
type: integer
lines:
description: Display as a line chart
type: boolean
stack:
description: Display as a stacked chart
type: boolean
targets:
allOf:
- items:
description: Query editor options
properties:
expr:
description: Input for fetching metrics.
type: string
legendFormat:
description: Legend format for outputs. You can make a
dynamic legend with templating variables.
type: string
refId:
description: Reference ID
format: int64
type: integer
step:
description: Set series time interval
type: string
type: object
- items:
description: Query editor options
properties:
expr:
description: Input for fetching metrics.
type: string
legendFormat:
description: Legend format for outputs. You can make a
dynamic legend with templating variables.
type: string
refId:
description: Reference ID
format: int64
type: integer
step:
description: Set series time interval
type: string
type: object
description: A collection of queries
type: array
title:
description: Name of the row panel
type: string
type:
description: Must be `row`
type: string
yaxes:
description: Y-axis options
items:
properties:
decimals:
description: Limit the decimal numbers
format: int64
type: integer
format:
description: Display unit
type: string
type: object
type: array
required:
- type
type: object
type: array
templating:
description: Templating variables
items:
description: Templating defines a variable, which can be used as a
placeholder in query
properties:
name:
description: Variable name
type: string
query:
description: Set variable values to be the return result of the
query
type: string
type: object
type: array
time:
description: Time range for display
properties:
from:
description: Start time in the format of `^now([+-][0-9]+[smhdwMy])?$`,
eg. `now-1M`. It denotes the end time is set to the last month
since now.
type: string
to:
description: End time in the format of `^now([+-][0-9]+[smhdwMy])?$`,
eg. `now-1M`. It denotes the start time is set to the last month
since now.
type: string
type: object
title:
description: Dashboard title
type: string
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,184 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.4
creationTimestamp: null
name: dashboards.monitoring.kubesphere.io
spec:
group: monitoring.kubesphere.io
names:
kind: Dashboard
listKind: DashboardList
plural: dashboards
singular: dashboard
scope: Namespaced
validation:
openAPIV3Schema:
description: Dashboard is the Schema for the dashboards API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: DashboardSpec defines the desired state of Dashboard
properties:
datasource:
description: Dashboard datasource
type: string
description:
description: Dashboard description
type: string
panels:
description: Collection of panels. Panel is one of [Row](row.md), [Singlestat](#singlestat.md)
or [Graph](graph.md)
items:
description: Supported panel type
properties:
bars:
description: Display as a bar chart
type: boolean
colors:
description: Set series color
items:
type: string
type: array
decimals:
description: Limit the decimal numbers
format: int64
type: integer
description:
description: Panel description
type: string
format:
description: Display unit
type: string
id:
description: Panel ID
format: int64
type: integer
lines:
description: Display as a line chart
type: boolean
stack:
description: Display as a stacked chart
type: boolean
targets:
allOf:
- items:
description: Query editor options
properties:
expr:
description: Input for fetching metrics.
type: string
legendFormat:
description: Legend format for outputs. You can make a
dynamic legend with templating variables.
type: string
refId:
description: Reference ID
format: int64
type: integer
step:
description: Set series time interval
type: string
type: object
- items:
description: Query editor options
properties:
expr:
description: Input for fetching metrics.
type: string
legendFormat:
description: Legend format for outputs. You can make a
dynamic legend with templating variables.
type: string
refId:
description: Reference ID
format: int64
type: integer
step:
description: Set series time interval
type: string
type: object
description: A collection of queries
type: array
title:
description: Name of the row panel
type: string
type:
description: Must be `row`
type: string
yaxes:
description: Y-axis options
items:
properties:
decimals:
description: Limit the decimal numbers
format: int64
type: integer
format:
description: Display unit
type: string
type: object
type: array
required:
- type
type: object
type: array
templating:
description: Templating variables
items:
description: Templating defines a variable, which can be used as a
placeholder in query
properties:
name:
description: Variable name
type: string
query:
description: Set variable values to be the return result of the
query
type: string
type: object
type: array
time:
description: Time range for display
properties:
from:
description: Start time in the format of `^now([+-][0-9]+[smhdwMy])?$`,
eg. `now-1M`. It denotes the end time is set to the last month
since now.
type: string
to:
description: End time in the format of `^now([+-][0-9]+[smhdwMy])?$`,
eg. `now-1M`. It denotes the start time is set to the last month
since now.
type: string
type: object
title:
description: Dashboard title
type: string
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,79 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
name: ipamblocks.network.kubesphere.io
spec:
group: network.kubesphere.io
names:
kind: IPAMBlock
plural: ipamblocks
scope: Cluster
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
description: Standard object's metadata.
type: object
spec:
description: Specification of the IPAMBlock.
properties:
allocations:
items:
type: integer
nullable: true
type: array
attributes:
items:
properties:
handle_id:
type: string
secondary:
additionalProperties:
type: string
type: object
type: object
type: array
cidr:
type: string
deleted:
type: boolean
id:
format: int32
type: integer
unallocated:
items:
type: integer
type: array
required:
- allocations
- attributes
- cidr
- deleted
- id
- unallocated
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,57 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
name: ipamhandles.network.kubesphere.io
spec:
group: network.kubesphere.io
names:
kind: IPAMHandle
plural: ipamhandles
scope: Cluster
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
description: Standard object's metadata.
type: object
spec:
description: Specification of the IPAMHandle.
properties:
block:
additionalProperties:
type: integer
type: object
deleted:
type: boolean
handleID:
type: string
required:
- block
- deleted
- handleID
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,137 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: ippools.network.kubesphere.io
spec:
group: network.kubesphere.io
names:
kind: IPPool
listKind: IPPoolList
plural: ippools
singular: ippool
scope: Cluster
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
blockSize:
description: The block size to use for IP address assignments from this
pool. Defaults to 26 for IPv4 and 112 for IPv6.
type: integer
cidr:
description: The pool CIDR.
type: string
disabled:
description: When disabled is true, IPAM will not assign addresses from
this pool.
type: boolean
dns:
description: DNS contains values interesting for DNS resolvers
properties:
domain:
type: string
nameservers:
items:
type: string
type: array
options:
items:
type: string
type: array
search:
items:
type: string
type: array
type: object
gateway:
type: string
rangeEnd:
description: The last ip, inclusive
type: string
rangeStart:
description: The first ip, inclusive
type: string
routes:
items:
properties:
dst:
type: string
gateway:
type: string
type: object
type: array
type:
type: string
vlanConfig:
properties:
master:
type: string
vlanId:
format: int32
type: integer
required:
- master
- vlanId
type: object
required:
- cidr
- type
type: object
status:
properties:
allocations:
type: integer
capacity:
type: integer
reserved:
type: integer
synced:
type: boolean
unallocated:
type: integer
workspaces:
additionalProperties:
properties:
allocations:
type: integer
required:
- allocations
type: object
type: object
required:
- allocations
- capacity
- unallocated
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,259 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: namespacenetworkpolicies.network.kubesphere.io
spec:
group: network.kubesphere.io
names:
categories:
- networking
kind: NamespaceNetworkPolicy
listKind: NamespaceNetworkPolicyList
plural: namespacenetworkpolicies
shortNames:
- nsnp
singular: namespacenetworkpolicy
scope: Namespaced
validation:
openAPIV3Schema:
description: NamespaceNetworkPolicy is the Schema for the namespacenetworkpolicies
API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: NamespaceNetworkPolicySpec provides the specification of a
NamespaceNetworkPolicy
properties:
egress:
description: List of egress rules to be applied to the selected pods.
Outgoing traffic is allowed if there are no NetworkPolicies selecting
the pod (and cluster policy otherwise allows the traffic), OR if the
traffic matches at least one egress rule across all of the NetworkPolicy
objects whose podSelector matches the pod. If this field is empty
then this NetworkPolicy limits all outgoing traffic (and serves solely
to ensure that the pods it selects are isolated by default). This
field is beta-level in 1.8
items:
description: NetworkPolicyEgressRule describes a particular set of
traffic that is allowed out of pods matched by a NetworkPolicySpec's
podSelector. The traffic must match both ports and to. This type
is beta-level in 1.8
properties:
ports:
description: List of destination ports for outgoing traffic. Each
item in this list is combined using a logical OR. If this field
is empty or missing, this rule matches all ports (traffic not
restricted by port). If this field is present and contains at
least one item, then this rule allows traffic only if the traffic
matches at least one port in the list.
items:
description: NetworkPolicyPort describes a port to allow traffic
on
properties:
port:
anyOf:
- type: integer
- type: string
description: The port on the given protocol. This can either
be a numerical or named port on a pod. If this field is
not provided, this matches all port names and numbers.
x-kubernetes-int-or-string: true
protocol:
description: The protocol (TCP, UDP, or SCTP) which traffic
must match. If not specified, this field defaults to TCP.
type: string
type: object
type: array
to:
description: List of destinations for outgoing traffic of pods
selected for this rule. Items in this list are combined using
a logical OR operation. If this field is empty or missing, this
rule matches all destinations (traffic not restricted by destination).
If this field is present and contains at least one item, this
rule allows traffic only if the traffic matches at least one
item in the to list.
items:
description: NetworkPolicyPeer describes a peer to allow traffic
from. Only certain combinations of fields are allowed
properties:
ipBlock:
description: IPBlock defines policy on a particular IPBlock.
If this field is set then neither of the other fields
can be.
properties:
cidr:
description: CIDR is a string representing the IP Block
Valid examples are "192.168.1.1/24"
type: string
except:
description: Except is a slice of CIDRs that should
not be included within an IP Block Valid examples
are "192.168.1.1/24" Except values will be rejected
if they are outside the CIDR range
items:
type: string
type: array
required:
- cidr
type: object
namespace:
properties:
name:
type: string
required:
- name
type: object
service:
properties:
name:
type: string
namespace:
type: string
required:
- name
- namespace
type: object
type: object
type: array
type: object
type: array
ingress:
description: List of ingress rules to be applied to the selected pods.
Traffic is allowed to a pod if there are no NetworkPolicies selecting
the pod (and cluster policy otherwise allows the traffic), OR if the
traffic source is the pod's local node, OR if the traffic matches
at least one ingress rule across all of the NetworkPolicy objects
whose podSelector matches the pod. If this field is empty then this
NetworkPolicy does not allow any traffic (and serves solely to ensure
that the pods it selects are isolated by default)
items:
description: NetworkPolicyIngressRule describes a particular set of
traffic that is allowed to the pods matched by a NetworkPolicySpec's
podSelector. The traffic must match both ports and from.
properties:
from:
description: List of sources which should be able to access the
pods selected for this rule. Items in this list are combined
using a logical OR operation. If this field is empty or missing,
this rule matches all sources (traffic not restricted by source).
If this field is present and contains at least one item, this
rule allows traffic only if the traffic matches at least one
item in the from list.
items:
description: NetworkPolicyPeer describes a peer to allow traffic
from. Only certain combinations of fields are allowed
properties:
ipBlock:
description: IPBlock defines policy on a particular IPBlock.
If this field is set then neither of the other fields
can be.
properties:
cidr:
description: CIDR is a string representing the IP Block
Valid examples are "192.168.1.1/24"
type: string
except:
description: Except is a slice of CIDRs that should
not be included within an IP Block Valid examples
are "192.168.1.1/24" Except values will be rejected
if they are outside the CIDR range
items:
type: string
type: array
required:
- cidr
type: object
namespace:
properties:
name:
type: string
required:
- name
type: object
service:
properties:
name:
type: string
namespace:
type: string
required:
- name
- namespace
type: object
type: object
type: array
ports:
description: List of ports which should be made accessible on
the pods selected for this rule. Each item in this list is combined
using a logical OR. If this field is empty or missing, this
rule matches all ports (traffic not restricted by port). If
this field is present and contains at least one item, then this
rule allows traffic only if the traffic matches at least one
port in the list.
items:
description: NetworkPolicyPort describes a port to allow traffic
on
properties:
port:
anyOf:
- type: integer
- type: string
description: The port on the given protocol. This can either
be a numerical or named port on a pod. If this field is
not provided, this matches all port names and numbers.
x-kubernetes-int-or-string: true
protocol:
description: The protocol (TCP, UDP, or SCTP) which traffic
must match. If not specified, this field defaults to TCP.
type: string
type: object
type: array
type: object
type: array
policyTypes:
description: List of rule types that the NetworkPolicy relates to. Valid
options are "Ingress", "Egress", or "Ingress,Egress". If this field
is not specified, it will default based on the existence of Ingress
or Egress rules; policies that contain an Egress section are assumed
to affect Egress, and all policies (whether or not they contain an
Ingress section) are assumed to affect Ingress. If you want to write
an egress-only policy, you must explicitly specify policyTypes [ "Egress"
]. Likewise, if you want to write a policy that specifies that no
egress is allowed, you must specify a policyTypes value that include
"Egress" (since such a policy would not include an Egress section
and would otherwise default to just [ "Ingress" ]). This field is
beta-level in 1.8
items:
description: Policy Type string describes the NetworkPolicy type This
type is beta-level in 1.8
type: string
type: array
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,283 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: configs.notification.kubesphere.io
spec:
group: notification.kubesphere.io
names:
categories:
- notification-manager
kind: Config
listKind: ConfigList
plural: configs
shortNames:
- nc
singular: config
scope: Cluster
versions:
- name: v2beta1
schema:
openAPIV3Schema:
description: DingTalkConfig is the Schema for the dingtalkconfigs API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: ConfigSpec defines the desired state of Config
properties:
dingtalk:
properties:
conversation:
description: Only needed when send alerts to the conversation.
properties:
appkey:
description: The key of the application with which to send messages.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
appsecret:
description: The key in the secret to be used. Must be a valid secret key.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
type: object
labels:
additionalProperties:
type: string
type: object
type: object
email:
properties:
authIdentify:
description: The identity for PLAIN authentication.
type: string
authPassword:
description: The secret contains the SMTP password for LOGIN and PLAIN authentications.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
authSecret:
description: The secret contains the SMTP secret for CRAM-MD5 authentication.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
authUsername:
description: The username for CRAM-MD5, LOGIN and PLAIN authentications.
type: string
from:
description: The sender address.
type: string
hello:
description: The hostname to use when identifying to the SMTP server.
type: string
labels:
additionalProperties:
type: string
type: object
requireTLS:
description: The default SMTP TLS requirement.
type: boolean
smartHost:
description: The address of the SMTP server.
properties:
host:
type: string
port:
type: integer
required:
- host
- port
type: object
tls:
description: TLSConfig configures the options for TLS connections.
properties:
clientCertificate:
description: The certificate of the client.
properties:
cert:
description: The client cert file for the targets.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
key:
description: The client key file for the targets.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
type: object
insecureSkipVerify:
description: Disable target certificate validation.
type: boolean
rootCA:
description: RootCA defines the root certificate authorities that clients use when verifying server certificates.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
serverName:
description: Used to verify the hostname for the targets.
type: string
type: object
required:
- from
- smartHost
type: object
slack:
properties:
labels:
additionalProperties:
type: string
type: object
slackTokenSecret:
description: The token of user or bot.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
type: object
webhook:
properties:
labels:
additionalProperties:
type: string
type: object
type: object
wechat:
properties:
labels:
additionalProperties:
type: string
type: object
wechatApiAgentId:
description: The id of the application which sending message.
type: string
wechatApiCorpId:
description: The corp id for authentication.
type: string
wechatApiSecret:
description: The API key to use when talking to the WeChat API.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
wechatApiUrl:
description: The WeChat API URL.
type: string
required:
- wechatApiAgentId
- wechatApiCorpId
- wechatApiSecret
type: object
type: object
status:
description: ConfigStatus defines the observed state of Config
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,590 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: receivers.notification.kubesphere.io
spec:
group: notification.kubesphere.io
names:
categories:
- notification-manager
kind: Receiver
listKind: ReceiverList
plural: receivers
shortNames:
- nr
singular: receiver
scope: Cluster
versions:
- name: v2beta1
schema:
openAPIV3Schema:
description: Receiver is the Schema for the receivers API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: ReceiverSpec defines the desired state of Receiver
properties:
dingtalk:
properties:
alertSelector:
description: Selector to filter alerts.
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
chatbot:
description: Be careful, a ChatBot only can send 20 message per minute.
properties:
keywords:
description: Custom keywords of ChatBot
items:
type: string
type: array
secret:
description: Secret of ChatBot, you can get it after enabled Additional Signature of ChatBot.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
webhook:
description: The webhook of ChatBot which the message will send to.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
required:
- webhook
type: object
conversation:
description: The conversation which message will send to.
properties:
chatids:
items:
type: string
type: array
required:
- chatids
type: object
dingtalkConfigSelector:
description: DingTalkConfig to be selected for this receiver
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
enabled:
description: whether the receiver is enabled
type: boolean
type: object
email:
properties:
alertSelector:
description: Selector to filter alerts.
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
emailConfigSelector:
description: EmailConfig to be selected for this receiver
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
enabled:
description: whether the receiver is enabled
type: boolean
to:
description: Receivers' email addresses
items:
type: string
type: array
required:
- to
type: object
slack:
properties:
alertSelector:
description: Selector to filter alerts.
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
channels:
description: The channel or user to send notifications to.
items:
type: string
type: array
enabled:
description: whether the receiver is enabled
type: boolean
slackConfigSelector:
description: SlackConfig to be selected for this receiver
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
required:
- channels
type: object
webhook:
properties:
alertSelector:
description: Selector to filter alerts.
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
enabled:
description: whether the receiver is enabled
type: boolean
httpConfig:
description: HTTPClientConfig configures an HTTP client.
properties:
basicAuth:
description: The HTTP basic authentication credentials for the targets.
properties:
password:
description: SecretKeySelector selects a key of a Secret.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
username:
type: string
required:
- username
type: object
bearerToken:
description: The bearer token for the targets.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
proxyUrl:
description: HTTP proxy server to use to connect to the targets.
type: string
tlsConfig:
description: TLSConfig to use to connect to the targets.
properties:
clientCertificate:
description: The certificate of the client.
properties:
cert:
description: The client cert file for the targets.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
key:
description: The client key file for the targets.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
type: object
insecureSkipVerify:
description: Disable target certificate validation.
type: boolean
rootCA:
description: RootCA defines the root certificate authorities that clients use when verifying server certificates.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
serverName:
description: Used to verify the hostname for the targets.
type: string
type: object
type: object
service:
description: "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified. \n If the webhook is running within the cluster, then you should use `service`."
properties:
name:
description: '`name` is the name of the service. Required'
type: string
namespace:
description: '`namespace` is the namespace of the service. Required'
type: string
path:
description: '`path` is an optional URL path which will be sent in any request to this service.'
type: string
port:
description: If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).
format: int32
type: integer
scheme:
description: Http scheme, default is http.
type: string
required:
- name
- namespace
type: object
url:
description: "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. \n The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some api servers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. \n Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. \n A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. \n Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either."
type: string
webhookConfigSelector:
description: WebhookConfig to be selected for this receiver
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
type: object
wechat:
properties:
alertSelector:
description: Selector to filter alerts.
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
enabled:
description: whether the receiver is enabled
type: boolean
toParty:
items:
type: string
type: array
toTag:
items:
type: string
type: array
toUser:
items:
type: string
type: array
wechatConfigSelector:
description: WechatConfig to be selected for this receiver
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
type: object
type: object
status:
description: ReceiverStatus defines the observed state of Receiver
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,170 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: resourcequotas.quota.kubesphere.io
spec:
group: quota.kubesphere.io
names:
categories:
- quota
kind: ResourceQuota
listKind: ResourceQuotaList
plural: resourcequotas
singular: resourcequota
scope: Cluster
subresources:
status: {}
validation:
openAPIV3Schema:
description: WorkspaceResourceQuota sets aggregate quota restrictions enforced
per workspace
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
description: 'Standard object''s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata'
type: object
spec:
description: Spec defines the desired quota
properties:
quota:
description: Quota defines the desired quota
properties:
hard:
additionalProperties:
type: string
description: 'hard is the set of desired hard limits for each named
resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/'
type: object
scopeSelector:
description: scopeSelector is also a collection of filters like
scopes that must match each object tracked by a quota but expressed
using ScopeSelectorOperator in combination with possible values.
For a resource to match, both scopes AND scopeSelector (if specified
in spec), must be matched.
properties:
matchExpressions:
description: A list of scope selector requirements by scope
of the resources.
items:
description: A scoped-resource selector requirement is a selector
that contains values, a scope name, and an operator that
relates the scope name and values.
properties:
operator:
description: Represents a scope's relationship to a set
of values. Valid operators are In, NotIn, Exists, DoesNotExist.
type: string
scopeName:
description: The name of the scope that the selector applies
to.
type: string
values:
description: An array of string values. If the operator
is In or NotIn, the values array must be non-empty.
If the operator is Exists or DoesNotExist, the values
array must be empty. This array is replaced during a
strategic merge patch.
items:
type: string
type: array
required:
- operator
- scopeName
type: object
type: array
type: object
scopes:
description: A collection of filters that must match each object
tracked by a quota. If not specified, the quota matches all objects.
items:
description: A ResourceQuotaScope defines a filter that must match
each object tracked by a quota
type: string
type: array
type: object
selector:
additionalProperties:
type: string
description: LabelSelector is used to select projects by label.
type: object
required:
- quota
- selector
type: object
status:
description: Status defines the actual enforced quota and its current usage
properties:
namespaces:
description: Namespaces slices the usage by project.
items:
description: ResourceQuotaStatusByNamespace gives status for a particular
project
properties:
hard:
additionalProperties:
type: string
description: 'Hard is the set of enforced hard limits for each
named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/'
type: object
namespace:
description: Namespace the project this status applies to
type: string
used:
additionalProperties:
type: string
description: Used is the current observed total usage of the resource
in the namespace.
type: object
required:
- namespace
type: object
type: array
total:
description: Total defines the actual enforced quota and its current
usage across all projects
properties:
hard:
additionalProperties:
type: string
description: 'Hard is the set of enforced hard limits for each named
resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/'
type: object
used:
additionalProperties:
type: string
description: Used is the current observed total usage of the resource
in the namespace.
type: object
type: object
required:
- namespaces
- total
type: object
required:
- spec
type: object
version: v1alpha2
versions:
- name: v1alpha2
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,822 +0,0 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
labels:
controller-tools.k8s.io: "1.0"
name: servicepolicies.servicemesh.kubesphere.io
spec:
group: servicemesh.kubesphere.io
names:
kind: ServicePolicy
plural: servicepolicies
scope: Namespaced
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
selector:
description: Label selector for destination rules.
type: object
template:
description: Template used to create a destination rule
properties:
spec:
description: Spec indicates the behavior of a destination rule.
properties:
host:
description: 'REQUIRED. The name of a service from the service
registry. Service names are looked up from the platform''s
service registry (e.g., Kubernetes services, Consul services,
etc.) and from the hosts declared by [ServiceEntries](#ServiceEntry).
Rules defined for services that do not exist in the service
registry will be ignored. *Note for Kubernetes users*: When
short names are used (e.g. "reviews" instead of "reviews.default.svc.cluster.local"),
Istio will interpret the short name based on the namespace
of the rule, not the service. A rule in the "default" namespace
containing a host "reviews will be interpreted as "reviews.default.svc.cluster.local",
irrespective of the actual namespace associated with the reviews
service. _To avoid potential misconfigurations, it is recommended
to always use fully qualified domain names over short names._ Note
that the host field applies to both HTTP and TCP services.'
type: string
subsets:
description: One or more named sets that represent individual
versions of a service. Traffic policies can be overridden
at subset level.
items:
properties:
labels:
description: REQUIRED. Labels apply a filter over the
endpoints of a service in the service registry. See
route rules for examples of usage.
type: object
name:
description: REQUIRED. Name of the subset. The service
name and the subset name can be used for traffic splitting
in a route rule.
type: string
trafficPolicy:
description: Traffic policies that apply to this subset.
Subsets inherit the traffic policies specified at the
DestinationRule level. Settings specified at the subset
level will override the corresponding settings specified
at the DestinationRule level.
properties:
connectionPool:
description: Settings controlling the volume of connections
to an upstream service
properties:
http:
description: HTTP connection pool settings.
properties:
maxRequestsPerConnection:
description: Maximum number of requests per
connection to a backend. Setting this parameter
to 1 disables keep alive.
format: int32
type: integer
maxRetries:
description: Maximum number of retries that
can be outstanding to all hosts in a cluster
at a given time. Defaults to 3.
format: int32
type: integer
type: object
tcp:
description: Settings common to both HTTP and
TCP upstream connections.
properties:
connectTimeout:
description: TCP connection timeout.
type: string
maxConnections:
description: Maximum number of HTTP1 /TCP
connections to a destination host.
format: int32
type: integer
type: object
type: object
loadBalancer:
description: Settings controlling the load balancer
algorithms.
properties:
consistentHash:
properties:
httpCookie:
description: Hash based on HTTP cookie.
properties:
name:
description: REQUIRED. Name of the cookie.
type: string
path:
description: Path to set for the cookie.
type: string
ttl:
description: REQUIRED. Lifetime of the
cookie.
type: string
required:
- name
- ttl
type: object
httpHeaderName:
description: 'It is required to specify exactly
one of the fields as hash key: HttpHeaderName,
HttpCookie, or UseSourceIP. Hash based on
a specific HTTP header.'
type: string
minimumRingSize:
description: The minimum number of virtual
nodes to use for the hash ring. Defaults
to 1024. Larger ring sizes result in more
granular load distributions. If the number
of hosts in the load balancing pool is larger
than the ring size, each host will be assigned
a single virtual node.
format: int64
type: integer
useSourceIp:
description: Hash based on the source IP address.
type: boolean
type: object
simple:
description: 'It is required to specify exactly
one of the fields: Simple or ConsistentHash'
type: string
type: object
outlierDetection:
description: Settings controlling eviction of unhealthy
hosts from the load balancing pool
properties:
baseEjectionTime:
description: 'Minimum ejection duration. A host
will remain ejected for a period equal to the
product of minimum ejection duration and the
number of times the host has been ejected. This
technique allows the system to automatically
increase the ejection period for unhealthy upstream
servers. format: 1h/1m/1s/1ms. MUST BE >=1ms.
Default is 30s.'
type: string
consecutiveErrors:
description: Number of errors before a host is
ejected from the connection pool. Defaults to
5. When the upstream host is accessed over HTTP,
a 5xx return code qualifies as an error. When
the upstream host is accessed over an opaque
TCP connection, connect timeouts and connection
error/failure events qualify as an error.
format: int32
type: integer
interval:
description: 'Time interval between ejection sweep
analysis. format: 1h/1m/1s/1ms. MUST BE >=1ms.
Default is 10s.'
type: string
maxEjectionPercent:
description: Maximum % of hosts in the load balancing
pool for the upstream service that can be ejected.
Defaults to 10%.
format: int32
type: integer
type: object
portLevelSettings:
description: Traffic policies specific to individual
ports. Note that port level settings will override
the destination-level settings. Traffic settings
specified at the destination-level will not be inherited
when overridden by port-level settings, i.e. default
values will be applied to fields omitted in port-level
traffic policies.
items:
properties:
connectionPool:
description: Settings controlling the volume
of connections to an upstream service
properties:
http:
description: HTTP connection pool settings.
properties:
maxRequestsPerConnection:
description: Maximum number of requests
per connection to a backend. Setting
this parameter to 1 disables keep
alive.
format: int32
type: integer
maxRetries:
description: Maximum number of retries
that can be outstanding to all hosts
in a cluster at a given time. Defaults
to 3.
format: int32
type: integer
type: object
tcp:
description: Settings common to both HTTP
and TCP upstream connections.
properties:
connectTimeout:
description: TCP connection timeout.
type: string
maxConnections:
description: Maximum number of HTTP1
/TCP connections to a destination
host.
format: int32
type: integer
type: object
type: object
loadBalancer:
description: Settings controlling the load balancer
algorithms.
properties:
consistentHash:
properties:
httpCookie:
description: Hash based on HTTP cookie.
properties:
name:
description: REQUIRED. Name of the
cookie.
type: string
path:
description: Path to set for the
cookie.
type: string
ttl:
description: REQUIRED. Lifetime
of the cookie.
type: string
required:
- name
- ttl
type: object
httpHeaderName:
description: 'It is required to specify
exactly one of the fields as hash
key: HttpHeaderName, HttpCookie, or
UseSourceIP. Hash based on a specific
HTTP header.'
type: string
minimumRingSize:
description: The minimum number of virtual
nodes to use for the hash ring. Defaults
to 1024. Larger ring sizes result
in more granular load distributions.
If the number of hosts in the load
balancing pool is larger than the
ring size, each host will be assigned
a single virtual node.
format: int64
type: integer
useSourceIp:
description: Hash based on the source
IP address.
type: boolean
type: object
simple:
description: 'It is required to specify
exactly one of the fields: Simple or ConsistentHash'
type: string
type: object
outlierDetection:
description: Settings controlling eviction of
unhealthy hosts from the load balancing pool
properties:
baseEjectionTime:
description: 'Minimum ejection duration.
A host will remain ejected for a period
equal to the product of minimum ejection
duration and the number of times the host
has been ejected. This technique allows
the system to automatically increase the
ejection period for unhealthy upstream
servers. format: 1h/1m/1s/1ms. MUST BE
>=1ms. Default is 30s.'
type: string
consecutiveErrors:
description: Number of errors before a host
is ejected from the connection pool. Defaults
to 5. When the upstream host is accessed
over HTTP, a 5xx return code qualifies
as an error. When the upstream host is
accessed over an opaque TCP connection,
connect timeouts and connection error/failure
events qualify as an error.
format: int32
type: integer
interval:
description: 'Time interval between ejection
sweep analysis. format: 1h/1m/1s/1ms.
MUST BE >=1ms. Default is 10s.'
type: string
maxEjectionPercent:
description: Maximum % of hosts in the load
balancing pool for the upstream service
that can be ejected. Defaults to 10%.
format: int32
type: integer
type: object
port:
description: Specifies the port name or number
of a port on the destination service on which
this policy is being applied. Names must
comply with DNS label syntax (rfc1035) and
therefore cannot collide with numbers. If
there are multiple ports on a service with
the same protocol the names should be of the
form <protocol-name>-<DNS label>.
properties:
name:
description: Valid port name
type: string
number:
description: Valid port number
format: int32
type: integer
type: object
tls:
description: TLS related settings for connections
to the upstream service.
properties:
caCertificates:
description: 'OPTIONAL: The path to the
file containing certificate authority
certificates to use in verifying a presented
server certificate. If omitted, the proxy
will not verify the server''s certificate.
Should be empty if mode is `ISTIO_MUTUAL`.'
type: string
clientCertificate:
description: REQUIRED if mode is `MUTUAL`.
The path to the file holding the client-side
TLS certificate to use. Should be empty
if mode is `ISTIO_MUTUAL`.
type: string
mode:
description: 'REQUIRED: Indicates whether
connections to this port should be secured
using TLS. The value of this field determines
how TLS is enforced.'
type: string
privateKey:
description: REQUIRED if mode is `MUTUAL`.
The path to the file holding the client's
private key. Should be empty if mode is
`ISTIO_MUTUAL`.
type: string
sni:
description: SNI string to present to the
server during TLS handshake. Should be
empty if mode is `ISTIO_MUTUAL`.
type: string
subjectAltNames:
description: A list of alternate names to
verify the subject identity in the certificate.
If specified, the proxy will verify that
the server certificate's subject alt name
matches one of the specified values. Should
be empty if mode is `ISTIO_MUTUAL`.
items:
type: string
type: array
required:
- mode
type: object
required:
- port
type: object
type: array
tls:
description: TLS related settings for connections
to the upstream service.
properties:
caCertificates:
description: 'OPTIONAL: The path to the file containing
certificate authority certificates to use in
verifying a presented server certificate. If
omitted, the proxy will not verify the server''s
certificate. Should be empty if mode is `ISTIO_MUTUAL`.'
type: string
clientCertificate:
description: REQUIRED if mode is `MUTUAL`. The
path to the file holding the client-side TLS
certificate to use. Should be empty if mode
is `ISTIO_MUTUAL`.
type: string
mode:
description: 'REQUIRED: Indicates whether connections
to this port should be secured using TLS. The
value of this field determines how TLS is enforced.'
type: string
privateKey:
description: REQUIRED if mode is `MUTUAL`. The
path to the file holding the client's private
key. Should be empty if mode is `ISTIO_MUTUAL`.
type: string
sni:
description: SNI string to present to the server
during TLS handshake. Should be empty if mode
is `ISTIO_MUTUAL`.
type: string
subjectAltNames:
description: A list of alternate names to verify
the subject identity in the certificate. If
specified, the proxy will verify that the server
certificate's subject alt name matches one of
the specified values. Should be empty if mode
is `ISTIO_MUTUAL`.
items:
type: string
type: array
required:
- mode
type: object
type: object
required:
- name
- labels
type: object
type: array
trafficPolicy:
description: Traffic policies to apply (load balancing policy,
connection pool sizes, outlier detection).
properties:
connectionPool:
description: Settings controlling the volume of connections
to an upstream service
properties:
http:
description: HTTP connection pool settings.
properties:
maxRequestsPerConnection:
description: Maximum number of requests per connection
to a backend. Setting this parameter to 1 disables
keep alive.
format: int32
type: integer
maxRetries:
description: Maximum number of retries that can
be outstanding to all hosts in a cluster at a
given time. Defaults to 3.
format: int32
type: integer
type: object
tcp:
description: Settings common to both HTTP and TCP upstream
connections.
properties:
connectTimeout:
description: TCP connection timeout.
type: string
maxConnections:
description: Maximum number of HTTP1 /TCP connections
to a destination host.
format: int32
type: integer
type: object
type: object
loadBalancer:
description: Settings controlling the load balancer algorithms.
properties:
consistentHash:
properties:
httpCookie:
description: Hash based on HTTP cookie.
properties:
name:
description: REQUIRED. Name of the cookie.
type: string
path:
description: Path to set for the cookie.
type: string
ttl:
description: REQUIRED. Lifetime of the cookie.
type: string
required:
- name
- ttl
type: object
httpHeaderName:
description: 'It is required to specify exactly
one of the fields as hash key: HttpHeaderName,
HttpCookie, or UseSourceIP. Hash based on a specific
HTTP header.'
type: string
minimumRingSize:
description: The minimum number of virtual nodes
to use for the hash ring. Defaults to 1024. Larger
ring sizes result in more granular load distributions.
If the number of hosts in the load balancing pool
is larger than the ring size, each host will be
assigned a single virtual node.
format: int64
type: integer
useSourceIp:
description: Hash based on the source IP address.
type: boolean
type: object
simple:
description: 'It is required to specify exactly one
of the fields: Simple or ConsistentHash'
type: string
type: object
outlierDetection:
description: Settings controlling eviction of unhealthy
hosts from the load balancing pool
properties:
baseEjectionTime:
description: 'Minimum ejection duration. A host will
remain ejected for a period equal to the product of
minimum ejection duration and the number of times
the host has been ejected. This technique allows the
system to automatically increase the ejection period
for unhealthy upstream servers. format: 1h/1m/1s/1ms.
MUST BE >=1ms. Default is 30s.'
type: string
consecutiveErrors:
description: Number of errors before a host is ejected
from the connection pool. Defaults to 5. When the
upstream host is accessed over HTTP, a 5xx return
code qualifies as an error. When the upstream host
is accessed over an opaque TCP connection, connect
timeouts and connection error/failure events qualify
as an error.
format: int32
type: integer
interval:
description: 'Time interval between ejection sweep analysis.
format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 10s.'
type: string
maxEjectionPercent:
description: Maximum % of hosts in the load balancing
pool for the upstream service that can be ejected.
Defaults to 10%.
format: int32
type: integer
type: object
portLevelSettings:
description: Traffic policies specific to individual ports.
Note that port level settings will override the destination-level
settings. Traffic settings specified at the destination-level
will not be inherited when overridden by port-level settings,
i.e. default values will be applied to fields omitted
in port-level traffic policies.
items:
properties:
connectionPool:
description: Settings controlling the volume of connections
to an upstream service
properties:
http:
description: HTTP connection pool settings.
properties:
maxRequestsPerConnection:
description: Maximum number of requests per
connection to a backend. Setting this parameter
to 1 disables keep alive.
format: int32
type: integer
maxRetries:
description: Maximum number of retries that
can be outstanding to all hosts in a cluster
at a given time. Defaults to 3.
format: int32
type: integer
type: object
tcp:
description: Settings common to both HTTP and
TCP upstream connections.
properties:
connectTimeout:
description: TCP connection timeout.
type: string
maxConnections:
description: Maximum number of HTTP1 /TCP
connections to a destination host.
format: int32
type: integer
type: object
type: object
loadBalancer:
description: Settings controlling the load balancer
algorithms.
properties:
consistentHash:
properties:
httpCookie:
description: Hash based on HTTP cookie.
properties:
name:
description: REQUIRED. Name of the cookie.
type: string
path:
description: Path to set for the cookie.
type: string
ttl:
description: REQUIRED. Lifetime of the
cookie.
type: string
required:
- name
- ttl
type: object
httpHeaderName:
description: 'It is required to specify exactly
one of the fields as hash key: HttpHeaderName,
HttpCookie, or UseSourceIP. Hash based on
a specific HTTP header.'
type: string
minimumRingSize:
description: The minimum number of virtual
nodes to use for the hash ring. Defaults
to 1024. Larger ring sizes result in more
granular load distributions. If the number
of hosts in the load balancing pool is larger
than the ring size, each host will be assigned
a single virtual node.
format: int64
type: integer
useSourceIp:
description: Hash based on the source IP address.
type: boolean
type: object
simple:
description: 'It is required to specify exactly
one of the fields: Simple or ConsistentHash'
type: string
type: object
outlierDetection:
description: Settings controlling eviction of unhealthy
hosts from the load balancing pool
properties:
baseEjectionTime:
description: 'Minimum ejection duration. A host
will remain ejected for a period equal to the
product of minimum ejection duration and the
number of times the host has been ejected. This
technique allows the system to automatically
increase the ejection period for unhealthy upstream
servers. format: 1h/1m/1s/1ms. MUST BE >=1ms.
Default is 30s.'
type: string
consecutiveErrors:
description: Number of errors before a host is
ejected from the connection pool. Defaults to
5. When the upstream host is accessed over HTTP,
a 5xx return code qualifies as an error. When
the upstream host is accessed over an opaque
TCP connection, connect timeouts and connection
error/failure events qualify as an error.
format: int32
type: integer
interval:
description: 'Time interval between ejection sweep
analysis. format: 1h/1m/1s/1ms. MUST BE >=1ms.
Default is 10s.'
type: string
maxEjectionPercent:
description: Maximum % of hosts in the load balancing
pool for the upstream service that can be ejected.
Defaults to 10%.
format: int32
type: integer
type: object
port:
description: Specifies the port name or number of
a port on the destination service on which this
policy is being applied. Names must comply with
DNS label syntax (rfc1035) and therefore cannot
collide with numbers. If there are multiple ports
on a service with the same protocol the names should
be of the form <protocol-name>-<DNS label>.
properties:
name:
description: Valid port name
type: string
number:
description: Valid port number
format: int32
type: integer
type: object
tls:
description: TLS related settings for connections
to the upstream service.
properties:
caCertificates:
description: 'OPTIONAL: The path to the file containing
certificate authority certificates to use in
verifying a presented server certificate. If
omitted, the proxy will not verify the server''s
certificate. Should be empty if mode is `ISTIO_MUTUAL`.'
type: string
clientCertificate:
description: REQUIRED if mode is `MUTUAL`. The
path to the file holding the client-side TLS
certificate to use. Should be empty if mode
is `ISTIO_MUTUAL`.
type: string
mode:
description: 'REQUIRED: Indicates whether connections
to this port should be secured using TLS. The
value of this field determines how TLS is enforced.'
type: string
privateKey:
description: REQUIRED if mode is `MUTUAL`. The
path to the file holding the client's private
key. Should be empty if mode is `ISTIO_MUTUAL`.
type: string
sni:
description: SNI string to present to the server
during TLS handshake. Should be empty if mode
is `ISTIO_MUTUAL`.
type: string
subjectAltNames:
description: A list of alternate names to verify
the subject identity in the certificate. If
specified, the proxy will verify that the server
certificate's subject alt name matches one of
the specified values. Should be empty if mode
is `ISTIO_MUTUAL`.
items:
type: string
type: array
required:
- mode
type: object
required:
- port
type: object
type: array
tls:
description: TLS related settings for connections to the
upstream service.
properties:
caCertificates:
description: 'OPTIONAL: The path to the file containing
certificate authority certificates to use in verifying
a presented server certificate. If omitted, the proxy
will not verify the server''s certificate. Should
be empty if mode is `ISTIO_MUTUAL`.'
type: string
clientCertificate:
description: REQUIRED if mode is `MUTUAL`. The path
to the file holding the client-side TLS certificate
to use. Should be empty if mode is `ISTIO_MUTUAL`.
type: string
mode:
description: 'REQUIRED: Indicates whether connections
to this port should be secured using TLS. The value
of this field determines how TLS is enforced.'
type: string
privateKey:
description: REQUIRED if mode is `MUTUAL`. The path
to the file holding the client's private key. Should
be empty if mode is `ISTIO_MUTUAL`.
type: string
sni:
description: SNI string to present to the server during
TLS handshake. Should be empty if mode is `ISTIO_MUTUAL`.
type: string
subjectAltNames:
description: A list of alternate names to verify the
subject identity in the certificate. If specified,
the proxy will verify that the server certificate's
subject alt name matches one of the specified values.
Should be empty if mode is `ISTIO_MUTUAL`.
items:
type: string
type: array
required:
- mode
type: object
type: object
required:
- host
type: object
type: object
type: object
status:
type: object
version: v1alpha2
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -1,787 +0,0 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
labels:
controller-tools.k8s.io: "1.0"
name: strategies.servicemesh.kubesphere.io
spec:
additionalPrinterColumns:
- JSONPath: .spec.type
description: type of strategy
name: Type
type: string
- JSONPath: .spec.template.spec.hosts
description: destination hosts
name: Hosts
type: string
- JSONPath: .metadata.creationTimestamp
description: 'CreationTimestamp is a timestamp representing the server time when
this object was created. It is not guaranteed to be set in happens-before order
across separate operations. Clients may not set this value. It is represented
in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for
lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata'
name: Age
type: date
group: servicemesh.kubesphere.io
names:
kind: Strategy
plural: strategies
scope: Namespaced
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
governor:
description: Governor version, the version takes control of all incoming
traffic label version value
type: string
principal:
description: Principal version, the one as reference version label version
value
type: string
selector:
description: Label selector for virtual services.
type: object
strategyPolicy:
description: strategy policy, how the strategy will be applied by the
strategy controller
type: string
template:
description: Template describes the virtual service that will be created.
properties:
metadata:
description: Metadata of the virtual services created from this
template
type: object
spec:
description: Spec indicates the behavior of a virtual service.
properties:
gateways:
description: The names of gateways and sidecars that should
apply these routes. A single VirtualService is used for sidecars
inside the mesh as well as for one or more gateways. The selection
condition imposed by this field can be overridden using the
source field in the match conditions of HTTP/TCP routes. The
reserved word "mesh" is used to imply all the sidecars in
the mesh. When this field is omitted, the default gateway
("mesh") will be used, which would apply the rule to all sidecars
in the mesh. If a list of gateway names is provided, the rules
will apply only to the gateways. To apply the rules to both
gateways and sidecars, specify "mesh" as one of the gateway
names.
items:
type: string
type: array
hosts:
description: REQUIRED. The destination address for traffic captured
by this virtual service. Could be a DNS name with wildcard
prefix or a CIDR prefix. Depending on the platform, short-names
can also be used instead of a FQDN (i.e. has no dots in the
name). In such a scenario, the FQDN of the host would be derived
based on the underlying platform. For example on Kubernetes,
when hosts contains a short name, Istio will interpret the
short name based on the namespace of the rule. Thus, when
a client namespace applies a rule in the "default" namespace
containing a name "reviews, Istio will setup routes to the
"reviews.default.svc.cluster.local" service. However, if a
different name such as "reviews.sales.svc.cluster.local" is
used, it would be treated as a FQDN during virtual host matching.
In Consul, a plain service name would be resolved to the FQDN
"reviews.service.consul". Note that the hosts field applies
to both HTTP and TCP services. Service inside the mesh, i.e.,
those found in the service registry, must always be referred
to using their alphanumeric names. IP addresses or CIDR prefixes
are allowed only for services defined via the Gateway.
items:
type: string
type: array
http:
description: An ordered list of route rules for HTTP traffic.
The first rule matching an incoming request is used.
items:
properties:
appendHeaders:
description: Additional HTTP headers to add before forwarding
a request to the destination service.
type: object
corsPolicy:
description: Cross-Origin Resource Sharing policy
properties:
allowCredentials:
description: Indicates whether the caller is allowed
to send the actual request (not the preflight) using
credentials. Translates to Access-Control-Allow-Credentials
header.
type: boolean
allowHeaders:
description: List of HTTP headers that can be used
when requesting the resource. Serialized to Access-Control-Allow-Methods
header.
items:
type: string
type: array
allowMethods:
description: List of HTTP methods allowed to access
the resource. The content will be serialized into
the Access-Control-Allow-Methods header.
items:
type: string
type: array
allowOrigin:
description: The list of origins that are allowed
to perform CORS requests. The content will be serialized
into the Access-Control-Allow-Origin header. Wildcard
* will allow all origins.
items:
type: string
type: array
exposeHeaders:
description: A white list of HTTP headers that the
browsers are allowed to access. Serialized into
Access-Control-Expose-Headers header.
items:
type: string
type: array
maxAge:
description: Specifies how long the the results of
a preflight request can be cached. Translates to
the Access-Control-Max-Age header.
type: string
type: object
fault:
description: Fault injection policy to apply on HTTP traffic.
properties:
abort:
description: Abort Http request attempts and return
error codes back to downstream service, giving the
impression that the upstream service is faulty.
properties:
httpStatus:
description: REQUIRED. HTTP status code to use
to abort the Http request.
format: int64
type: integer
percent:
description: Percentage of requests to be aborted
with the error code provided (0-100).
format: int64
type: integer
required:
- httpStatus
type: object
delay:
description: Delay requests before forwarding, emulating
various failures such as network issues, overloaded
upstream service, etc.
properties:
exponentialDelay:
description: (-- Add a delay (based on an exponential
function) before forwarding the request. mean
delay needed to derive the exponential delay
values --)
type: string
fixedDelay:
description: 'REQUIRED. Add a fixed delay before
forwarding the request. Format: 1h/1m/1s/1ms.
MUST be >=1ms.'
type: string
percent:
description: Percentage of requests on which the
delay will be injected (0-100).
format: int64
type: integer
required:
- fixedDelay
type: object
type: object
match:
description: Match conditions to be satisfied for the
rule to be activated. All conditions inside a single
match block have AND semantics, while the list of match
blocks have OR semantics. The rule is matched if any
one of the match blocks succeed.
items:
properties:
authority:
description: 'HTTP Authority values are case-sensitive
and formatted as follows: - `exact: "value"`
for exact string match - `prefix: "value"` for
prefix-based match - `regex: "value"` for ECMAscript
style regex-based match'
properties:
exact:
description: exact string match
type: string
prefix:
description: prefix-based match
type: string
regex:
description: ECMAscript style regex-based match
type: string
suffix:
description: suffix-based match.
type: string
type: object
gateways:
description: Names of gateways where the rule should
be applied to. Gateway names at the top of the
VirtualService (if any) are overridden. The gateway
match is independent of sourceLabels.
items:
type: string
type: array
headers:
description: 'The header keys must be lowercase
and use hyphen as the separator, e.g. _x-request-id_. Header
values are case-sensitive and formatted as follows: -
`exact: "value"` for exact string match - `prefix:
"value"` for prefix-based match - `regex: "value"`
for ECMAscript style regex-based match **Note:**
The keys `uri`, `scheme`, `method`, and `authority`
will be ignored.'
type: object
method:
description: 'HTTP Method values are case-sensitive
and formatted as follows: - `exact: "value"`
for exact string match - `prefix: "value"` for
prefix-based match - `regex: "value"` for ECMAscript
style regex-based match'
properties:
exact:
description: exact string match
type: string
prefix:
description: prefix-based match
type: string
regex:
description: ECMAscript style regex-based match
type: string
suffix:
description: suffix-based match.
type: string
type: object
port:
description: Specifies the ports on the host that
is being addressed. Many services only expose
a single port or label ports with the protocols
they support, in these cases it is not required
to explicitly select the port.
format: int32
type: integer
scheme:
description: 'URI Scheme values are case-sensitive
and formatted as follows: - `exact: "value"`
for exact string match - `prefix: "value"` for
prefix-based match - `regex: "value"` for ECMAscript
style regex-based match'
properties:
exact:
description: exact string match
type: string
prefix:
description: prefix-based match
type: string
regex:
description: ECMAscript style regex-based match
type: string
suffix:
description: suffix-based match.
type: string
type: object
sourceLabels:
description: One or more labels that constrain the
applicability of a rule to workloads with the
given labels. If the VirtualService has a list
of gateways specified at the top, it should include
the reserved gateway `mesh` in order for this
field to be applicable.
type: object
uri:
description: 'URI to match values are case-sensitive
and formatted as follows: - `exact: "value"`
for exact string match - `prefix: "value"` for
prefix-based match - `regex: "value"` for ECMAscript
style regex-based match'
properties:
exact:
description: exact string match
type: string
prefix:
description: prefix-based match
type: string
regex:
description: ECMAscript style regex-based match
type: string
suffix:
description: suffix-based match.
type: string
type: object
type: object
type: array
mirror:
description: Mirror HTTP traffic to a another destination
in addition to forwarding the requests to the intended
destination. Mirrored traffic is on a best effort basis
where the sidecar/gateway will not wait for the mirrored
cluster to respond before returning the response from
the original destination. Statistics will be generated
for the mirrored destination.
properties:
host:
description: 'REQUIRED. The name of a service from
the service registry. Service names are looked up
from the platform''s service registry (e.g., Kubernetes
services, Consul services, etc.) and from the hosts
declared by [ServiceEntry](#ServiceEntry). Traffic
forwarded to destinations that are not found in
either of the two, will be dropped. *Note for Kubernetes
users*: When short names are used (e.g. "reviews"
instead of "reviews.default.svc.cluster.local"),
Istio will interpret the short name based on the
namespace of the rule, not the service. A rule in
the "default" namespace containing a host "reviews
will be interpreted as "reviews.default.svc.cluster.local",
irrespective of the actual namespace associated
with the reviews service. _To avoid potential misconfigurations,
it is recommended to always use fully qualified
domain names over short names._'
type: string
port:
description: Specifies the port on the host that is
being addressed. If a service exposes only a single
port it is not required to explicitly select the
port.
properties:
name:
description: Valid port name
type: string
number:
description: Valid port number
format: int32
type: integer
type: object
subset:
description: The name of a subset within the service.
Applicable only to services within the mesh. The
subset must be defined in a corresponding DestinationRule.
type: string
required:
- host
type: object
redirect:
description: A http rule can either redirect or forward
(default) traffic. If traffic passthrough option is
specified in the rule, route/redirect will be ignored.
The redirect primitive can be used to send a HTTP 302
redirect to a different URI or Authority.
properties:
authority:
description: On a redirect, overwrite the Authority/Host
portion of the URL with this value.
type: string
uri:
description: On a redirect, overwrite the Path portion
of the URL with this value. Note that the entire
path will be replaced, irrespective of the request
URI being matched as an exact path or prefix.
type: string
type: object
removeResponseHeaders:
description: Http headers to remove before returning the
response to the caller
type: object
retries:
description: Retry policy for HTTP requests.
properties:
attempts:
description: REQUIRED. Number of retries for a given
request. The interval between retries will be determined
automatically (25ms+). Actual number of retries
attempted depends on the httpReqTimeout.
format: int64
type: integer
perTryTimeout:
description: 'Timeout per retry attempt for a given
request. format: 1h/1m/1s/1ms. MUST BE >=1ms.'
type: string
required:
- attempts
- perTryTimeout
type: object
rewrite:
description: Rewrite HTTP URIs and Authority headers.
Rewrite cannot be used with Redirect primitive. Rewrite
will be performed before forwarding.
properties:
authority:
description: rewrite the Authority/Host header with
this value.
type: string
uri:
description: rewrite the path (or the prefix) portion
of the URI with this value. If the original URI
was matched based on prefix, the value provided
in this field will replace the corresponding matched
prefix.
type: string
type: object
route:
description: A http rule can either redirect or forward
(default) traffic. The forwarding target can be one
of several versions of a service (see glossary in beginning
of document). Weights associated with the service version
determine the proportion of traffic it receives.
items:
properties:
destination:
description: REQUIRED. Destination uniquely identifies
the instances of a service to which the request/connection
should be forwarded to.
properties:
host:
description: 'REQUIRED. The name of a service
from the service registry. Service names are
looked up from the platform''s service registry
(e.g., Kubernetes services, Consul services,
etc.) and from the hosts declared by [ServiceEntry](#ServiceEntry).
Traffic forwarded to destinations that are
not found in either of the two, will be dropped. *Note
for Kubernetes users*: When short names are
used (e.g. "reviews" instead of "reviews.default.svc.cluster.local"),
Istio will interpret the short name based
on the namespace of the rule, not the service.
A rule in the "default" namespace containing
a host "reviews will be interpreted as "reviews.default.svc.cluster.local",
irrespective of the actual namespace associated
with the reviews service. _To avoid potential
misconfigurations, it is recommended to always
use fully qualified domain names over short
names._'
type: string
port:
description: Specifies the port on the host
that is being addressed. If a service exposes
only a single port it is not required to explicitly
select the port.
properties:
name:
description: Valid port name
type: string
number:
description: Valid port number
format: int32
type: integer
type: object
subset:
description: The name of a subset within the
service. Applicable only to services within
the mesh. The subset must be defined in a
corresponding DestinationRule.
type: string
required:
- host
type: object
weight:
description: REQUIRED. The proportion of traffic
to be forwarded to the service version. (0-100).
Sum of weights across destinations SHOULD BE ==
100. If there is only destination in a rule, the
weight value is assumed to be 100.
format: int64
type: integer
required:
- destination
- weight
type: object
type: array
timeout:
description: Timeout for HTTP requests.
type: string
websocketUpgrade:
description: Indicates that a HTTP/1.1 client connection
to this particular route should be allowed (and expected)
to upgrade to a WebSocket connection. The default is
false. Istio's reference sidecar implementation (Envoy)
expects the first request to this route to contain the
WebSocket upgrade headers. Otherwise, the request will
be rejected. Note that Websocket allows secondary protocol
negotiation which may then be subject to further routing
rules based on the protocol selected.
type: boolean
type: object
type: array
tcp:
description: An ordered list of route rules for TCP traffic.
The first rule matching an incoming request is used.
items:
properties:
match:
description: Match conditions to be satisfied for the
rule to be activated. All conditions inside a single
match block have AND semantics, while the list of match
blocks have OR semantics. The rule is matched if any
one of the match blocks succeed.
items:
properties:
destinationSubnets:
description: IPv4 or IPv6 ip address of destination
with optional subnet. E.g., a.b.c.d/xx form or
just a.b.c.d.
items:
type: string
type: array
gateways:
description: Names of gateways where the rule should
be applied to. Gateway names at the top of the
VirtualService (if any) are overridden. The gateway
match is independent of sourceLabels.
items:
type: string
type: array
port:
description: Specifies the port on the host that
is being addressed. Many services only expose
a single port or label ports with the protocols
they support, in these cases it is not required
to explicitly select the port.
format: int64
type: integer
sourceLabels:
description: One or more labels that constrain the
applicability of a rule to workloads with the
given labels. If the VirtualService has a list
of gateways specified at the top, it should include
the reserved gateway `mesh` in order for this
field to be applicable.
type: object
type: object
type: array
route:
description: The destinations to which the connection
should be forwarded to. Weights must add to 100%.
items:
properties:
destination:
description: REQUIRED. Destination uniquely identifies
the instances of a service to which the request/connection
should be forwarded to.
properties:
host:
description: 'REQUIRED. The name of a service
from the service registry. Service names are
looked up from the platform''s service registry
(e.g., Kubernetes services, Consul services,
etc.) and from the hosts declared by [ServiceEntry](#ServiceEntry).
Traffic forwarded to destinations that are
not found in either of the two, will be dropped. *Note
for Kubernetes users*: When short names are
used (e.g. "reviews" instead of "reviews.default.svc.cluster.local"),
Istio will interpret the short name based
on the namespace of the rule, not the service.
A rule in the "default" namespace containing
a host "reviews will be interpreted as "reviews.default.svc.cluster.local",
irrespective of the actual namespace associated
with the reviews service. _To avoid potential
misconfigurations, it is recommended to always
use fully qualified domain names over short
names._'
type: string
port:
description: Specifies the port on the host
that is being addressed. If a service exposes
only a single port it is not required to explicitly
select the port.
properties:
name:
description: Valid port name
type: string
number:
description: Valid port number
format: int32
type: integer
type: object
subset:
description: The name of a subset within the
service. Applicable only to services within
the mesh. The subset must be defined in a
corresponding DestinationRule.
type: string
required:
- host
type: object
weight:
description: REQUIRED. The proportion of traffic
to be forwarded to the service version. (0-100).
Sum of weights across destinations SHOULD BE ==
100. If there is only destination in a rule, the
weight value is assumed to be 100.
format: int64
type: integer
required:
- destination
- weight
type: object
type: array
required:
- match
- route
type: object
type: array
tls:
items:
properties:
match:
description: REQUIRED. Match conditions to be satisfied
for the rule to be activated. All conditions inside
a single match block have AND semantics, while the list
of match blocks have OR semantics. The rule is matched
if any one of the match blocks succeed.
items:
properties:
destinationSubnets:
description: IPv4 or IPv6 ip addresses of destination
with optional subnet. E.g., a.b.c.d/xx form or
just a.b.c.d.
items:
type: string
type: array
gateways:
description: Names of gateways where the rule should
be applied to. Gateway names at the top of the
VirtualService (if any) are overridden. The gateway
match is independent of sourceLabels.
items:
type: string
type: array
port:
description: Specifies the port on the host that
is being addressed. Many services only expose
a single port or label ports with the protocols
they support, in these cases it is not required
to explicitly select the port.
format: int64
type: integer
sniHosts:
description: REQUIRED. SNI (server name indicator)
to match on. Wildcard prefixes can be used in
the SNI value, e.g., *.com will match foo.example.com
as well as example.com. An SNI value must be a
subset (i.e., fall within the domain) of the corresponding
virtual service's hosts
items:
type: string
type: array
sourceLabels:
description: One or more labels that constrain the
applicability of a rule to workloads with the
given labels. If the VirtualService has a list
of gateways specified at the top, it should include
the reserved gateway `mesh` in order for this
field to be applicable.
type: object
required:
- sniHosts
type: object
type: array
route:
description: The destination to which the connection should
be forwarded to.
items:
properties:
destination:
description: REQUIRED. Destination uniquely identifies
the instances of a service to which the request/connection
should be forwarded to.
properties:
host:
description: 'REQUIRED. The name of a service
from the service registry. Service names are
looked up from the platform''s service registry
(e.g., Kubernetes services, Consul services,
etc.) and from the hosts declared by [ServiceEntry](#ServiceEntry).
Traffic forwarded to destinations that are
not found in either of the two, will be dropped. *Note
for Kubernetes users*: When short names are
used (e.g. "reviews" instead of "reviews.default.svc.cluster.local"),
Istio will interpret the short name based
on the namespace of the rule, not the service.
A rule in the "default" namespace containing
a host "reviews will be interpreted as "reviews.default.svc.cluster.local",
irrespective of the actual namespace associated
with the reviews service. _To avoid potential
misconfigurations, it is recommended to always
use fully qualified domain names over short
names._'
type: string
port:
description: Specifies the port on the host
that is being addressed. If a service exposes
only a single port it is not required to explicitly
select the port.
properties:
name:
description: Valid port name
type: string
number:
description: Valid port number
format: int32
type: integer
type: object
subset:
description: The name of a subset within the
service. Applicable only to services within
the mesh. The subset must be defined in a
corresponding DestinationRule.
type: string
required:
- host
type: object
weight:
description: REQUIRED. The proportion of traffic
to be forwarded to the service version. (0-100).
Sum of weights across destinations SHOULD BE ==
100. If there is only destination in a rule, the
weight value is assumed to be 100.
format: int64
type: integer
required:
- destination
- weight
type: object
type: array
required:
- match
- route
type: object
type: array
required:
- hosts
type: object
type: object
type:
description: Strategy type
type: string
type: object
status:
type: object
version: v1alpha2
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,503 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.5
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/260"
creationTimestamp: null
name: volumesnapshotclasses.snapshot.storage.k8s.io
spec:
additionalPrinterColumns:
- JSONPath: .driver
name: Driver
type: string
- JSONPath: .deletionPolicy
description: Determines whether a VolumeSnapshotContent created through the VolumeSnapshotClass
should be deleted when its bound VolumeSnapshot is deleted.
name: DeletionPolicy
type: string
- JSONPath: .metadata.creationTimestamp
name: Age
type: date
group: snapshot.storage.k8s.io
names:
kind: VolumeSnapshotClass
listKind: VolumeSnapshotClassList
plural: volumesnapshotclasses
singular: volumesnapshotclass
preserveUnknownFields: false
scope: Cluster
subresources: {}
validation:
openAPIV3Schema:
description: VolumeSnapshotClass specifies parameters that a underlying storage
system uses when creating a volume snapshot. A specific VolumeSnapshotClass
is used by specifying its name in a VolumeSnapshot object. VolumeSnapshotClasses
are non-namespaced
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
deletionPolicy:
description: deletionPolicy determines whether a VolumeSnapshotContent created
through the VolumeSnapshotClass should be deleted when its bound VolumeSnapshot
is deleted. Supported values are "Retain" and "Delete". "Retain" means
that the VolumeSnapshotContent and its physical snapshot on underlying
storage system are kept. "Delete" means that the VolumeSnapshotContent
and its physical snapshot on underlying storage system are deleted. Required.
enum:
- Delete
- Retain
type: string
driver:
description: driver is the name of the storage driver that handles this
VolumeSnapshotClass. Required.
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
parameters:
additionalProperties:
type: string
description: parameters is a key-value map with storage driver specific
parameters for creating snapshots. These values are opaque to Kubernetes.
type: object
required:
- deletionPolicy
- driver
type: object
version: v1beta1
versions:
- name: v1beta1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.5
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/260"
creationTimestamp: null
name: volumesnapshotcontents.snapshot.storage.k8s.io
spec:
additionalPrinterColumns:
- JSONPath: .status.readyToUse
description: Indicates if a snapshot is ready to be used to restore a volume.
name: ReadyToUse
type: boolean
- JSONPath: .status.restoreSize
description: Represents the complete size of the snapshot in bytes
name: RestoreSize
type: integer
- JSONPath: .spec.deletionPolicy
description: Determines whether this VolumeSnapshotContent and its physical snapshot
on the underlying storage system should be deleted when its bound VolumeSnapshot
is deleted.
name: DeletionPolicy
type: string
- JSONPath: .spec.driver
description: Name of the CSI driver used to create the physical snapshot on the
underlying storage system.
name: Driver
type: string
- JSONPath: .spec.volumeSnapshotClassName
description: Name of the VolumeSnapshotClass to which this snapshot belongs.
name: VolumeSnapshotClass
type: string
- JSONPath: .spec.volumeSnapshotRef.name
description: Name of the VolumeSnapshot object to which this VolumeSnapshotContent
object is bound.
name: VolumeSnapshot
type: string
- JSONPath: .metadata.creationTimestamp
name: Age
type: date
group: snapshot.storage.k8s.io
names:
kind: VolumeSnapshotContent
listKind: VolumeSnapshotContentList
plural: volumesnapshotcontents
singular: volumesnapshotcontent
preserveUnknownFields: false
scope: Cluster
subresources:
status: {}
validation:
openAPIV3Schema:
description: VolumeSnapshotContent represents the actual "on-disk" snapshot
object in the underlying storage system
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
spec:
description: spec defines properties of a VolumeSnapshotContent created
by the underlying storage system. Required.
properties:
deletionPolicy:
description: deletionPolicy determines whether this VolumeSnapshotContent
and its physical snapshot on the underlying storage system should
be deleted when its bound VolumeSnapshot is deleted. Supported values
are "Retain" and "Delete". "Retain" means that the VolumeSnapshotContent
and its physical snapshot on underlying storage system are kept. "Delete"
means that the VolumeSnapshotContent and its physical snapshot on
underlying storage system are deleted. In dynamic snapshot creation
case, this field will be filled in with the "DeletionPolicy" field
defined in the VolumeSnapshotClass the VolumeSnapshot refers to. For
pre-existing snapshots, users MUST specify this field when creating
the VolumeSnapshotContent object. Required.
enum:
- Delete
- Retain
type: string
driver:
description: driver is the name of the CSI driver used to create the
physical snapshot on the underlying storage system. This MUST be the
same as the name returned by the CSI GetPluginName() call for that
driver. Required.
type: string
source:
description: source specifies from where a snapshot will be created.
This field is immutable after creation. Required.
properties:
snapshotHandle:
description: snapshotHandle specifies the CSI "snapshot_id" of a
pre-existing snapshot on the underlying storage system. This field
is immutable.
type: string
volumeHandle:
description: volumeHandle specifies the CSI "volume_id" of the volume
from which a snapshot should be dynamically taken from. This field
is immutable.
type: string
type: object
volumeSnapshotClassName:
description: name of the VolumeSnapshotClass to which this snapshot
belongs.
type: string
volumeSnapshotRef:
description: volumeSnapshotRef specifies the VolumeSnapshot object to
which this VolumeSnapshotContent object is bound. VolumeSnapshot.Spec.VolumeSnapshotContentName
field must reference to this VolumeSnapshotContent's name for the
bidirectional binding to be valid. For a pre-existing VolumeSnapshotContent
object, name and namespace of the VolumeSnapshot object MUST be provided
for binding to happen. This field is immutable after creation. Required.
properties:
apiVersion:
description: API version of the referent.
type: string
fieldPath:
description: 'If referring to a piece of an object instead of an
entire object, this string should contain a valid JSON/Go field
access statement, such as desiredState.manifest.containers[2].
For example, if the object reference is to a container within
a pod, this would take on a value like: "spec.containers{name}"
(where "name" refers to the name of the container that triggered
the event) or if no container name is specified "spec.containers[2]"
(container with index 2 in this pod). This syntax is chosen only
to have some well-defined way of referencing a part of an object.
TODO: this design is not final and this field is subject to change
in the future.'
type: string
kind:
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type: string
namespace:
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type: string
resourceVersion:
description: 'Specific resourceVersion to which this reference is
made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
type: string
uid:
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
type: string
type: object
required:
- deletionPolicy
- driver
- source
- volumeSnapshotRef
type: object
status:
description: status represents the current information of a snapshot.
properties:
creationTime:
description: creationTime is the timestamp when the point-in-time snapshot
is taken by the underlying storage system. In dynamic snapshot creation
case, this field will be filled in with the "creation_time" value
returned from CSI "CreateSnapshotRequest" gRPC call. For a pre-existing
snapshot, this field will be filled with the "creation_time" value
returned from the CSI "ListSnapshots" gRPC call if the driver supports
it. If not specified, it indicates the creation time is unknown. The
format of this field is a Unix nanoseconds time encoded as an int64.
On Unix, the command `date +%s%N` returns the current time in nanoseconds
since 1970-01-01 00:00:00 UTC.
format: int64
type: integer
error:
description: error is the latest observed error during snapshot creation,
if any.
properties:
message:
description: 'message is a string detailing the encountered error
during snapshot creation if specified. NOTE: message may be logged,
and it should not contain sensitive information.'
type: string
time:
description: time is the timestamp when the error was encountered.
format: date-time
type: string
type: object
readyToUse:
description: readyToUse indicates if a snapshot is ready to be used
to restore a volume. In dynamic snapshot creation case, this field
will be filled in with the "ready_to_use" value returned from CSI
"CreateSnapshotRequest" gRPC call. For a pre-existing snapshot, this
field will be filled with the "ready_to_use" value returned from the
CSI "ListSnapshots" gRPC call if the driver supports it, otherwise,
this field will be set to "True". If not specified, it means the readiness
of a snapshot is unknown.
type: boolean
restoreSize:
description: restoreSize represents the complete size of the snapshot
in bytes. In dynamic snapshot creation case, this field will be filled
in with the "size_bytes" value returned from CSI "CreateSnapshotRequest"
gRPC call. For a pre-existing snapshot, this field will be filled
with the "size_bytes" value returned from the CSI "ListSnapshots"
gRPC call if the driver supports it. When restoring a volume from
this snapshot, the size of the volume MUST NOT be smaller than the
restoreSize if it is specified, otherwise the restoration will fail.
If not specified, it indicates that the size is unknown.
format: int64
minimum: 0
type: integer
snapshotHandle:
description: snapshotHandle is the CSI "snapshot_id" of a snapshot on
the underlying storage system. If not specified, it indicates that
dynamic snapshot creation has either failed or it is still in progress.
type: string
type: object
required:
- spec
type: object
version: v1beta1
versions:
- name: v1beta1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.5
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/260"
creationTimestamp: null
name: volumesnapshots.snapshot.storage.k8s.io
spec:
additionalPrinterColumns:
- JSONPath: .status.readyToUse
description: Indicates if a snapshot is ready to be used to restore a volume.
name: ReadyToUse
type: boolean
- JSONPath: .spec.source.persistentVolumeClaimName
description: Name of the source PVC from where a dynamically taken snapshot will
be created.
name: SourcePVC
type: string
- JSONPath: .spec.source.volumeSnapshotContentName
description: Name of the VolumeSnapshotContent which represents a pre-provisioned
snapshot.
name: SourceSnapshotContent
type: string
- JSONPath: .status.restoreSize
description: Represents the complete size of the snapshot.
name: RestoreSize
type: string
- JSONPath: .spec.volumeSnapshotClassName
description: The name of the VolumeSnapshotClass requested by the VolumeSnapshot.
name: SnapshotClass
type: string
- JSONPath: .status.boundVolumeSnapshotContentName
description: The name of the VolumeSnapshotContent to which this VolumeSnapshot
is bound.
name: SnapshotContent
type: string
- JSONPath: .status.creationTime
description: Timestamp when the point-in-time snapshot is taken by the underlying
storage system.
name: CreationTime
type: date
- JSONPath: .metadata.creationTimestamp
name: Age
type: date
group: snapshot.storage.k8s.io
names:
kind: VolumeSnapshot
listKind: VolumeSnapshotList
plural: volumesnapshots
singular: volumesnapshot
preserveUnknownFields: false
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
description: VolumeSnapshot is a user's request for either creating a point-in-time
snapshot of a persistent volume, or binding to a pre-existing snapshot.
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
spec:
description: 'spec defines the desired characteristics of a snapshot requested
by a user. More info: https://kubernetes.io/docs/concepts/storage/volume-snapshots#volumesnapshots
Required.'
properties:
source:
description: source specifies where a snapshot will be created from.
This field is immutable after creation. Required.
properties:
persistentVolumeClaimName:
description: persistentVolumeClaimName specifies the name of the
PersistentVolumeClaim object in the same namespace as the VolumeSnapshot
object where the snapshot should be dynamically taken from. This
field is immutable.
type: string
volumeSnapshotContentName:
description: volumeSnapshotContentName specifies the name of a pre-existing
VolumeSnapshotContent object. This field is immutable.
type: string
type: object
volumeSnapshotClassName:
description: 'volumeSnapshotClassName is the name of the VolumeSnapshotClass
requested by the VolumeSnapshot. If not specified, the default snapshot
class will be used if one exists. If not specified, and there is no
default snapshot class, dynamic snapshot creation will fail. Empty
string is not allowed for this field. TODO(xiangqian): a webhook validation
on empty string. More info: https://kubernetes.io/docs/concepts/storage/volume-snapshot-classes'
type: string
required:
- source
type: object
status:
description: 'status represents the current information of a snapshot. NOTE:
status can be modified by sources other than system controllers, and must
not be depended upon for accuracy. Controllers should only use information
from the VolumeSnapshotContent object after verifying that the binding
is accurate and complete.'
properties:
boundVolumeSnapshotContentName:
description: 'boundVolumeSnapshotContentName represents the name of
the VolumeSnapshotContent object to which the VolumeSnapshot object
is bound. If not specified, it indicates that the VolumeSnapshot object
has not been successfully bound to a VolumeSnapshotContent object
yet. NOTE: Specified boundVolumeSnapshotContentName alone does not
mean binding is valid. Controllers MUST always verify bidirectional
binding between VolumeSnapshot and VolumeSnapshotContent to
avoid possible security issues.'
type: string
creationTime:
description: creationTime is the timestamp when the point-in-time snapshot
is taken by the underlying storage system. In dynamic snapshot creation
case, this field will be filled in with the "creation_time" value
returned from CSI "CreateSnapshotRequest" gRPC call. For a pre-existing
snapshot, this field will be filled with the "creation_time" value
returned from the CSI "ListSnapshots" gRPC call if the driver supports
it. If not specified, it indicates that the creation time of the snapshot
is unknown.
format: date-time
type: string
error:
description: error is the last observed error during snapshot creation,
if any. This field could be helpful to upper level controllers(i.e.,
application controller) to decide whether they should continue on
waiting for the snapshot to be created based on the type of error
reported.
properties:
message:
description: 'message is a string detailing the encountered error
during snapshot creation if specified. NOTE: message may be logged,
and it should not contain sensitive information.'
type: string
time:
description: time is the timestamp when the error was encountered.
format: date-time
type: string
type: object
readyToUse:
description: readyToUse indicates if a snapshot is ready to be used
to restore a volume. In dynamic snapshot creation case, this field
will be filled in with the "ready_to_use" value returned from CSI
"CreateSnapshotRequest" gRPC call. For a pre-existing snapshot, this
field will be filled with the "ready_to_use" value returned from the
CSI "ListSnapshots" gRPC call if the driver supports it, otherwise,
this field will be set to "True". If not specified, it means the readiness
of a snapshot is unknown.
type: boolean
restoreSize:
anyOf:
- type: integer
- type: string
description: restoreSize represents the complete size of the snapshot
in bytes. In dynamic snapshot creation case, this field will be filled
in with the "size_bytes" value returned from CSI "CreateSnapshotRequest"
gRPC call. For a pre-existing snapshot, this field will be filled
with the "size_bytes" value returned from the CSI "ListSnapshots"
gRPC call if the driver supports it. When restoring a volume from
this snapshot, the size of the volume MUST NOT be smaller than the
restoreSize if it is specified, otherwise the restoration will fail.
If not specified, it indicates that the size is unknown.
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
type: object
required:
- spec
type: object
version: v1beta1
versions:
- name: v1beta1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,110 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: provisionercapabilities.storage.kubesphere.io
spec:
group: storage.kubesphere.io
names:
kind: ProvisionerCapability
listKind: ProvisionerCapabilityList
plural: provisionercapabilities
singular: provisionercapability
scope: Namespaced
validation:
openAPIV3Schema:
description: ProvisionerCapability is the schema for the provisionercapability
API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: ProvisionerCapabilitySpec defines the desired state of ProvisionerCapability
properties:
features:
description: CapabilityFeatures describe storage features
properties:
snapshot:
description: SnapshotFeature describe snapshot features
properties:
create:
type: boolean
list:
type: boolean
required:
- create
- list
type: object
topology:
type: boolean
volume:
description: VolumeFeature describe volume features
properties:
attach:
type: boolean
clone:
type: boolean
create:
type: boolean
expandMode:
type: string
list:
type: boolean
stats:
type: boolean
required:
- attach
- clone
- create
- expandMode
- list
- stats
type: object
required:
- snapshot
- topology
- volume
type: object
pluginInfo:
description: PluginInfo describes plugin info
properties:
name:
type: string
version:
type: string
required:
- name
- version
type: object
required:
- features
- pluginInfo
type: object
required:
- spec
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,101 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: storageclasscapabilities.storage.kubesphere.io
spec:
group: storage.kubesphere.io
names:
kind: StorageClassCapability
listKind: StorageClassCapabilityList
plural: storageclasscapabilities
singular: storageclasscapability
scope: Namespaced
validation:
openAPIV3Schema:
description: StorageClassCapability is the Schema for the storage class capability
API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: StorageClassCapabilitySpec defines the desired state of StorageClassCapability
properties:
features:
description: CapabilityFeatures describe storage features
properties:
snapshot:
description: SnapshotFeature describe snapshot features
properties:
create:
type: boolean
list:
type: boolean
required:
- create
- list
type: object
topology:
type: boolean
volume:
description: VolumeFeature describe volume features
properties:
attach:
type: boolean
clone:
type: boolean
create:
type: boolean
expandMode:
type: string
list:
type: boolean
stats:
type: boolean
required:
- attach
- clone
- create
- expandMode
- list
- stats
type: object
required:
- snapshot
- topology
- volume
type: object
provisioner:
type: string
required:
- features
- provisioner
type: object
required:
- spec
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,58 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: workspaces.tenant.kubesphere.io
spec:
group: tenant.kubesphere.io
names:
categories:
- tenant
kind: Workspace
listKind: WorkspaceList
plural: workspaces
singular: workspace
scope: Cluster
validation:
openAPIV3Schema:
description: Workspace is the Schema for the workspaces API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: WorkspaceSpec defines the desired state of Workspace
properties:
manager:
type: string
networkIsolation:
type: boolean
type: object
status:
description: WorkspaceStatus defines the observed state of Workspace
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,111 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: workspacetemplates.tenant.kubesphere.io
spec:
group: tenant.kubesphere.io
names:
categories:
- tenant
kind: WorkspaceTemplate
listKind: WorkspaceTemplateList
plural: workspacetemplates
singular: workspacetemplate
scope: Cluster
validation:
openAPIV3Schema:
description: WorkspaceTemplate is the Schema for the workspacetemplates API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
overrides:
items:
properties:
clusterName:
type: string
clusterOverrides:
items:
properties:
op:
type: string
path:
type: string
value:
type: object
required:
- path
- value
type: object
type: array
required:
- clusterName
- clusterOverrides
type: object
type: array
placement:
properties:
clusterSelector:
properties:
matchLabels:
additionalProperties:
type: string
type: object
type: object
clusters:
items:
properties:
name:
type: string
required:
- name
type: object
type: array
type: object
template:
properties:
metadata:
type: object
spec:
description: WorkspaceSpec defines the desired state of Workspace
properties:
manager:
type: string
networkIsolation:
type: boolean
type: object
required:
- spec
type: object
required:
- placement
- template
type: object
type: object
version: v1alpha2
versions:
- name: v1alpha2
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -1,42 +0,0 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
labels:
controller-tools.k8s.io: "1.0"
name: workspaces.tenant.kubesphere.io
spec:
group: tenant.kubesphere.io
names:
kind: Workspace
plural: workspaces
scope: Cluster
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
manager:
type: string
type: object
status:
type: object
version: v1alpha1
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,212 @@
---
apiVersion: core.kubefed.io/v1beta1
kind: FederatedTypeConfig
metadata:
name: groupbindings.iam.kubesphere.io
spec:
federatedType:
group: types.kubefed.io
kind: FederatedGroupBinding
pluralName: federatedgroupbindings
scope: Cluster
version: v1beta1
propagation: Enabled
targetType:
group: iam.kubesphere.io
kind: GroupBinding
pluralName: groupbindings
scope: Cluster
version: v1alpha2
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: federatedgroupbindings.types.kubefed.io
spec:
group: types.kubefed.io
names:
kind: FederatedGroupBinding
listKind: FederatedGroupBindingList
plural: federatedgroupbindings
singular: federatedgroupbinding
scope: Cluster
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
overrides:
items:
properties:
clusterName:
type: string
clusterOverrides:
items:
properties:
op:
type: string
path:
type: string
value:
type: object
required:
- path
type: object
type: array
required:
- clusterName
type: object
type: array
placement:
properties:
clusterSelector:
description: A label selector is a label query over a set of resources.
The result of matchLabels and matchExpressions are ANDed. An empty
label selector matches all objects. A null label selector matches
no objects.
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements.
The requirements are ANDed.
items:
description: A label selector requirement is a selector that
contains values, a key, and an operator that relates the
key and values.
properties:
key:
description: key is the label key that the selector applies
to.
type: string
operator:
description: operator represents a key's relationship
to a set of values. Valid operators are In, NotIn, Exists
and DoesNotExist.
type: string
values:
description: values is an array of string values. If the
operator is In or NotIn, the values array must be non-empty.
If the operator is Exists or DoesNotExist, the values
array must be empty. This array is replaced during a
strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single
{key,value} in the matchLabels map is equivalent to an element
of matchExpressions, whose key field is "key", the operator
is "In", and the values array contains only "value". The requirements
are ANDed.
type: object
type: object
clusters:
items:
properties:
name:
type: string
required:
- name
type: object
type: array
type: object
template:
properties:
metadata:
type: object
groupRef:
description: GroupRef defines the desired relation of GroupBinding
properties:
apiGroup:
type: string
kind:
type: string
name:
type: string
type: object
users:
items:
type: string
type: array
type: object
required:
- placement
- template
type: object
status:
properties:
clusters:
items:
properties:
name:
type: string
status:
type: string
required:
- name
type: object
type: array
conditions:
items:
properties:
lastTransitionTime:
description: Last time the condition transit from one status to
another.
type: string
lastUpdateTime:
description: Last time reconciliation resulted in an error or
the last time a change was propagated to member clusters.
type: string
reason:
description: (brief) reason for the condition's last transition.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of cluster condition
type: string
required:
- status
- type
type: object
type: array
observedGeneration:
format: int64
type: integer
type: object
required:
- spec
type: object
version: v1beta1
versions:
- name: v1beta1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,200 @@
---
apiVersion: core.kubefed.io/v1beta1
kind: FederatedTypeConfig
metadata:
name: groups.iam.kubesphere.io
spec:
federatedType:
group: types.kubefed.io
kind: FederatedGroup
pluralName: federatedgroups
scope: Cluster
version: v1beta1
propagation: Enabled
targetType:
group: iam.kubesphere.io
kind: Group
pluralName: groups
scope: Cluster
version: v1alpha2
---
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: federatedgroups.types.kubefed.io
spec:
group: types.kubefed.io
names:
kind: FederatedGroup
listKind: FederatedGroupList
plural: federatedgroups
singular: federatedgroup
scope: Cluster
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
overrides:
items:
properties:
clusterName:
type: string
clusterOverrides:
items:
properties:
op:
type: string
path:
type: string
value:
type: object
required:
- path
type: object
type: array
required:
- clusterName
type: object
type: array
placement:
properties:
clusterSelector:
description: A label selector is a label query over a set of resources.
The result of matchLabels and matchExpressions are ANDed. An empty
label selector matches all objects. A null label selector matches
no objects.
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements.
The requirements are ANDed.
items:
description: A label selector requirement is a selector that
contains values, a key, and an operator that relates the
key and values.
properties:
key:
description: key is the label key that the selector applies
to.
type: string
operator:
description: operator represents a key's relationship
to a set of values. Valid operators are In, NotIn, Exists
and DoesNotExist.
type: string
values:
description: values is an array of string values. If the
operator is In or NotIn, the values array must be non-empty.
If the operator is Exists or DoesNotExist, the values
array must be empty. This array is replaced during a
strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single
{key,value} in the matchLabels map is equivalent to an element
of matchExpressions, whose key field is "key", the operator
is "In", and the values array contains only "value". The requirements
are ANDed.
type: object
type: object
clusters:
items:
properties:
name:
type: string
required:
- name
type: object
type: array
type: object
template:
properties:
spec:
description: GroupSpec defines the desired state of Group
type: object
type: object
required:
- placement
- template
type: object
status:
properties:
clusters:
items:
properties:
name:
type: string
status:
type: string
required:
- name
type: object
type: array
conditions:
items:
properties:
lastTransitionTime:
description: Last time the condition transit from one status to
another.
type: string
lastUpdateTime:
description: Last time reconciliation resulted in an error or
the last time a change was propagated to member clusters.
type: string
reason:
description: (brief) reason for the condition's last transition.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of cluster condition
type: string
required:
- status
- type
type: object
type: array
observedGeneration:
format: int64
type: integer
type: object
required:
- spec
type: object
version: v1beta1
versions:
- name: v1beta1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,164 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: federatednamespaces.types.kubefed.io
spec:
group: types.kubefed.io
names:
kind: FederatedNamespace
listKind: FederatedNamespaceList
plural: federatednamespaces
singular: federatednamespace
scope: Namespaced
versions:
- name: v1beta1
schema:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
overrides:
items:
properties:
clusterName:
type: string
clusterOverrides:
items:
properties:
op:
type: string
path:
type: string
value:
type: object
required:
- path
type: object
type: array
required:
- clusterName
type: object
type: array
placement:
properties:
clusterSelector:
description: A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
clusters:
items:
properties:
name:
type: string
required:
- name
type: object
type: array
type: object
template:
properties:
spec:
description: NamespaceSpec describes the attributes on a Namespace.
properties:
finalizers:
description: 'Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/'
items:
description: FinalizerName is the name identifying a finalizer during namespace lifecycle.
type: string
type: array
type: object
type: object
required:
- placement
- template
type: object
status:
properties:
clusters:
items:
properties:
name:
type: string
status:
type: string
required:
- name
type: object
type: array
conditions:
items:
properties:
lastTransitionTime:
description: Last time the condition transit from one status to another.
type: string
lastUpdateTime:
description: Last time reconciliation resulted in an error or the last time a change was propagated to member clusters.
type: string
reason:
description: (brief) reason for the condition's last transition.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of cluster condition
type: string
required:
- status
- type
type: object
type: array
observedGeneration:
format: int64
type: integer
type: object
required:
- spec
type: object
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,393 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: federatednotificationconfigs.types.kubefed.io
spec:
group: types.kubefed.io
names:
kind: FederatedNotificationConfig
listKind: FederatedNotificationConfigList
plural: federatednotificationconfigs
singular: federatednotificationconfig
scope: Cluster
versions:
- name: v1beta1
schema:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
overrides:
items:
properties:
clusterName:
type: string
clusterOverrides:
items:
properties:
op:
type: string
path:
type: string
value:
type: object
required:
- path
type: object
type: array
required:
- clusterName
type: object
type: array
placement:
properties:
clusterSelector:
description: A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
clusters:
items:
properties:
name:
type: string
required:
- name
type: object
type: array
type: object
template:
properties:
metadata:
type: object
x-kubernetes-preserve-unknown-fields: true
spec:
description: ConfigSpec defines the desired state of Config
properties:
dingtalk:
properties:
conversation:
description: Only needed when send alerts to the conversation.
properties:
appkey:
description: The key of the application with which to send messages.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
appsecret:
description: The key in the secret to be used. Must be a valid secret key.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
type: object
labels:
additionalProperties:
type: string
type: object
type: object
email:
properties:
authIdentify:
description: The identity for PLAIN authentication.
type: string
authPassword:
description: The secret contains the SMTP password for LOGIN and PLAIN authentications.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
authSecret:
description: The secret contains the SMTP secret for CRAM-MD5 authentication.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
authUsername:
description: The username for CRAM-MD5, LOGIN and PLAIN authentications.
type: string
from:
description: The sender address.
type: string
hello:
description: The hostname to use when identifying to the SMTP server.
type: string
labels:
additionalProperties:
type: string
type: object
requireTLS:
description: The default SMTP TLS requirement.
type: boolean
smartHost:
description: The address of the SMTP server.
properties:
host:
type: string
port:
type: integer
required:
- host
- port
type: object
tls:
description: TLSConfig configures the options for TLS connections.
properties:
clientCertificate:
description: The certificate of the client.
properties:
cert:
description: The client cert file for the targets.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
key:
description: The client key file for the targets.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
type: object
insecureSkipVerify:
description: Disable target certificate validation.
type: boolean
rootCA:
description: RootCA defines the root certificate authorities that clients use when verifying server certificates.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
serverName:
description: Used to verify the hostname for the targets.
type: string
type: object
required:
- from
- smartHost
type: object
slack:
properties:
labels:
additionalProperties:
type: string
type: object
slackTokenSecret:
description: The token of user or bot.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
type: object
webhook:
properties:
labels:
additionalProperties:
type: string
type: object
type: object
wechat:
properties:
labels:
additionalProperties:
type: string
type: object
wechatApiAgentId:
description: The id of the application which sending message.
type: string
wechatApiCorpId:
description: The corp id for authentication.
type: string
wechatApiSecret:
description: The API key to use when talking to the WeChat API.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
wechatApiUrl:
description: The WeChat API URL.
type: string
required:
- wechatApiAgentId
- wechatApiCorpId
- wechatApiSecret
type: object
type: object
type: object
required:
- placement
- template
type: object
status:
properties:
clusters:
items:
properties:
name:
type: string
status:
type: string
required:
- name
type: object
type: array
conditions:
items:
properties:
lastTransitionTime:
description: Last time the condition transit from one status to another.
type: string
lastUpdateTime:
description: Last time reconciliation resulted in an error or the last time a change was propagated to member clusters.
type: string
reason:
description: (brief) reason for the condition's last transition.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of cluster condition
type: string
required:
- status
- type
type: object
type: array
observedGeneration:
format: int64
type: integer
type: object
required:
- spec
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,700 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: federatednotificationreceivers.types.kubefed.io
spec:
group: types.kubefed.io
names:
kind: FederatedNotificationReceiver
listKind: FederatedNotificationReceiverList
plural: federatednotificationreceivers
singular: federatednotificationreceiver
scope: Cluster
versions:
- name: v1beta1
schema:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
overrides:
items:
properties:
clusterName:
type: string
clusterOverrides:
items:
properties:
op:
type: string
path:
type: string
value:
type: object
required:
- path
type: object
type: array
required:
- clusterName
type: object
type: array
placement:
properties:
clusterSelector:
description: A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
clusters:
items:
properties:
name:
type: string
required:
- name
type: object
type: array
type: object
template:
properties:
metadata:
type: object
x-kubernetes-preserve-unknown-fields: true
spec:
description: ReceiverSpec defines the desired state of Receiver
properties:
dingtalk:
properties:
alertSelector:
description: Selector to filter alerts.
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
chatbot:
description: Be careful, a ChatBot only can send 20 message per minute.
properties:
keywords:
description: Custom keywords of ChatBot
items:
type: string
type: array
secret:
description: Secret of ChatBot, you can get it after enabled Additional Signature of ChatBot.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
webhook:
description: The webhook of ChatBot which the message will send to.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
required:
- webhook
type: object
conversation:
description: The conversation which message will send to.
properties:
chatids:
items:
type: string
type: array
required:
- chatids
type: object
dingtalkConfigSelector:
description: DingTalkConfig to be selected for this receiver
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
enabled:
description: whether the receiver is enabled
type: boolean
type: object
email:
properties:
alertSelector:
description: Selector to filter alerts.
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
emailConfigSelector:
description: EmailConfig to be selected for this receiver
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
enabled:
description: whether the receiver is enabled
type: boolean
to:
description: Receivers' email addresses
items:
type: string
type: array
required:
- to
type: object
slack:
properties:
alertSelector:
description: Selector to filter alerts.
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
channels:
description: The channel or user to send notifications to.
items:
type: string
type: array
enabled:
description: whether the receiver is enabled
type: boolean
slackConfigSelector:
description: SlackConfig to be selected for this receiver
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
required:
- channels
type: object
webhook:
properties:
alertSelector:
description: Selector to filter alerts.
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
enabled:
description: whether the receiver is enabled
type: boolean
httpConfig:
description: HTTPClientConfig configures an HTTP client.
properties:
basicAuth:
description: The HTTP basic authentication credentials for the targets.
properties:
password:
description: SecretKeySelector selects a key of a Secret.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
username:
type: string
required:
- username
type: object
bearerToken:
description: The bearer token for the targets.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
proxyUrl:
description: HTTP proxy server to use to connect to the targets.
type: string
tlsConfig:
description: TLSConfig to use to connect to the targets.
properties:
clientCertificate:
description: The certificate of the client.
properties:
cert:
description: The client cert file for the targets.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
key:
description: The client key file for the targets.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
type: object
insecureSkipVerify:
description: Disable target certificate validation.
type: boolean
rootCA:
description: RootCA defines the root certificate authorities that clients use when verifying server certificates.
properties:
key:
description: The key of the secret to select from. Must be a valid secret key.
type: string
name:
description: Name of the secret.
type: string
namespace:
description: The namespace of the secret, default to the pod's namespace.
type: string
required:
- key
type: object
serverName:
description: Used to verify the hostname for the targets.
type: string
type: object
type: object
service:
description: "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified. \n If the webhook is running within the cluster, then you should use `service`."
properties:
name:
description: '`name` is the name of the service. Required'
type: string
namespace:
description: '`namespace` is the namespace of the service. Required'
type: string
path:
description: '`path` is an optional URL path which will be sent in any request to this service.'
type: string
port:
description: If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).
format: int32
type: integer
scheme:
description: Http scheme, default is http.
type: string
required:
- name
- namespace
type: object
url:
description: "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. \n The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some api servers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. \n Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. \n A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. \n Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either."
type: string
webhookConfigSelector:
description: WebhookConfig to be selected for this receiver
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
type: object
wechat:
properties:
alertSelector:
description: Selector to filter alerts.
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
enabled:
description: whether the receiver is enabled
type: boolean
toParty:
items:
type: string
type: array
toTag:
items:
type: string
type: array
toUser:
items:
type: string
type: array
wechatConfigSelector:
description: WechatConfig to be selected for this receiver
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
type: object
type: object
type: object
required:
- placement
- template
type: object
status:
properties:
clusters:
items:
properties:
name:
type: string
status:
type: string
required:
- name
type: object
type: array
conditions:
items:
properties:
lastTransitionTime:
description: Last time the condition transit from one status to another.
type: string
lastUpdateTime:
description: Last time reconciliation resulted in an error or the last time a change was propagated to member clusters.
type: string
reason:
description: (brief) reason for the condition's last transition.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of cluster condition
type: string
required:
- status
- type
type: object
type: array
observedGeneration:
format: int64
type: integer
type: object
required:
- spec
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

View File

@@ -0,0 +1,165 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: federatedsecrets.types.kubefed.io
spec:
group: types.kubefed.io
names:
kind: FederatedSecret
listKind: FederatedSecretList
plural: federatedsecrets
singular: federatedsecret
scope: Namespaced
versions:
- name: v1beta1
schema:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
overrides:
items:
properties:
clusterName:
type: string
clusterOverrides:
items:
properties:
op:
type: string
path:
type: string
value:
type: object
required:
- path
type: object
type: array
required:
- clusterName
type: object
type: array
placement:
properties:
clusterSelector:
description: A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
clusters:
items:
properties:
name:
type: string
required:
- name
type: object
type: array
type: object
template:
properties:
data:
additionalProperties:
format: byte
type: string
type: object
stringData:
additionalProperties:
type: string
type: object
type:
type: string
type: object
required:
- placement
- template
type: object
status:
properties:
clusters:
items:
properties:
name:
type: string
status:
type: string
required:
- name
type: object
type: array
conditions:
items:
properties:
lastTransitionTime:
description: Last time the condition transit from one status to another.
type: string
lastUpdateTime:
description: Last time reconciliation resulted in an error or the last time a change was propagated to member clusters.
type: string
reason:
description: (brief) reason for the condition's last transition.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of cluster condition
type: string
required:
- status
- type
type: object
type: array
observedGeneration:
format: int64
type: integer
type: object
required:
- spec
type: object
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

Some files were not shown because too many files have changed in this diff Show More