k8snetworkplumbingwg / sriov-network-operator

Operator for provisioning and configuring SR-IOV CNI plugin and device plugin
Apache License 2.0
84 stars 114 forks source link

metrics: Fix NodeSelector with boolean values #770

Closed zeeke closed 2 months ago

zeeke commented 2 months ago

When using a node selector with boolean values, e.g.:

apiVersion: sriovnetwork.openshift.io/v1
kind: SriovOperatorConfig
metadata:
  name: default
spec:
  configDaemonNodeSelector:
    feature.node.kubernetes.io/network-sriov.capable: "true"

the value needs to be quoted before forwarding it to the metrics-exporter node selector field.

Fixes #766

github-actions[bot] commented 2 months ago

Thanks for your PR, To run vendors CIs, Maintainers can use one of:

coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 10613343058

Details


Files with Coverage Reduction New Missed Lines %
controllers/drain_controller.go 1 68.06%
controllers/generic_network_controller.go 5 74.53%
<!-- Total: 6 -->
Totals Coverage Status
Change from base Build 10594418576: -0.04%
Covered Lines: 6600
Relevant Lines: 14673

💛 - Coveralls
zeeke commented 2 months ago

got approval from different sides. Merging