class_docstr: Tests flower service.
class_docstr_tok: ["Tests","flower","service","."]
code: def test_overrides(self):
      docs = render_chart(
          values={
              "ports": {"flowerUI": 9000},
              "flower": {
                  "enabled": True,
                  "service": {
                      "type": "LoadBalancer",
                      "loadBalancerIP": "127.0.0.1",
                      "annotations": {"foo": "bar"},
                      "loadBalancerSourceRanges": ["10.123.0.0/16"],
                  },
              },
          },
          show_only=["templates/flower/flower-service.yaml"],
      )
  
      assert {"foo": "bar"} == jmespath.search(
          "metadata.annotations", docs[0]
      )
      assert "LoadBalancer" == jmespath.search("spec.type", docs[0])
      assert {"name": "flower-ui", "port": 9000} in jmespath.search(
          "spec.ports", docs[0]
      )
      assert "127.0.0.1" == jmespath.search(
          "spec.loadBalancerIP", docs[0]
      )
      assert ["10.123.0.0/16"] == jmespath.search(
          "spec.loadBalancerSourceRanges", docs[0]
      )
  
imports: from __future__ import annotations
  import jmespath
  import pytest
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 3 for calling the TestFlowerService obj's underlying member method code with example usage: obj.test_overrides() without return types