Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezl committed Jul 8, 2020
1 parent 39e128e commit 702efaf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bindata/v4.1.0/kube-apiserver/pod.yaml
Expand Up @@ -176,7 +176,7 @@ spec:
- --namespace
- $(POD_NAMESPACE)
- --v
- '2'
- '6'
env:
- name: POD_NAME
valueFrom:
Expand Down
5 changes: 4 additions & 1 deletion pkg/cmd/checkendpoints/cmd.go
Expand Up @@ -17,7 +17,10 @@ import (
func NewCheckEndpointsCommand() *cobra.Command {
config := controllercmd.NewControllerCommandConfig("check-endpoints", version.Get(), func(ctx context.Context, cctx *controllercmd.ControllerContext) error {
namespace := os.Getenv("POD_NAMESPACE")
operatorcontrolplaneClient := operatorcontrolplaneclient.NewForConfigOrDie(cctx.KubeConfig)
operatorcontrolplaneClient, err := operatorcontrolplaneclient.NewForConfig(cctx.KubeConfig)
if err != nil {
return err
}
operatorcontrolplaneInformers := operatorcontrolplaneinformers.NewSharedInformerFactoryWithOptions(operatorcontrolplaneClient, 10*time.Minute, operatorcontrolplaneinformers.WithNamespace(namespace))
check := controller.NewPodNetworkConnectivityCheckController(
os.Getenv("POD_NAME"),
Expand Down
2 changes: 1 addition & 1 deletion pkg/operator/v410_00_assets/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 702efaf

Please sign in to comment.