Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skaffold 2 with multiple deployers kubectl and helm in one time config values in skaffold.yaml #9473

Open
1Const1 opened this issue Jul 11, 2024 · 0 comments

Comments

@1Const1
Copy link

1Const1 commented Jul 11, 2024

Expected behavior

Apply kubectl manifests raw yaml and than helm install command

Actual behavior

only helm install command is running

Information

  • Skaffold version: 2.13.0
  • Operating system: MacOS
  • Installed via: Homebrew
  • Contents of skaffold.yaml:
apiVersion: skaffold/v4beta11
kind: Config
metadata:
  name: microservice
build:
  tagPolicy:
    gitCommit:
      variant: CommitSha
  artifacts:
    - image: nexus.corp.us:8081/microservice
      jib:
        args: [
          "-D", "jib.container.mainClass=org.sample.Application",
        ]
manifests:
  rawYaml:
    - kubernetes/configmap.yml
deploy:
  helm:
    releases:
      - name: microservice
        remoteChart: http://someurl.corp.com/chart/archive.tar.gz
        namespace: appnamespace
        valuesFiles:
          - kubernetes/values.yaml
        setValues:
          image: nexus.corp.us:8081/microservice
          imageConfig.pullPolicy: Always
          debug: true
        wait: true
        recreatePods: true

Steps to reproduce the behavior

  1. skaffold dev --port-forward --cleanup=true -n appnamespace --filename=skaffold.yaml

i have been tryed also set manifests yaml to apply first like this:

manifests:
  rawYaml:
    - kubernetes/configmap.yml
deploy:
  kubectl: {}
  helm:
    releases:

not helps

tryed like this

manifests:
  rawYaml:
    - kubernetes/configmap.yml
deploy:
  kubectl: 
      manifests:
           - kubernetes/configmap.yml
  helm:
    releases:

gives error yaml skaffold validation that manifests not fould - "field manifests not found in type latest.KubectlDeploy"

So could someone help please what is correct yaml config value for multiple deployers in skaffold.yaml for running first kubectl apply file command and after that helm install command?

found this issue for old version - #3392
this code was not in current repo skaffold

and this request - #4231

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant