Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Velero: restic plugin add tolerations #1348

Merged
merged 1 commit into from
Jan 29, 2021

Conversation

knrt10
Copy link
Member

@knrt10 knrt10 commented Jan 27, 2021

This commit adds a new attribute tolerations which will add tolerations to restic DaemonSet.

Since the cluster has multiple node pools with different purposes, it
adds an ability to deploy the restic DaemonSet on the nodes that need to
backup the PVC.

closes: #1334
Signed-off-by: knrt10 kautilya@kinvolk.io

@knrt10 knrt10 force-pushed the knrt10/add-tolerations-restic-ds branch from af09f35 to 8b6bbd6 Compare January 27, 2021 06:13
Copy link
Member

@surajssd surajssd left a comment

Choose a reason for hiding this comment

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

Add a config conversion test.

@knrt10 knrt10 force-pushed the knrt10/add-tolerations-restic-ds branch from 8b6bbd6 to 5758a32 Compare January 28, 2021 07:07
@knrt10 knrt10 requested a review from surajssd January 28, 2021 07:07
@knrt10
Copy link
Member Author

knrt10 commented Jan 28, 2021

@surajssd added

@knrt10 knrt10 force-pushed the knrt10/add-tolerations-restic-ds branch from 5758a32 to 3e46bb2 Compare January 28, 2021 07:09
@invidian
Copy link
Member

@surajssd added

I don't see tests being added.

@knrt10
Copy link
Member Author

knrt10 commented Jan 28, 2021

Just to confirm, by config conversion doesn't it mean to add tolerations to restic config tests and check whether it is right or not?

@invidian
Copy link
Member

Just to confirm, by config conversion doesn't it mean to add tolerations to restic config tests and check whether it is right or not?

I think what @surajssd meant was to add tests, that toleration actually appears in the right place in the rendered manifests.

@knrt10 knrt10 force-pushed the knrt10/add-tolerations-restic-ds branch from 3e46bb2 to 8dc9cc0 Compare January 29, 2021 06:47
@knrt10
Copy link
Member Author

knrt10 commented Jan 29, 2021

@surajssd added the tests. Please check

pkg/components/velero/component_test.go Outdated Show resolved Hide resolved
pkg/components/velero/component_test.go Outdated Show resolved Hide resolved
pkg/components/velero/component_test.go Outdated Show resolved Hide resolved
pkg/components/velero/component_test.go Outdated Show resolved Hide resolved
@knrt10 knrt10 force-pushed the knrt10/add-tolerations-restic-ds branch from 8dc9cc0 to cd3982c Compare January 29, 2021 09:29
@knrt10 knrt10 requested a review from invidian January 29, 2021 09:29
invidian
invidian previously approved these changes Jan 29, 2021
Copy link
Member

@invidian invidian left a comment

Choose a reason for hiding this comment

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

Just last nit, otherwise LGTM

pkg/components/velero/component_test.go Outdated Show resolved Hide resolved
This commit adds a new attribute `tolerations` which will add
tolerations to restic DaemonSet.

Since the cluster has multiple node pools with different purposes, it
adds an ability to deploy the restic DaemonSet on the nodes that need to
backup the PVC.

Add test that tolerations are set correctly.

closes: #1334
Signed-off-by: knrt10 <kautilya@kinvolk.io>
Copy link
Member

@surajssd surajssd left a comment

Choose a reason for hiding this comment

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

LGTM Thanks.

@knrt10 knrt10 merged commit 6479f70 into master Jan 29, 2021
@knrt10 knrt10 deleted the knrt10/add-tolerations-restic-ds branch January 29, 2021 12:10
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.

Add tolerations options to Restic Deamonset of Velero component
3 participants