You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could be wrong with the unit test. Having read the code, io.Discard is being used. But it does not make sense why my skaffold is receiving the env key instead of the value.
My skaffold looks like this:
apiVersion: skaffold/v4beta8kind: Configbuild:
tagPolicy:
customTemplate:
template: "{{.USER}}_{{.HASH}}"components:
- name: USERenvTemplate:
template: "{{.USER}}"
- name: HASHsha256: {}artifacts:
- image: "a image name comes here"context: .custom:
buildCommand: "make docker_build_svc SVC={{.SERVICE}}"dependencies:
paths:
- "."ignore:
- "svc/*/bin/**"local:
push: falsedeploy:
helm:
releases:
- name: "{{.SERVICE}}"chartPath: "../core/charts/{{.SERVICE}}"# <---- this does not worknamespace: nidupgradeOnChange: truevaluesFiles:
- "./default_svc_values.yaml"
- "./services/{{.SERVICE}}.yaml"setValues:
skaffold: "true"environment.LOG_FORMAT.value: "text"setValueTemplates:
name: "{{.SERVICE}}"fullnameOverride: "{{.SERVICE}}"hosts[0]: "{{.SERVICE}}.{{.CLUSTER_HOST}}"image: "an image name comes here"imagePullPolicy: NeverdeploymentAnnotations.sidecar\.istio\.io/proxyCPU: "1m"deploymentAnnotations.sidecar\.istio\.io/proxyMemory: 16MiistioVersion: "{{.ISTIO_VERSION}}"
The output that I am receiving is:
Starting deploy...
Loading images into kind cluster nodes...
- an image name comes here -> Found
Images loaded in 49.08925ms
INFO[0002] Deploying with helm v3.12.2 ... subtask=0 task=Deploy
INFO[0002] Building helm dependencies... subtask=0 task=Deploy
Error: could not find ../core/charts/{{.SERVICE}}: stat ../core/charts/{{.SERVICE}}: no such file or directory
deploying "wallet-gql": building helm dependencies: exit status 1
Expected behavior
chartPath templating should work in the unit test
Actual behavior
chartPath templating pastes directly the {{.FOO}} into the render output
Information
The text was updated successfully, but these errors were encountered: