Commit Graph

15 Commits

Author SHA1 Message Date
zhzhuang-zju fffd206673 karmada-webhook: fix the no such host error
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2025-02-07 11:04:57 +08:00
karmada-bot 42e50b799c
Merge pull request #5675 from mohamedawnallah/unitTestUtilOperatorPKG
operator/pkg: unit test utilities
2024-10-29 09:52:38 +08:00
Mohamed Awnallah a83c26eac9 operator/pkg/certs: test certs
In this commit, we introduce unit tests for operator `certs` package.
The test cases include but not limited to:

- Test private key generation.
- Test self-signed certificate authority (CA) generation.
- Verify creation of self-signed certificate and key files within the CA.
- Include tests for utility functions, such as appending to Subject Alternative Names in SSL/TLS certificates.
- Add tests for Karmada Store operations related to certificates stored in Kubernetes Secrets:
  - Create
  - Read
  - Update
  - Load

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-19 15:47:05 +03:00
Mohamed Awnallah 49eb96b48f operator/pkg/util: unit test util
In this commit, we unit test utilities on downloader operations and
unpacking tar files.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-17 20:08:22 +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
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
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
jwcesign 38b2cae7e1 cleanup: enable revive(exported rule) checking
Signed-off-by: jwcesign <jwcesign@gmail.com>
2024-01-09 09:41: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
zhy76 adef1e5974 feat: add license and verify license for code file
Signed-off-by: zhy76 <958474674@qq.com>
2023-11-16 11:11:21 +08:00
Lan Liang 3fbd7219d1 Operator support work with crds v1.7.0
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2023-10-18 13:26:09 +00:00
whitewindmills c8423cb237 fix spelling errors
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-09-04 10:22:39 +08:00
Tanggui Bian 9607b9e807 Remove the execute permission from the directory
Signed-off-by: Tanggui Bian <softwarebtg@163.com>
2023-08-24 19:24:48 +08:00
learner0810 49d94be9fb fix-operator-download-log
Signed-off-by: learner0810 <zhongjun.li@daocloud.io>
2023-06-27 14:56:04 +08:00
calvin ec53c2a5b1 add karmada operator init workflow
Signed-off-by: calvin <wen.chen@daocloud.io>
2023-03-01 10:06:20 +08:00