Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Fields can't be deleted #581

Open
yandongxiao opened this issue Aug 28, 2024 · 0 comments
Open

[Bug] Fields can't be deleted #581

yandongxiao opened this issue Aug 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@yandongxiao
Copy link
Collaborator

Describe the bug

When we delete the imagePullSecrets field from StarRockCluster, imagePullSecrets still exists in the statefulset of the component and has not been deleted.

To Reproduce

  1. Create a StarRocks cluster that includes the imagePullSecrets field
  2. Update the StarRocks cluster by deleting the imagePullSecrets field
  3. Check the status of the Statefulset component

Expected behavior

The imagePullSecrets field in the Statefulset component should also be deleted.

The reason it was not deleted is:

  1. The Operator uses merge operation to modify statefulset
  2. Different from kubectl, because there is a kubectl.kubernetes.io/last-applied-configuration Annotation, it will perform a three way merge. So kubectl can delete a field.

Please complete the following information

  • Operator Version: v1.9.6
@yandongxiao yandongxiao added the bug Something isn't working label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant