helm plugin command warning

# helm (v3.18.4) 명령을 실행시 다음과 같은 경고 문구가 나온다.
WARNING: both 'platformCommand' and 'command' are set in "/Users/ysoftman/Library/helm/plugins/helm-secrets/plugin.yaml" (this will become an error in a future Helm version)

# platformCommand 는 Helm 3.8 이후 추가된 기능이고,
# 이전 command 와 중복으로 사용하면 향후 버전에서는 에러가 발생될 예정이라고 한다.
command: 플랫폼 독립 명령어
platformCommand: 플랫폼별(linux, darwin, windows)로 명령어 지정

# 문제가 되는 plugin.yaml 설정을 보니 다음과 같이 command 가 중복돼 있었다.
vim /Users/ysoftman/Library/helm/plugins/helm-secrets/plugin.yaml

command: "$HELM_PLUGIN_DIR/scripts/run.sh"
platformCommand:
  - os: windows
    command: "cmd /c $HELM_PLUGIN_DIR\\scripts\\wrapper\\sh.cmd $HELM_PLUGIN_DIR\\scripts\\run.sh"

# helm plugin 으로 설치된 리스트 확인 후
helm plugin list

# 개별 업데이트(전체 업데이트는 지원하지 않아서)
helm plugin update diff
helm plugin update helm-git
helm plugin update s3
helm plugin update secrets

# secrets(helm-secrets) 가 4.1.1 -> 4.7.0-dev 로 변경되었다.
# 다시 plugin.yaml 확인해 platformCommand 만 사용하는것으로 수정되어 있다.
vim /Users/ysoftman/Library/helm/plugins/helm-secrets/plugin.yaml

platformCommand:
  - os: linux
    command: "$HELM_PLUGIN_DIR/scripts/run.sh"
  - os: darwin
    command: "$HELM_PLUGIN_DIR/scripts/run.sh"
  - os: windows
    command: >-
      cmd /c $HELM_PLUGIN_DIR\scripts\wrapper\run.cmd

# 이제 경고 문구가 발생되지 않는다.

comments:

댓글 쓰기