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.yaml with only portForward errors out with "nothing to deploy" #9496

Open
johannespfrang opened this issue Aug 13, 2024 · 0 comments

Comments

@johannespfrang
Copy link

johannespfrang commented Aug 13, 2024

We have a utility skaffold file called skaffold.forward.yaml which developers can use to forward some usually non-exposed ports. The file works with skaffold v1, but does not work with skaffold v2.

Expected behavior

$ skaffold1 run -f ./skaffold.forward.yaml --port-forward=user
Listing files to watch...
WARN[0000] k8s/*.yaml did not match any file             subtask=-1 task=DevLoop
Generating tags...
Checking cache...
Tags used in deployment:
Starting deploy...
WARN[0000] k8s/*.yaml did not match any file             subtask=-1 task=DevLoop
Waiting for deployments to stabilize...
Deployments stabilized in 11.509247ms
Port forwarding Service/ingress-nginx-controller in namespace ingress-nginx, remote port 443 -> http://127.0.0.1:443
Port forwarding Service/ingress-nginx-controller in namespace ingress-nginx, remote port 80 -> http://127.0.0.1:80

Actual behavior

$ skaffold2 run -f ./skaffold.forward.yaml --port-forward=user
No tags generated
Starting test...
WARN[0000] k8s/*.yaml did not match any file             subtask=-1 task=DevLoop
Starting deploy...
nothing to deploy

Information

  • Skaffold version: v2.13.1
  • Operating system: Ubuntu 24.04
  • Installed via: skaffold.dev
  • Contents of skaffold.yaml:
apiVersion: skaffold/v2beta28
kind: Config
portForward:
  - resourceType: Service
    resourceName: ingress-nginx-controller
    namespace: ingress-nginx
    port: 80
    address: 127.0.0.1
    localPort: 80
  - resourceType: Service
    resourceName: ingress-nginx-controller
    namespace: ingress-nginx
    port: 443
    address: 127.0.0.1
    localPort: 443

(simplified example, we have many other forwards)

Steps to reproduce the behavior

  1. Install ingress-nginx
  2. Run the above yaml with skaffold v1 vs skaffold v2
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

Successfully merging a pull request may close this issue.

1 participant