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

Add initial reconciler methods for WatcherApplier #49

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

viroel
Copy link

@viroel viroel commented Jan 21, 2025

Adds initial logic for reconciler on Watcher Applier controller, including inputs, serviceConfig and memcached configurations.

Copy link

openshift-ci bot commented Jan 21, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from viroel. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/d138bcc07e3448f39e4d6ee65398da0c

✔️ noop SUCCESS in 0s
✔️ openstack-meta-content-provider SUCCESS in 1h 30m 47s
✔️ watcher-operator-validation SUCCESS in 1h 19m 37s
watcher-operator-kuttl RETRY_LIMIT in 30m 03s

@viroel viroel force-pushed the applier_controller branch from 5c86430 to 6e60478 Compare January 23, 2025 19:40
Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/watcher-operator for 49,6e604783a0248858b56325251a56b883a7ce92c0

Copy link
Contributor

@amoralej amoralej left a comment

Choose a reason for hiding this comment

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

Just a minor comment. Other than that, just add a base kuttl scenario for watcherapplier (new folder in https://github.com/openstack-k8s-operators/watcher-operator/tree/main/tests/kuttl/test-suites/default ) and it'd be ready to merge imo.

// the openstack-operator in the top-level CR (e.g. the ContainerImage)
ObservedGeneration int64 `json:"observedGeneration,omitempty"`

// ReadyCount of watcher API instances
Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't add ReadyCount until we create the deployment and can get the value.

Copy link
Author

Choose a reason for hiding this comment

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

Yes, make sense, I commented out and add a TODO to add it back afterwards.

)

var _ = Describe("WatcherApplier controller with minimal spec values", func() {
When("A Watcher instance is created from minimal spec", func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

s/Watcher/WatcherApplier

)
DeferCleanup(k8sClient.Delete, ctx, secret)
DeferCleanup(th.DeleteInstance, CreateWatcherApplier(watcherTest.WatcherApplier, GetDefaultWatcherApplierSpec()))
DeferCleanup(keystone.DeleteKeystoneAPI, keystone.CreateKeystoneAPI(watcherTest.WatcherApplier.Namespace))
Copy link
Contributor

Choose a reason for hiding this comment

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

just a note that creating the KeystoneAPI here is not needed yet, since the WatcherApplier does not get it. It's ok to leave it anyway, since it will be needed for the next iteration

Copy link
Author

Choose a reason for hiding this comment

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

correct, I removed since is not used at this moment, thanks!

Adds initial logic for reconciler on Watcher Applier controller,
including inputs, serviceConfig and memcached configurations.
@viroel viroel force-pushed the applier_controller branch from 1f49d2d to fb418c3 Compare January 24, 2025 19:37
@viroel viroel changed the title WIP - Add initial reconciler methods for WatcherApplier Add initial reconciler methods for WatcherApplier Jan 24, 2025
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.

4 participants