Skip to content

Commit 8deaebc

Browse files
author
Sinelnikov Michail
committed
fix
Signed-off-by: Sinelnikov Michail <mikhail.sinelnikov@flant.com>
1 parent 0587bd0 commit 8deaebc

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

pkg/helm/client/client.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ type HelmClient interface {
1616
IsReleaseExists(releaseName string) (bool, error)
1717
WithLogLabels(map[string]string)
1818
WithExtraLabels(map[string]string)
19-
WithExtraAnnotations(map[string]string)
2019
}

pkg/helm/helm.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,11 @@ func WithLogLabels(logLabels map[string]string) ClientOption {
3232
}
3333
}
3434

35-
func WithExtraAnnotations(annotations map[string]string) ClientOption {
36-
return func(c client.HelmClient) {
37-
c.WithExtraAnnotations(annotations)
38-
}
39-
}
40-
4135
func (f *ClientFactory) NewClient(logger *log.Logger, options ...ClientOption) client.HelmClient {
4236
if f.NewClientFn != nil {
4337
labels := maps.Clone(f.labels)
4438
c := f.NewClientFn(logger, labels)
4539

46-
// Add werf.io/skip-logs and werf.io/track-termination-mode annotations when using nelm
47-
if f.ClientType == Nelm {
48-
c.WithExtraAnnotations(map[string]string{})
49-
}
50-
5140
for _, option := range options {
5241
option(c)
5342
}

pkg/helm/test/mock/mock.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ func (c *Client) WithLogLabels(_ map[string]string) {
6868
func (c *Client) WithExtraLabels(_ map[string]string) {
6969
}
7070

71-
func (c *Client) WithExtraAnnotations(_ map[string]string) {
72-
}
73-
7471
func (c *Client) GetReleaseLabels(_, _ string) (string, error) {
7572
return "", nil
7673
}

0 commit comments

Comments
 (0)