MCPcopy Create free account
hub / github.com/cool-sun/cloudApp / getConfig

Method getConfig

k8s/app.go:76–84  ·  view source on GitHub ↗

获取app的配置 首先看有没有相应名称的configmap存在,有的话就返回configmap的配置 如果没有相应的configmap存在,就根据给定的配置文件路径,在pod中执行exec命令找到默认的配置文件来

(namespace, appName, configDir string, configFiles []string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

GetConfigMethod · 0.80

Calls 2

getConfigmapMethod · 0.95

Tested by

no test coverage detected