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

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yolocs committed Mar 27, 2020
1 parent faee1c2 commit 3de9e57
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 14 deletions.
3 changes: 2 additions & 1 deletion cmd/security-controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ limitations under the License.
package main

import (
// The following line to load the gcp plugin (only required to authenticate against GKE clusters).
"github.com/google/knative-gcp/pkg/reconciler/security/istio/eventpolicybinding"
"github.com/google/knative-gcp/pkg/reconciler/security/istio/httppolicybinding"

// The following line to load the gcp plugin (only required to authenticate against GKE clusters).
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"

"knative.dev/pkg/injection/sharedmain"
Expand Down
4 changes: 2 additions & 2 deletions cmd/security-webhook/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2020 The Knative Authors
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -118,7 +118,7 @@ func main() {
ServiceName: logconfig.WebhookName(),
Port: 8443,
// SecretName must match the name of the Secret created in the configuration.
SecretName: "webhook-certs",
SecretName: "security-webhook-certs",
})

sharedmain.WebhookMainWithContext(ctx, logconfig.WebhookName(),
Expand Down
6 changes: 3 additions & 3 deletions config/security/400-webhook-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ apiVersion: v1
kind: Service
metadata:
labels:
role: webhook
role: security-webhook
security.knative.dev/release: devel
name: webhook
name: security-webhook
namespace: knative-security
spec:
ports:
- port: 443
targetPort: 8443
selector:
role: webhook
role: security-webhook
2 changes: 1 addition & 1 deletion config/security/500-webhook-config-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ webhooks:
- v1beta1
clientConfig:
service:
name: webhook
name: security-webhook
namespace: knative-security
failurePolicy: Fail
sideEffects: None
Expand Down
2 changes: 1 addition & 1 deletion config/security/500-webhook-defaulting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ webhooks:
- v1beta1
clientConfig:
service:
name: webhook
name: security-webhook
namespace: knative-security
failurePolicy: Fail
sideEffects: None
Expand Down
2 changes: 1 addition & 1 deletion config/security/500-webhook-resource-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ webhooks:
- v1beta1
clientConfig:
service:
name: webhook
name: security-webhook
namespace: knative-security
failurePolicy: Fail
sideEffects: None
Expand Down
2 changes: 1 addition & 1 deletion config/security/500-webhook-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
apiVersion: v1
kind: Secret
metadata:
name: webhook-certs
name: security-webhook-certs
namespace: knative-security
labels:
security.knative.dev/release: devel
Expand Down
8 changes: 4 additions & 4 deletions config/security/500-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: webhook
name: security-webhook
namespace: knative-security
labels:
security.knative.dev/release: devel
Expand All @@ -24,12 +24,12 @@ spec:
selector:
matchLabels:
app: knative-security
role: webhook
role: security-webhook
template:
metadata:
labels:
app: knative-security
role: webhook
role: security-webhook
security.knative.dev/release: devel
spec:
serviceAccountName: security-webhook
Expand Down Expand Up @@ -58,4 +58,4 @@ spec:
- name: METRICS_DOMAIN
value: cloud.google.com/events
- name: WEBHOOK_NAME
value: webhook
value: security-webhook

0 comments on commit 3de9e57

Please sign in to comment.