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

Fixing bugs #287

Merged
merged 19 commits into from
May 18, 2024
Merged

Fixing bugs #287

merged 19 commits into from
May 18, 2024

Conversation

tanmayja
Copy link
Contributor

@tanmayja tanmayja commented May 6, 2024

  1. In case of unavailable partition recovery, scale up the cluster with batch and wait for sts after scale up.
  2. In case of security enabled flag:
    • if status.pods is nil, don't allow security update.
    • if isSecurityEnabled(status.aerospikeConfig) is true and spec is false, then don't allow to disable security.
    • remove IsSecurityEnabled flag, instead getting security enabled info by comparing hash.
  3. In case of multiPodPerHost, deref the value and then compare
  4. Allow EnableDynamicConfigUpdate to be true only if init image is updated to 2.2.0 or above.
  5. Add IsClusterReadinessEnabled field in status to determine the cluster readiness status. This is used for PDB reconcile

controllers/reconciler.go Outdated Show resolved Hide resolved
api/v1/aerospikecluster_types.go Outdated Show resolved Hide resolved
api/v1/utils.go Outdated Show resolved Hide resolved
api/v1/aerospikecluster_validating_webhook.go Outdated Show resolved Hide resolved
api/v1/aerospikecluster_validating_webhook.go Show resolved Hide resolved
api/v1/aerospikecluster_validating_webhook.go Outdated Show resolved Hide resolved

requiredConfHash := confMap.Data[aerospikeConfHashFileName]

securityEnabledPods := make([]corev1.Pod, 0, len(pods))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we rename this variable, as this function looks generic whether config is updated or not. Func does not check specific about security.

api/v1/aerospikecluster_mutating_webhook.go Outdated Show resolved Hide resolved
api/v1/aerospikecluster_mutating_webhook.go Show resolved Hide resolved
controllers/configmap.go Outdated Show resolved Hide resolved
api/v1/aerospikecluster_types.go Outdated Show resolved Hide resolved
api/v1/aerospikecluster_types.go Show resolved Hide resolved
api/v1/aerospikecluster_validating_webhook.go Show resolved Hide resolved
api/v1/aerospikecluster_validating_webhook.go Show resolved Hide resolved
controllers/reconciler.go Show resolved Hide resolved
controllers/poddistruptionbudget.go Show resolved Hide resolved
@sud82 sud82 merged commit 5c0af06 into master May 18, 2024
8 checks passed
@sud82 sud82 deleted the bugfix3.3.0 branch November 15, 2024 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants