Mohamed Awnallah
32a85f0df3
operator/pkg/util: unit test naming
...
In this commit, we unit test naming `generateResourceName` utility
on given karmada component name and suffix.
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-10 16:49:33 +03:00
Mohamed Awnallah
9afcc155a2
operator/pkg/util: unit test endpoint
...
In this commit, we unit test endpoint on getting control plane
endpoint and API Service IP.
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-10 10:47:17 +03:00
Mohamed Awnallah
ecdc909505
operator/pkg/tasks: unit test apiserver
...
In this commit, we introduce unit tests for the apiserver init
task in the operator pkg by testing the running and waiting operations
on Karmada API Server and Karmada Aggregated API Server.
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-10 07:54:54 +03:00
Mohamed Awnallah
fdf7b53586
operator/pkg: add test helpers
...
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-09 04:57:48 +03:00
karmada-bot
59e302558d
Merge pull request #5616 from mohamedawnallah/dependOnClientSetInterface
...
operator+pkg: depend on `clientset.Interface` instead of `*clientset.Clientset`
2024-09-29 15:11:12 +08:00
Mohamed Awnallah
a640f0969f
operator+pkg: depend on clientset.Interface for DI
...
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-27 15:35:40 +03:00
Mohamed Awnallah
6c490dcefa
operator: depend on aggregator.Interface for DI
...
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-27 15:16:25 +03:00
karmada-bot
4f7dc2c409
Merge pull request #5605 from mohamedawnallah/unitTestWebhookConfigurationKarmadaOperator
...
operator/pkg/karmadaresource: unit test `ValidatingWebhookConfiguration` and `MutatingWebhookConfiguration`
2024-09-26 11:22:10 +08:00
karmada-bot
53c4697d6f
Merge pull request #5607 from mohamedawnallah/unitTestSchemeKarmadaOperator
...
operator/pkg/scheme: unit test scheme
2024-09-26 09:58:09 +08:00
Mohamed Awnallah
43a933ca52
operator/pkg: test scheme
...
In this commit, we unit test the init scheme functionality of the operator
by checking that both k8s core scheme and operator v1alpha1 scheme are added.
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-25 22:54:16 +03:00
Mohamed Awnallah
b020df1d2c
operator/pkg: test webhook configurations
...
In this commit, we introduce unit tests for mutating and validating webhook
configurations to make sure they are working as expected.
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-25 17:46:56 +03:00
karmada-bot
5e36f170e5
Merge pull request #5593 from mohamedawnallah/updateOperatorTagInstallationDocs
...
operator/README.md: redirect users to the latest `karmada-operator` released tag
2024-09-25 10:55:09 +08:00
karmada-bot
5f7fc4fe8e
Merge pull request #5572 from chaosi-zju/operator-rbac
...
`karmada-operator`: Grand proxy permission to system:admin
2024-09-24 16:55:08 +08:00
chaosi-zju
25357ee5b4
authorize system:admin to proxy member clusters during installation
...
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-09-24 11:47:18 +08:00
Mohamed Awnallah
5d806be8b8
operator: redirect users to latest operator tag
...
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-23 15:23:32 +03:00
karmada-bot
9f23d2961d
Merge pull request #5552 from chaosi-zju/bind-descheduler
...
Remove deprecated --bind-address and --secure-port from karmada-descheduler
2024-09-23 14:47:07 +08:00
Mohamed Awnallah
22221c4cca
operator/pkg/controlplane: test controlplane
...
In this commit, we add unit tests for Kube Controller Manager,
Karmada Controller Manager, Karmada Scheduler, and Karmada Descheduler
components.
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-23 09:26:16 +03:00
Mohamed Awnallah
92963065ff
operator/pkg/controlplane: test karmada webhook
...
In this commit, we include unit tests for karmada webhook in the operator
controlplane package making sure that installing karmada webhook and its associated
service are working as expected.
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-22 12:50:21 +03:00
chaosi-zju
6edb9cee1e
Remove deprecated --bind-address and --secure-port from karmada-descheduler
...
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-09-21 10:59:24 +08:00
chaosi-zju
03023103d6
Remove deprecated --bind-address and --secure-port from karmada-scheduler
...
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-09-20 18:10:37 +08:00
Mohamed Awnallah
89794f167b
operator/pkg/certs: fix null ptr deref in altnames
...
In this commit, we fix th null pointer dereference issue
that happens in altnames mutators for both Karmada APIServer
and EtcdServer when accessing the `Components` field on
`AltNamesMutatorConfig` struct.
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-16 11:39:55 +03:00
Joe Nathan Abellard
24d9e12e5c
Set Karmada Cert Secret Used For Configurating mTLS for Scheduler & Descheduler Components
...
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2024-09-13 16:14:31 -04:00
karmada-bot
4dfff39d56
Merge pull request #5509 from jabellard/volumes_bindings_api_server
...
Support to Specify Extra Volumes and Volume Mounts for Karmada API Server Component
2024-09-12 20:34:58 +08:00
Joe Nathan Abellard
c45b817e74
Initial structure
...
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
Initial structure
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
Update api
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
Update api
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2024-09-12 07:41:13 -04:00
Lan Liang
0395765962
Update karmada-apiserve and kube-controller-manager to v1.30.4 by default.
...
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-09-10 13:59:13 +00:00
zhzhuang-zju
e2392fb07c
chore: remove redundancy certificate configuration
...
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-09-03 20:07:23 +08:00
chaosi-zju
aef704732e
Expose metrics port for operator installation #5428
...
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-08-30 11:51:55 +08:00
karmada-bot
d16f0985ec
Merge pull request #5437 from liangyuanpeng/scheduler_options
...
Standardize the health probe and metrics arguments of scheduler.
2024-08-28 09:11:45 +08:00
Lan Liang
0fceab521a
Standardize the health probe and metrics arguments of scheduler.
...
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-08-27 12:37:21 +00:00
karmada-bot
9a678b65f0
Merge pull request #5290 from seanlaii/controller-manager-options
...
Standardize the health probe argument of karmada-controller-manager
2024-08-27 18:37:45 +08:00
wei-chenglai
f6d022f799
Standardize the health probe argument of karmada-controller-manager
...
Signed-off-by: wei-chenglai <qazwsx0939059006@gmail.com>
2024-08-27 16:29:01 +08:00
whitewindmills
d9ecf2a9ca
Standardize the health probe and metrics arguments of descheduler
...
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-08-27 14:32:00 +08:00
Anuj Agrawal
ed82127cbc
Added tests for operator/pkg/controller/context
...
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-08-24 23:10:35 +05:30
karmada-bot
04c384444f
Merge pull request #5185 from jabellard/custom_crd_url2
...
Custom CRD Download Strategy Support for Karmada Operator
2024-08-09 11:57:29 +08:00
Joe Nathan Abellard
1ae5bd1924
Initial strucutre
...
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
Update crds
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
Remove debug logs
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
Remove debug logs
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
Remove debug logs
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
Remove debug logs
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
Fix linting errors
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
Address comments
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
Update api
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
Update api
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
Address comments
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
Address comments
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
Address comments
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2024-08-06 12:15:16 -04:00
Michael Grosser
f4df03f6e0
add karmada.io/system label to created clusterrole+bindings
...
Signed-off-by: Michael Grosser <michael@grosser.it>
2024-07-31 18:46:21 -07:00
Michael Grosser
afc1e5fc89
relabel webhooks to make it obvious they belong to karmada
...
Signed-off-by: Michael Grosser <michael@grosser.it>
2024-07-24 19:45:52 -07:00
karmada-bot
871e2bffe2
Merge pull request #5174 from whitewindmills/operator-options
...
Add missing command line arguments for karmada-operator
2024-07-18 16:48:10 +08:00
whitewindmills
a9853d067e
Add missing command line arguments for karmada-operator
...
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-07-18 15:51:02 +08:00
Lan Liang
70cb862478
Update karmada-apiserve and kube-controller-manager to v1.29.6 by default.
...
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-07-16 14:01:19 +00:00
RainbowMango
448b967421
Update crd gen
...
update swagger
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-07-13 16:48:51 +08:00
RainbowMango
f2b37a43a3
Unify column names and add missing age column
...
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-07-04 18:15:37 +08:00
renxiangyu_yewu
11f8fe3161
Improve code reusability
...
Signed-off-by: renxiangyu_yewu <renxiangyu_yewu@cmss.chinamobile.com>
2024-07-03 17:59:29 +08:00
chaosi-zju
b889d26c32
silence the 'log.SetLogger(...) was never called' error
...
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-06-27 14:33:48 +08:00
zhzhuang-zju
acdd2115c6
Adding TLS Certificate Authentication to gRPC
...
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-06-21 15:56:20 +08:00
Lan Liang
c8524d0d78
Update karmada-apiserve and kube-controller-manager to v1.28.9 by default.
...
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-06-19 08:38:01 +00:00
Lan Liang
ed0f26c328
cleanup pointer, use ptr.Toto obtain a pointer, ptr.Deref to dereference a pointer.
...
The new k8s.io/utils/ptr package provides generic wrapper functions,
which can be used instead of type-specific pointer wrapper functions.
This replaces the latter with the former, and migrates other uses of
the deprecated pointer package to ptr in affacted files.
See kubernetes/utils#283 for details.
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-05-28 05:32:33 +00:00
Lan Liang
5a4539d404
migrate wait.PollImmediate to wait.PollUntilContextTimeout.
...
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-05-22 05:51:49 +00:00
karmada-bot
2ddebf1c64
Merge pull request #4960 from chaosi-zju/files
...
cleanup: grant the correct permissions when creating a file
2024-05-22 09:36:18 +08:00
chaosi-zju
472da38a6c
cleanup: grant the correct permissions when creating a file
...
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-05-21 09:30:38 +08:00
chaosi-zju
dee30c821b
upgrade rsa key size from 2048 to 3072
...
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-05-21 09:18:30 +08:00
chaosi-zju
be3874a938
cleanup: replace text/template with html/template
...
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-05-17 15:37:55 +08:00
zhzhuang-zju
309c67701b
bump golangci to v1.58.0
...
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-05-13 09:32:13 +08:00
RainbowMango
d4b610cad6
fix lint issues
...
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-05-06 11:36:54 +08:00
RainbowMango
8cf31bfc37
Adopt Kubernetes #121390 : remove etcd page
...
Adopt Kubernetes #118653 , introduce VolumeResourceRequirements
Remove APIPriorityAndFairness feature gates from
karmada-aggregated-apiserver.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-05-06 11:36:54 +08:00
RainbowMango
e5d05149ae
Bump Kubernetes dependencies to v1.29.4
...
Update custom-metrics-apiserver to latest
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-05-06 11:36:54 +08:00
karmada-bot
f33f3f8bf3
Merge pull request #4474 from jwcesign/add-uid
...
feat: add permanent id label to pp/cpp/rb/crb/work resources
2024-04-30 11:39:24 +08:00
wei-chenglai
ec3f9cfd8f
Bump controller-gen version from v0.13.0 to v0.14.0
...
Signed-off-by: wei-chenglai <qazwsx0939059006@gmail.com>
2024-04-26 19:06:57 -04:00
karmada-bot
40d65f951a
Merge pull request #4864 from rohit-satya/etcd-update-3.5.13
...
etcd:Update version to 3.5.13
2024-04-25 20:56:21 +08:00
Rohit Satya
71e203ea33
etcd:Update version to 3.5.13
...
Signed-off-by: Rohit Satya <work.rohitsatya@gmail.com>
2024-04-25 09:52:24 +05:30
wei-chenglai
d78ea384d0
Add image-pull-policy field for karmada-operator
...
Signed-off-by: wei-chenglai <qazwsx0939059006@gmail.com>
2024-04-23 22:23:23 -04:00
jwcesign
6a54a9abb4
feat: add permanent id label to pp/cpp/rb/crb/work resources
...
Signed-off-by: jwcesign <jwcesign@gmail.com>
2024-04-10 16:08:51 +08:00
karmada-bot
a0c0a980e6
Merge pull request #4780 from RainbowMango/pr_update_controllergen
...
Update controller-gen to v0.13.0
2024-04-02 14:29:00 +08:00
Lan Liang
017f0fc212
Update karmada-apiserve and kube-controller-manager to v1.27.11 by default.
...
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-04-01 13:51:00 +00:00
RainbowMango
f7324274ad
Update controller-gen to v0.13.0 which is built with Kubernetes v1.28
...
v0.9.0 removed redundant .status of generated CRD
v0.12.0 removed redundant .metadata.creationTimestamp of generated CRD
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-03-30 15:26:10 +08:00
RainbowMango
8b9d86d4b3
Fixe invalid kubebuilder marker, that makes the marker does not work.
...
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-03-29 12:06:09 +08:00
karmada-bot
9ccc8be46c
Merge pull request #4679 from calvin0327/support-apiserver-annotations
...
operator: add extra annotations for service of karmada apiserver
2024-03-07 11:39:20 +08:00
calvin
739c4fada3
operator: add extra annotations for service of karmada apiserver
...
Signed-off-by: calvin <wen.chen@daocloud.io>
2024-03-05 17:37:53 +08:00
zhao.laihe
ef986a0ec4
fix: print info
...
Signed-off-by: zhao.laihe <zhao.laihe@neolink.com>
2024-03-01 17:21:06 +08:00
zhao.laihe
c86e29c355
fix: delete search-component failed
...
Signed-off-by: zhao.laihe <zhao.laihe@neolink.com>
2024-03-01 16:50:22 +08:00
zhao.laihe
77261da417
fix: code comments
...
Signed-off-by: zhao.laihe <zhao.laihe@neolink.com>
2024-02-27 09:35:35 +08:00
zhao.laihe
0be1a66b39
fix: update service failed when reconcile
...
Signed-off-by: zhao.laihe <zhao.laihe@neolink.com>
2024-02-24 19:48:56 +08:00
zhao.laihe
8f0b190d34
correct print info
...
Signed-off-by: zhao.laihe <zhao.laihe@neolink.com>
2024-02-21 15:04:26 +08:00
Mohammed Affan
970435c3d1
Add linting for unused parameters
...
Signed-off-by: Mohammed Affan <mohammed.affan.727@gmail.com>
2024-01-13 12:26:54 +05:30
karmada-bot
a19febf44d
Merge pull request #4364 from zhzhuang-zju/dns
...
add cfg.Namespace.svc to apiServerAltNames in operator installation mode
2024-01-10 10:26:33 +08:00
zhzhuang-zju
23d69df695
add cfg.Namespace.svc to apiServerAltNames in operator installation mode
...
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-01-09 14:14:23 +08:00
jwcesign
38b2cae7e1
cleanup: enable revive(exported rule) checking
...
Signed-off-by: jwcesign <jwcesign@gmail.com>
2024-01-09 09:41:47 +08:00
karmada-bot
9a0f646c87
Merge pull request #4367 from zhzhuang-zju/document
...
update operator/README.md
2024-01-05 11:35:30 +08:00
RainbowMango
5a3fa76b27
Adopt breaking change made by controller-runtime#2407, moving metrics
...
options.
Adopt breaking change made by controller-runtime#2421, cache filtering
Fix deprecation in customresourceinterpreter webhook example
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-12-29 12:39:24 +08:00
RainbowMango
99d413052e
update auto-generated files
...
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-12-25 10:45:22 +08:00
Lan Liang
b90035f03f
Update apiserver&controller-manager to v1.26.12
...
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2023-12-21 18:10:47 +08:00
Zhizhen He
25a62c6c57
fix typo
...
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-12-17 16:12:03 +08:00
karmada-bot
a777c3a450
Merge pull request #4315 from zhzhuang-zju/crdgen
...
generate Embedded ObjectMeta in the CRDs
2023-12-13 17:31:10 +08:00
zhzhuang-zju
798f9169fe
generate Embedded ObjectMeta in the CRDs
...
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2023-12-13 11:46:11 +08:00
karmada-bot
85a905f955
Merge pull request #4316 from zhzhuang-zju/operator
...
feat: support install karmada search with operator
2023-12-13 11:28:10 +08:00
karmada-bot
9bebd4cd2e
Merge pull request #4385 from zhzhuang-zju/metrics
...
Upgrade the karmada component image version to v1.8.0 in karmada.yaml for operator installation
2023-12-08 12:17:06 +08:00
zhzhuang-zju
bc2fb76c13
Upgrade the karmada component image version to v1.8.0 in karmada.yaml for operator installation
...
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2023-12-08 10:06:28 +08:00
zhzhuang-zju
4c9f69bba2
update operator/README.md
...
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2023-12-06 16:42:30 +08:00
zhzhuang-zju
4916e3b9cd
feat: support install karmada search with operator
...
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2023-12-05 20:46:25 +08:00
whitewindmills
2b05d1e94f
add license for auto-generated files
...
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-12-05 14:20:26 +08:00
jwcesign
69bb6a1134
feat: add webhook for multiclusterservice to add the permanentid
...
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-11-29 17:21:36 +08:00
zhzhuang-zju
e49a27080f
Correct DNSNames of karmada-apiserver certificate
...
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2023-11-27 11:57:03 +08:00
karmada-bot
dd9f54cbe2
Merge pull request #4320 from calvin0327/fixed-service-conflict
...
karmada-operator: resolve resource version conflict when updating serivce
2023-11-25 09:31:55 +08:00
calvin
4e09f5e6b5
fixed resource version conflict when updating serivce
...
Signed-off-by: calvin <wen.chen@daocloud.io>
2023-11-24 17:47:42 +08:00
calvin
8ae84c7580
fixed operator manifests format
...
Signed-off-by: calvin <wen.chen@daocloud.io>
2023-11-24 17:31:36 +08:00
karmada-bot
4fe9dff3a8
Merge pull request #4204 from zhy76/copyright
...
feat: add license and verify license for code file
2023-11-22 10:23:52 +08:00
zhzhuang-zju
2d558648e8
update etcd/mainfests.go
...
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2023-11-21 09:14:56 +08:00
karmada-bot
d1598a9166
Merge pull request #4253 from zhzhuang-zju/tls-etcd
...
set golang's secure cipher suites as etcd's cipher suites
2023-11-20 20:36:50 +08:00
zhzhuang-zju
9b1e18bbd2
set golang's secure cipher suites as etcd's cipher suites
...
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2023-11-20 11:50:57 +08:00
RainbowMango
2f39163615
Nominate code owners
...
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-11-20 10:39:38 +08:00