我需要升级helm chart中的一些值: EC2-TEST@~>helm list -A
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
jenkins jenkins 1 2021-06-23 09:21:28.245050889 +0000 UTC deployed jenkins-3.4.0 2.289.1 EC2-TEST@~>helm repo list
N
我试图从表示路径的变量中删除前缀。
目前,这是我的代码:
for f in /Users/username/Documents/Dev/beneficiary-service/src/main/helm/*
do
echo $f
if [[ $f == 'values'* ]]
then
yq d -i $f 'resources.'
fi
done
我打印了$f以查看它的输出。我希望它只是文件名,没有路径(值-stg.yaml)。但是,这是输出:
+ echo /Users/username/Documents/Dev/benefi
config:
temp.yaml: |-
instances:
- server: <The value that is going to be passed from helm template --set>
port: 443
命令:--设置config."temp.yaml.instances.server"=server_url
我有一个头盔模板,如上面的例子所示。可以看到,temp.yaml是内联的,但我需要在内联部分设置一个值。用"helm template -set“命令就能做到这一点吗