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

flux build kustomization --dry-run still tries to talk to the server #3411

Closed
1 task done
arbourd opened this issue Dec 16, 2022 · 0 comments · Fixed by #3415
Closed
1 task done

flux build kustomization --dry-run still tries to talk to the server #3411

arbourd opened this issue Dec 16, 2022 · 0 comments · Fixed by #3415
Labels
area/diff Diff related issues and pull requests bug Something isn't working

Comments

@arbourd
Copy link
Contributor

arbourd commented Dec 16, 2022

Describe the bug

#3317 implemented a --dry-run flag that states:

If implemented user will be able to use flux build kustomization without any connection to the cluster.

This seems to be incorrect:

$ flux build kustomization base --path clusters/stg --kustomization-file clusters/stg/base.yaml --dry-run
✗ kubernetes client initialization failed: Get "https://kubernetes.docker.internal:6443/api?timeout=32s": dial tcp 127.0.0.1:6443: connect: connection refused

Steps to reproduce

  1. Run flux build kustomization with a dead kubeconfig and watch it fail.

Expected behavior

Should render some yamls.

Screenshots and recordings

No response

OS / Distro

macOS and Ubuntuf

Flux version

0.37.0

Flux check

► checking prerequisites
✗ Kubernetes API call failed: Get "https://kubernetes.docker.internal:6443/version": dial tcp 127.0.0.1:6443: connect: connection refused
► checking controllers
► checking crds
✗ check failed

Git provider

No response

Container Registry provider

No response

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@souleb souleb added the area/diff Diff related issues and pull requests label Dec 16, 2022
@souleb souleb added the bug Something isn't working label Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/diff Diff related issues and pull requests bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants