-
Notifications
You must be signed in to change notification settings - Fork 260
NPM Prometheus Update #986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…h those for network policies (exec time recorded even for failures). Also made prometheus timer variable names clearer.
…hen testing the cluster metric handler
…make metric updates when there's no error
…working into npm-prometheus-update
…ng ipset for better readability. updating comments too
…le num ipsets is 0
…tm and netpol controller, and removed clientset from controller creation in test files (fixing build error)
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
| return err | ||
| } | ||
| if err == nil { | ||
| metrics.IncNumIPSets() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will need to create setname entry in IpsetInventory
vakalapa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm. Put a pin on ipset inventory creation for empty sets. I still think we will need to do it but at the moment it is not crucial.
JungukCho
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm! Thank you for applying comments!
|
👎🏼 don't merge with failing checks. npm/nameSpaceController.go:80:144: unexported-return: exported func NewNameSpaceController returns unexported type *npm.nameSpaceController, which can be annoying to use (revive)
func NewNameSpaceController(nameSpaceInformer coreinformer.NamespaceInformer, ipsMgr *ipsm.IpsetManager, npmNamespaceCache *npmNamespaceCache) *nameSpaceController {
^
npm/networkPolicyController.go:46:114: unexported-return: exported func NewNetworkPolicyController returns unexported type *npm.networkPolicyController, which can be annoying to use (revive)
func NewNetworkPolicyController(npInformer networkinginformers.NetworkPolicyInformer, ipsMgr *ipsm.IpsetManager) *networkPolicyController {
^
npm/podController.go:93:126: unexported-return: exported func NewPodController returns unexported type *npm.podController, which can be annoying to use (revive)
func NewPodController(podInformer coreinformer.PodInformer, ipsMgr *ipsm.IpsetManager, npmNamespaceCache *npmNamespaceCache) *podController { |
@rbtr Thank you for reminder. |
Reason for Change:
ipset listwhen destroying NPM ipsetsIssue Fixed:
Requirements:
Notes: