-
-
Notifications
You must be signed in to change notification settings - Fork 6
fix: Add missing owns/watches and test early-exit reconcile #797
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
02a78b3
remove version from pvc listener labels, correct operator name
adwk67 de3a191
changelog
adwk67 6a5165d
add vendor label manually, adjust test assert
adwk67 838b8c7
Merge branch 'main' into fix/unversioned-restserver-labels
adwk67 c1b4366
added in wrongly removed labels
adwk67 83ca24e
added missing PR number to changelog
adwk67 1b85652
add early exit tests
adwk67 d9b3f0d
merge main and deal with conflicts
adwk67 73c75fc
changelog fix
adwk67 ca9af52
changelog
adwk67 043c3c0
improved comment
adwk67 f1071f7
order owns by name
adwk67 820911d
reworked/deleted comments
adwk67 b51fa9b
implement review feedback
adwk67 bf3a5c7
Merge branch 'main' into fix/missing-owns-and-early-exit
adwk67 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,174 @@ | ||
| --- | ||
| # The recreated StatefulSets must bring the cluster back to ready, and the recreated | ||
| # objects must carry an owner reference back to the HbaseCluster so that garbage | ||
| # collection still works for them. | ||
| # | ||
| # The budget is generous on purpose: recreating the role-group ConfigMaps makes the | ||
| # commons-operator restarter roll every pod once more on top of the StatefulSet | ||
| # recreation, and on a node without a cached image a single pull can take minutes. | ||
| apiVersion: kuttl.dev/v1beta1 | ||
| kind: TestAssert | ||
| metadata: | ||
| name: recreate-owned-resources | ||
| timeout: 600 | ||
| commands: | ||
| - script: kubectl -n $NAMESPACE wait --for=condition=available hbaseclusters.hbase.stackable.tech/test-hbase --timeout 601s | ||
| --- | ||
| apiVersion: apps/v1 | ||
| kind: StatefulSet | ||
| metadata: | ||
| name: test-hbase-master-default | ||
| ownerReferences: | ||
| - apiVersion: hbase.stackable.tech/v1alpha1 | ||
| controller: true | ||
| kind: HbaseCluster | ||
| name: test-hbase | ||
| status: | ||
| readyReplicas: 1 | ||
| replicas: 1 | ||
| --- | ||
| apiVersion: apps/v1 | ||
| kind: StatefulSet | ||
| metadata: | ||
| name: test-hbase-regionserver-default | ||
| ownerReferences: | ||
| - apiVersion: hbase.stackable.tech/v1alpha1 | ||
| controller: true | ||
| kind: HbaseCluster | ||
| name: test-hbase | ||
| status: | ||
| readyReplicas: 1 | ||
| replicas: 1 | ||
| --- | ||
| apiVersion: apps/v1 | ||
| kind: StatefulSet | ||
| metadata: | ||
| name: test-hbase-restserver-default | ||
| ownerReferences: | ||
| - apiVersion: hbase.stackable.tech/v1alpha1 | ||
| controller: true | ||
| kind: HbaseCluster | ||
| name: test-hbase | ||
| status: | ||
| readyReplicas: 1 | ||
| replicas: 1 | ||
| --- | ||
| apiVersion: v1 | ||
| kind: ServiceAccount | ||
| metadata: | ||
| name: test-hbase-serviceaccount | ||
| ownerReferences: | ||
| - apiVersion: hbase.stackable.tech/v1alpha1 | ||
| controller: true | ||
| kind: HbaseCluster | ||
| name: test-hbase | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: RoleBinding | ||
| metadata: | ||
| name: test-hbase-rolebinding | ||
| ownerReferences: | ||
| - apiVersion: hbase.stackable.tech/v1alpha1 | ||
| controller: true | ||
| kind: HbaseCluster | ||
| name: test-hbase | ||
| --- | ||
| apiVersion: policy/v1 | ||
| kind: PodDisruptionBudget | ||
| metadata: | ||
| name: test-hbase-master | ||
| ownerReferences: | ||
| - apiVersion: hbase.stackable.tech/v1alpha1 | ||
| controller: true | ||
| kind: HbaseCluster | ||
| name: test-hbase | ||
| --- | ||
| apiVersion: policy/v1 | ||
| kind: PodDisruptionBudget | ||
| metadata: | ||
| name: test-hbase-regionserver | ||
| ownerReferences: | ||
| - apiVersion: hbase.stackable.tech/v1alpha1 | ||
| controller: true | ||
| kind: HbaseCluster | ||
| name: test-hbase | ||
| --- | ||
| apiVersion: policy/v1 | ||
| kind: PodDisruptionBudget | ||
| metadata: | ||
| name: test-hbase-restserver | ||
| ownerReferences: | ||
| - apiVersion: hbase.stackable.tech/v1alpha1 | ||
| controller: true | ||
| kind: HbaseCluster | ||
| name: test-hbase | ||
| --- | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: test-hbase | ||
| ownerReferences: | ||
| - apiVersion: hbase.stackable.tech/v1alpha1 | ||
| controller: true | ||
| kind: HbaseCluster | ||
| name: test-hbase | ||
| --- | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: test-hbase-master-default-headless | ||
| ownerReferences: | ||
| - apiVersion: hbase.stackable.tech/v1alpha1 | ||
| controller: true | ||
| kind: HbaseCluster | ||
| name: test-hbase | ||
| --- | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: test-hbase-master-default-metrics | ||
| ownerReferences: | ||
| - apiVersion: hbase.stackable.tech/v1alpha1 | ||
| controller: true | ||
| kind: HbaseCluster | ||
| name: test-hbase | ||
| --- | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: test-hbase-regionserver-default-headless | ||
| ownerReferences: | ||
| - apiVersion: hbase.stackable.tech/v1alpha1 | ||
| controller: true | ||
| kind: HbaseCluster | ||
| name: test-hbase | ||
| --- | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: test-hbase-regionserver-default-metrics | ||
| ownerReferences: | ||
| - apiVersion: hbase.stackable.tech/v1alpha1 | ||
| controller: true | ||
| kind: HbaseCluster | ||
| name: test-hbase | ||
| --- | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: test-hbase-restserver-default-headless | ||
| ownerReferences: | ||
| - apiVersion: hbase.stackable.tech/v1alpha1 | ||
| controller: true | ||
| kind: HbaseCluster | ||
| name: test-hbase | ||
| --- | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: test-hbase-restserver-default-metrics | ||
| ownerReferences: | ||
| - apiVersion: hbase.stackable.tech/v1alpha1 | ||
| controller: true | ||
| kind: HbaseCluster | ||
| name: test-hbase |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.