-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor components to use default labels and owner references from `…
…etcd` (#559) * Refactor: Update `configmap` component to use default labels and owner references from `etcd`. This commit refactors the `configmap` component to use the default labels and owner references provided by etcd. Specifically, we removed the functions `getOwnerReferences` and `getObjectMeta`, and instead used the `GetEtcdAsOwnerReference` and `GetDefaultLabels` functions. In addition, we improved the formulation of the configmap by adding a new function called `getEtcdConfigYaml`. * Refactor: Update `lease` component to use default labels and owner references from `etcd`. This commit refactors the `lease` component to use the default labels and owner references provided by etcd. Specifically, we removed the functions `getOwnerReferences`, and instead used the `GetEtcdAsOwnerReference` and `GetDefaultLabels` functions. * Refactor: Update `poddisruptionbudget` component to use default labels and owner references from `etcd`. This commit refactors the `poddisruptionbudget` component to use the default labels and owner references provided by etcd. Specifically, we removed the functions `getOwnerReferences`, and instead used the `GetEtcdAsOwnerReference` and `GetDefaultLabels` functions. * Refactor: Update `service` component to use default labels and owner references from `etcd`. This commit refactors the `service` component to use the default labels and owner references provided by etcd. Specifically, removed the functions `getOwnerReferences`, `getSelectors`, `getLabels` and instead used the `GetEtcdAsOwnerReference` and `GetDefaultLabels` functions. * Refactor: Update `statefulset` component to use default labels and owner references from `etcd`. This commit refactors the `statefulset` component to use the default labels and owner references provided by etcd. Specifically, removed the functions `getCommonLabels` and instead used the `GetAsOwnerReference` and `GetDefaultLabels` functions. Fix intergration test rebase with master * Updated the E2E test suite to use the appropriate component names. * Addressed review comment from Madhav about OwnerReferences. This commit addresses the review comment #539 (comment) * This commit addresses the review comment from Shreyas about improving the service account test in response to #538 (review) * Refactor API version to use 'druidv1alpha1.GroupVersion.String()' instead of the static string 'druid.gardener.cloud/v1alpha1 * Addressed review comment - Updated function `GetAsOwnerReference to return metav1.OwnerReference instead of *metav1.OwnerReference * Renamed function name checkConfigmap to checkConfigMap * Renamed ServerPort to PeerPort * Removed arguments of emptyPodDisruptionBudget and reused name, namespace from component's value * Constructing a etcdconfig YAML using strut instead of string string concatenation * Used default labels for lease component * Update log message with OwnerReference <name>:<uid> * make revendor * fix failing test * Removed checkPDBMetadata function * minor refactoring to configmap component * Removed JSON tags * Rebase with master * Fix integration test * Fix failing test * Apply suggestions from code review Co-authored-by: Aaron Francis Fernandes <79958509+aaronfern@users.noreply.github.com> * Addressed review feedback * Apply suggestions from code review Co-authored-by: Shreyas Rao <42259948+shreyas-s-rao@users.noreply.github.com> * Addressed review comment - Renamed field `PodAdditionalLabels` to `AdditionalPodLabels`. * Update pkg/component/etcd/configmap/values.go Co-authored-by: Shreyas Rao <42259948+shreyas-s-rao@users.noreply.github.com> * Fixed typo --------- Co-authored-by: Madhav Bhargava <madhav.bhargava@sap.com> Co-authored-by: Aaron Francis Fernandes <79958509+aaronfern@users.noreply.github.com> Co-authored-by: Shreyas Rao <42259948+shreyas-s-rao@users.noreply.github.com>
- Loading branch information
1 parent
b6b2a0e
commit 11f5ddd
Showing
58 changed files
with
400 additions
and
638 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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
Oops, something went wrong.