Skip to content

[Merged by Bors] - Add missing crd defaults#360

Closed
maltesander wants to merge 2 commits intomainfrom
add-missing-crd-defaults
Closed

[Merged by Bors] - Add missing crd defaults#360
maltesander wants to merge 2 commits intomainfrom
add-missing-crd-defaults

Conversation

@maltesander
Copy link
Member

Description

Due to breaking changes in with the clusterConfig the CRD replace still works but the operator throws an error:

2023-05-12T08:27:57.068053Z ERROR stackable_operator::logging::controller: Failed to reconcile object controller.name="hbasecluster.hbase.stackable.com" error=event queue error error.sources=[failed 
to perform initial object list: Error deserializing response, Error deserializing response, missing field `zookeeperConfigMapName` at line 1 column 5778]

This will be gone when applying a new correct CR.

Definition of Done Checklist

  • Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
  • Please make sure all these things are done and tick the boxes
# Author
- [ ] Changes are OpenShift compatible
- [ ] CRD changes approved
- [ ] Helm chart can be installed and deployed operator works
- [ ] Integration tests passed (for non trivial changes)
# Reviewer
- [ ] Code contains useful comments
- [ ] (Integration-)Test cases added
- [ ] Documentation added or updated
- [ ] Changelog updated
- [ ] Cargo.toml only contains references to git tags (not specific commits or branches)
# Acceptance
- [ ] Feature Tracker has been updated
- [ ] Proper release label has been added

Once the review is done, comment bors r+ (or bors merge) to merge. Further information

@maltesander maltesander requested a review from a team May 12, 2023 08:31
@maltesander maltesander self-assigned this May 12, 2023
@nightkr
Copy link
Contributor

nightkr commented May 12, 2023

It won't magically migrate old objects that are no longer legal, but it will let users write back an updated CR object.

Copy link
Member

@Maleware Maleware left a comment

Choose a reason for hiding this comment

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

LGTM tested on IONOS cluster.

Steps:

  1. Install 23.1
  2. Installed example for hbase
  3. k replace the new crd from the PR -> Error
  4. helm upgrade to new operator version
  5. k apply updated example
    => Error gone

@maltesander
Copy link
Member Author

bors merge

bors bot pushed a commit that referenced this pull request May 12, 2023
# Description

Due to breaking changes in with the `clusterConfig` the CRD replace still works but the operator throws an error:
```
2023-05-12T08:27:57.068053Z ERROR stackable_operator::logging::controller: Failed to reconcile object controller.name="hbasecluster.hbase.stackable.com" error=event queue error error.sources=[failed 
to perform initial object list: Error deserializing response, Error deserializing response, missing field `zookeeperConfigMapName` at line 1 column 5778]
```

This will be gone when applying a new correct CR.



Co-authored-by: Malte Sander <[email protected]>
@bors
Copy link
Contributor

bors bot commented May 12, 2023

Pull request successfully merged into main.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title Add missing crd defaults [Merged by Bors] - Add missing crd defaults May 12, 2023
@bors bors bot closed this May 12, 2023
@bors bors bot deleted the add-missing-crd-defaults branch May 12, 2023 14:28
maltesander added a commit that referenced this pull request May 12, 2023
(cherry picked from commit 45f1040)
bors bot pushed a commit that referenced this pull request May 15, 2023
# Description

Add missing crd defaults (#360)

(cherry picked from commit 45f1040)



Co-authored-by: Malte Sander <[email protected]>
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