Skip to content

Setting Helm deployer imageStrategy.helm does not have any effect #2681

@aeneasr

Description

@aeneasr

Expected behavior

Using helm.ImageStrategy.helm: {} should set the right repository name and tag for image.repository and image.tag when using the helm deployer

Actual behavior

It appears that #826 should have closed #360 . However, using helm.ImageStrategy.helm: {} does not work at all because neither image.repository nor image.tag are being overwritten - they just keep their defaults from the original values.yaml file.

Seeing the skaffold.yaml file from below, I would expect:

  • console to use gcr.io/ory-artifacts/console:<some-hash>-dirty
  • oathkeeper to use gcr.io/ory-artifacts/oathkeeper:<some-hash>-dirty

However, that's not the case - the default values are being used instead:

  • console uses gcr.io/ory-artifacts/console:stable
  • oathkeeper uses oryd/oathkeeper:v0.17.1-beta.1

Information

  • Skaffold version: 0.36.0
  • Operating system: macOS
  • Contents of skaffold.yaml:
apiVersion: skaffold/v1beta13
kind: Config
build:
  local:
    useDockerCLI: false
  artifacts:
    # The order of these needs to stay the same
    -
      image: gcr.io/ory-artifacts/console
      context: console
      docker:
        dockerfile: Dockerfile-skaffold

    -
      image: gcr.io/ory-artifacts/oathkeeper
      context: skaffold/oathkeeper
      docker:
        dockerfile: Dockerfile

deploy:
  helm:
    flags:
      global: ["--tiller-namespace","backoffice"]
    releases:
      -
        name: console
        chartPath: helm/charts/console
        namespace: backoffice
        recreatePods: true
        valuesFiles:
          - skaffold/console/values.yaml
        imageStrategy:
          helm: {}
      -
        name: oathkeeper
        chartPath: ory/oathkeeper
        namespace: backoffice
        remote: true # required for remote charts
        skipBuildDependencies: true # required for remote charts
        recreatePods: true
        valuesFiles:
          - skaffold/oathkeeper/values.yaml
        imageStrategy:
          helm: {}

Steps to reproduce the behavior

Not possible at the moment but happy to provide something if it speeds up the process.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions