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

Add flag for kubeconfig override #525

Merged
merged 1 commit into from
Sep 28, 2019
Merged

Conversation

alexellis
Copy link
Member

Signed-off-by: Alex Ellis (OpenFaaS Ltd) alexellis2@gmail.com

Description

Add flag for kubeconfig override

Motivation and Context

This allows users to run the faas-netes controller from their
local computer when debugging or adding new features.

The Operator codebase already has this.

How Has This Been Tested?

Tested with: go build ; ./faas-netes -kubeconfig=$HOME/.kube/config
and a remote cluster which had OpenFaaS installed already. The
following command worked as expected:

curl -s localhost:8080/system/functions

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

This allows users to run the faas-netes controller from their
local computer when debugging or adding new features.

Tested with: go build ; ./faas-netes -kubeconfig=$HOME/.kube/config
and a remote cluster which had OpenFaaS installed already. The
following command worked as expected:

curl -s localhost:8080/system/functions

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
@alexellis alexellis force-pushed the openfaasltd/add-kubeconfig-flag branch from 2ca9969 to e2739c3 Compare September 28, 2019 17:55
@alexellis
Copy link
Member Author

@LucasRoesler @stefanprodan FYI this enables local dev/test for faster/easier patches. Thanks to Stefan for putting this into the operator.

@alexellis alexellis removed the request for review from LucasRoesler September 28, 2019 17:59
@alexellis alexellis merged commit 2111990 into master Sep 28, 2019
@alexellis alexellis deleted the openfaasltd/add-kubeconfig-flag branch September 28, 2019 18:06
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 this pull request may close these issues.

1 participant