In this commit, we unit test the patcher in the karmada operator
pkg on patching the Deployment and StatefulSet K8S objects.
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
In this commit, we unit test wait init task on waiting for Karmada APIServer
and Karmada Control Plane components.
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
In this commit, we unit test component deinit task in the karmada
operator package on removing component subtasks and etcd component.
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
In this commit, we unit test kubeconfig deinit task in the operator
package on cleaning up the secret if it has the given labels.
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
In this commit, we unit test kubeconfig utility in the karmada
operator package on building client from secret reference and checking
whether the given cluster is local or remote.
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
Co-authored-by: zhzhuang-zju <m17799853869@163.com>
In this commit, we unit test template on parsing template functionality
on parsing and executing html templates with passed args.
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
In this commit, we unit test naming `generateResourceName` utility
on given karmada component name and suffix.
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
In this commit, we unit test endpoint on getting control plane
endpoint and API Service IP.
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
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>
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>
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>
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>
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>
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>
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>