Repository navigation
Remove --namespace flag - #433
Conversation
| // the --cluster-resource-namespace. | ||
| sharedInformerFactory := informers.NewFilteredSharedInformerFactory(intcl, time.Second*30, opts.Namespace, nil) | ||
| kubeSharedInformerFactory := kubeinformers.NewFilteredSharedInformerFactory(cl, time.Second*30, opts.Namespace, nil) | ||
| sharedInformerFactory := informers.NewFilteredSharedInformerFactory(intcl, time.Second*30, defaultNamespace, nil) |
There was a problem hiding this comment.
We can stop using the filtered variants of these functions and therefore remove the defaultNamespace const altogether. (NewSharedInformerFactory(intcl, time.Second*30))
| KubeSharedInformerFactory: kubeSharedInformerFactory, | ||
| SharedInformerFactory: sharedInformerFactory, | ||
| Namespace: opts.Namespace, | ||
| Namespace: defaultNamespace, |
There was a problem hiding this comment.
The namespace field can be removed from this structure altogether afaik? I don't think it's used.
There was a problem hiding this comment.
I was thinking about the last part of the original issue that talks about potentially adding the flag back in the future, so left it around. It'd be cleaner to just remove it though.
| IssuerAmbientCredentials: opts.IssuerAmbientCredentials, | ||
| }), | ||
| Namespace: opts.Namespace, | ||
| Namespace: defaultNamespace, |
There was a problem hiding this comment.
The namespace field can be removed from this structure altogether afaik? I don't think it's used.
|
/test e2e v1.7 |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: munnerz The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it: removes the --namespace flag, which currently isn't tested.
Which issue this PR fixes: fixes #334
Special notes for your reviewer:
Release note: