Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Feat/webhooks#50

Merged
nxtcoder17 merged 8 commits into
release-1.0.5from
feat/webhooks
Dec 6, 2023
Merged

Feat/webhooks#50
nxtcoder17 merged 8 commits into
release-1.0.5from
feat/webhooks

Conversation

@nxtcoder17
Copy link
Copy Markdown
Member

MongoDB Client Fix

  • Fixed an issue with the MongoDB client failing to connect to replicated MongoDB nodes.
  • The client was encountering a ReplicaSetNoPrimaryKey error, which is now resolved by setting readpreference to nil.

Cluster and Nodepool Operator Refactorings

  • Refactored the cluster and nodepool operators for better logging and code organization.
  • These improvements enhance the readability and maintainability of the operator codebase.

Operator Utilities Updates

  • Made several updates to operator utilities.
  • Extracted related functions into a separate Go file.
  • Improved the logger to include caller trace when printing errors.
  • Introduced a new method, NoRequeue, in the step result to indicate no requeueing.

Resource Watcher Controller Improvement

  • Updated the resource watcher controller to retry connecting to Kafka when it fails.
  • Previously, the controller would panic on connection failure, but now it attempts reconnection, which is more suitable for a single-binary platform operator, as failure for one, should not result in all failing

Helm Charts Enhancement

  • Improved Helm chart handling.
  • Now, you can specify Helm values in a map format.
  • This enhancement eliminates the need to pass Helm values as multiline strings.

Managed Service and Resource Schema Refinements

  • Refined the schema for managed services and resources.
  • Updated controllers to align with these schema changes, ensuring better compatibility.

Neovim Snippets

  • Added a new Neovim snippet for Kubernetes resources.
  • This snippet includes information like last reconciled at, isReady, and creationTime for Kubernetes resources, making it easier to inspect and understand resource status.

mongodb nodes

- mongo client failed connecting and authenticating with mongodb URI for
  replicaset enabled mongodb cluster. It was failing with
  ReplicaSetNoPrimaryKey error. We fixed it by setting readpreference to
  nil, instead of empty readpreference struct
- better schema for managedresource and managedservice
- refactored controllers to adjust to the schma changes
- finally made the helm CRD worh with map[string]any, ideally
  kubebuilder and operator-sdk will not allow that go, but with
  map[string]apiextensionsv1.JSON, we can achieve the same thing
- it removes the previous need to pass helm values in a multiline
  string format, as i was not able to find a way to make k8s CRD work
  with map[string]any
kafka when it fails to connect

- earlier bahaviour was to exit the controller when it failed to
  connect, but in case of single binary platform operator, it is not the
  desirable behaviour anymore
- maps releated functions extracted to a separate go file
- logger updated to have caller trace when printing error
- step result has now a new method `NoRequeue` to better indicate no
  queueing instead of Err(nil)
- add printcolumn snippet to have `last reconciled at`, `isReady` and
  `creationTime` for k8s resources
@nxtcoder17 nxtcoder17 merged commit f41e4bf into release-1.0.5 Dec 6, 2023
@nxtcoder17 nxtcoder17 deleted the feat/webhooks branch December 6, 2023 05:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant