1
0
Fork 0
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:
Shuting Zhao 2019-06-27 13:38:51 -07:00
parent da5e4cf6eb
commit 9bdc0b17f6
3 changed files with 3 additions and 3 deletions

View file

@ -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 (

View file

@ -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,

View file

@ -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{}
}