Skip to content

Support for contexts or profiles for remote gateways #496

Open
@alexellis

Description

We could offer a way to support a profile or context as an alias for a gateway. A user suggested something similar about an "rc" file or not having to remember multiple gateway URLs in #479

Current behaviour

You need to remember your gateway URLs or look them up in ~/.openfaas/config.yaml

Feature

This might be similar to how kubectl handles multiple contexts.

# faas-cli create-context staging --gateway https://staging.openfaas.com

# faas-cli set-context staging
Using gateway: https://staging.openfaas.com

# faas-cli get-context staging
Using gateway: https://staging.openfaas.com

# faas-cli get-context

[x] staging
[ ] local
[ ] swarm

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions