Giter VIP home page Giter VIP logo

Comments (6)

LeoQuote avatar LeoQuote commented on August 27, 2024

我这边没这种环境, 你有什么建议的方案?

from charts.

LeoQuote avatar LeoQuote commented on August 27, 2024

{{- define "dify.baseUrl" -}}
{{ if .Values.global.enableTLS }}https://{{ else }}http://{{ end }}{{.Values.global.host}}
{{- end }}
这里加一些比如 external port 的 value 如何? 你如果想的话可以直接 pr

from charts.

jeessy2 avatar jeessy2 commented on August 27, 2024

这样?
如果你在 values.yaml 文件中定义了多个相同名称的环境变量,你可以使用 Helm 的 dict 函数将它们合并为一个单独的 env 列表。

# templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ .Release.Name }}
spec:
  template:
    spec:
      containers:
      - name: {{ .Release.Name }}
        env:
        {{- $envs := dict }}
        {{- range $index, $env := .Values.env }}
        {{- $_ := set $envs $env.name $env }}
        {{- end }}
        {{- range $key, $value := $envs }}
        - name: {{ $key }}
          value: {{ $value.value }}
        {{- end }}

from charts.

LeoQuote avatar LeoQuote commented on August 27, 2024

我觉得有点复杂, 我上面提的方案如何呢? 就是加一个 global.port 的value, 如果有就在里面渲染就行

from charts.

jeessy2 avatar jeessy2 commented on August 27, 2024

也可以

from charts.

LeoQuote avatar LeoQuote commented on August 27, 2024

提个 pr 吧, 谢谢~ 你顺便也可以验证下

from charts.

Related Issues (17)

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.