Skip to content
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

Remove unnecessary "kind" check in SecretRef #222

Merged
merged 1 commit into from
Aug 22, 2019

Conversation

vkamra
Copy link

@vkamra vkamra commented Aug 21, 2019

Change Overview

The ActionSet schema allows specifying secret refs under
the "secrets" key.

This commit removes the requirement that the user specify
a Kind in the reference because that information is not
required.

Pull request type

Please check the type of change your PR introduces:

  • Work in Progress
  • Refactoring (no functional changes, no api changes)
  • Trival/Minor
  • Bugfix
  • Feature
  • Documentation

Issues

Test Plan

  • Manual
  • Unit test
  • E2E
$ go test -check.vv -check.f=TestPhaseParams
START: param_test.go:37: ParamsSuite.SetUpSuite
PASS: param_test.go:37: ParamsSuite.SetUpSuite	0.169s

START: param_test.go:494: ParamsSuite.TestPhaseParams
START: param_test.go:51: ParamsSuite.SetUpTest
PASS: param_test.go:51: ParamsSuite.SetUpTest	0.055s

START: param_test.go:76: ParamsSuite.TearDownTest
PASS: param_test.go:76: ParamsSuite.TearDownTest	0.037s

PASS: param_test.go:494: ParamsSuite.TestPhaseParams	0.226s

START: param_test.go:70: ParamsSuite.TearDownSuite
PASS: param_test.go:70: ParamsSuite.TearDownSuite	0.037s

OK: 1 passed
PASS
ok  	github.com/kanisterio/kanister/pkg/param	0.544s

@vkamra vkamra force-pushed the remove_redundant_secretkind_check branch from 3329b9c to f49e65b Compare August 21, 2019 05:39
The ActionSet schema allows specifying secret refs under
the "secrets" key.

This commit removes the requirement that the user specify
a `Kind` in the reference because that information is not
required.
@vkamra vkamra force-pushed the remove_redundant_secretkind_check branch from f49e65b to 4b4059a Compare August 22, 2019 04:57
@vkamra vkamra marked this pull request as ready for review August 22, 2019 04:58
@vkamra vkamra requested a review from tdmanv August 22, 2019 04:58
@@ -12,7 +12,7 @@ import (
"github.com/Masterminds/sprig"
. "gopkg.in/check.v1"
appsv1 "k8s.io/api/apps/v1"
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
Copy link
Author

Choose a reason for hiding this comment

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

Annoying - but goimports is adding this - golang/go#28428

@tdmanv tdmanv merged commit 1ab04d6 into master Aug 22, 2019
@tdmanv tdmanv deleted the remove_redundant_secretkind_check branch August 22, 2019 16:07
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.

2 participants