Skip to content

K6_CLOUD_TOKEN should be configurable per run #101

Open
@zerok

Description

@zerok

Right now it looks like K6_CLOUD_TOKEN can only be set globally for the whole process. This way, means that right now every canary that uses the same load balancer also has to upload data to the same k6 cloud instance:

Loading
flowchart LR
    canary1-->k6-loadtester
    canary2-->k6-loadtester
    canary3-->k6-loadtester
    k6-loadtester-->k6-cloud1

If we wanted to have different k6 cloud instances receive data from different canaries, we'd need to set up multiple k6-loadtester instances:

Loading
flowchart LR
    canary1-->k6-loadtester1
    canary2-->k6-loadtester2
    canary3-->k6-loadtester3
    k6-loadtester1-->k6-cloud1
    k6-loadtester2-->k6-cloud2
    k6-loadtester3-->k6-cloud3

It would be great if that token could also be injected by the webhook call itself so that multiple k6 cloud projects could be used for different canary tests while still using only a single webhook-handler instance.

Loading
flowchart LR
    canary1-->k6-loadtester
    canary2-->k6-loadtester
    canary3-->k6-loadtester
    k6-loadtester-->k6-cloud1
    k6-loadtester-->k6-cloud2
    k6-loadtester-->k6-cloud3

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @zerok

      Issue actions

        K6_CLOUD_TOKEN should be configurable per run · Issue #101 · grafana/flagger-k6-webhook