mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-15 17:51:20 +00:00
rename kyverno-deployment in pkg/config/config.go
This commit is contained in:
parent
da5e4cf6eb
commit
9bdc0b17f6
3 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ const (
|
|||
// When the issue is closed, we should use TypeMeta struct instead of this constants
|
||||
DeploymentKind = "Deployment"
|
||||
DeploymentAPIVersion = "extensions/v1beta1"
|
||||
KubePolicyDeploymentName = "kyverno-deployment"
|
||||
KubePolicyDeploymentName = "kyverno"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -40,7 +40,7 @@ func newFixture(t *testing.T) *fixture {
|
|||
newUnstructured("group/version", "TheKind", "ns-foo", "name-bar"),
|
||||
newUnstructured("group/version", "TheKind", "ns-foo", "name-baz"),
|
||||
newUnstructured("group2/version", "TheKind", "ns-foo", "name2-baz"),
|
||||
newUnstructured("apps/v1", "Deployment", "kyverno", "kyverno-deployment"),
|
||||
newUnstructured("apps/v1", "Deployment", "kyverno", "kyverno"),
|
||||
}
|
||||
scheme := runtime.NewScheme()
|
||||
// Create mock client
|
||||
|
@ -52,7 +52,6 @@ func newFixture(t *testing.T) *fixture {
|
|||
// set discovery Client
|
||||
client.SetDiscovery(NewFakeDiscoveryClient(regResource))
|
||||
|
||||
|
||||
f := fixture{
|
||||
t: t,
|
||||
objects: objects,
|
||||
|
|
|
@ -253,6 +253,7 @@ func (wrc *WebhookRegistrationClient) constructOwner() meta.OwnerReference {
|
|||
kubePolicyDeployment, err := wrc.client.GetKubePolicyDeployment()
|
||||
|
||||
if err != nil {
|
||||
glog.Errorf("Error when constructing OwnerReference, err: %v\n", err)
|
||||
return meta.OwnerReference{}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue