Giter Club home page Giter Club logo

Comments (2)

ytsarev avatar ytsarev commented on June 3, 2024 1

@jkremser all looks reasonable and good to me. And breaking change is apparently unavoidable here. But we are used to that(tm) :D

from k8gb.

jkremser avatar jkremser commented on June 3, 2024

currently, the edgeDNSServer and edgeDNSServerPort are passed to operator as environment variables.

...
            - name: EDGE_DNS_SERVER
              value: {{ .Values.k8gb.edgeDNSServer }}
            - name: EDGE_DNS_SERVER_PORT
              value: "53"
...

If multiple edgeDNSServers should be supported, I'd suggest something like this:

...
            - name: EDGE_DNS_SERVERS
              value: "1.1.1.1:53, 2.2.2.2, 3.3.3.3:1053"
...

so that the ip and port are bounded together and separated by the colon : with a rule, that if the port is missing it would default to 53. Also the entries are separated by comma and the order matters (the server that's listed first is the primary one / first in the fallback mechanism)

As for the helm chart and the values.yaml it may look like this:

edgeDNSServer: &edgeDNSServer:
  - 1.1.1.1
  - 2.2.2.2:1053 

then we can use:
{{ join "," .Values.some.array }}
at chart/k8gb/operator.yaml

Bad news is that it's a breaking change, the name that better represents the nature of the variable would be the plural form - i.e. s/EDGE_DNS_SERVER/EDGE_DNS_SERVERS/ + the EDGE_DNS_SERVER_PORT variable is not needed anymore, because the port can be optionally passed in the EDGE_DNS_SERVERS comma-separated list itself.

if it makes sense, I can start working on this.

from k8gb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.