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

Method updateConfig

k8s/app.go:89–109  ·  view source on GitHub ↗

更新app配置, 大致的思路是创建相应的configmap,然后将configmap以文件的形式挂载到容器内 首次创建对应configmap的时候需要更新对应的deployment,也可能是更新别的类型的控制器

(namespace, appName, configMountPath string, data map[string]string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

UpdateConfigMethod · 0.80

Calls 5

CheckResourceExistMethod · 0.95
updateConfigmapMethod · 0.95
createConfigmapMethod · 0.95
NewMethod · 0.65

Tested by

no test coverage detected