Skip to content

Enterprise jsonnet: add config to create tokengen job explicitly#1256

Merged
yvrhdn merged 3 commits intografana:mainfrom
yvrhdn:kvrhdn/jsonnet-enterprise-run-tokengen-once
Jan 28, 2022
Merged

Enterprise jsonnet: add config to create tokengen job explicitly#1256
yvrhdn merged 3 commits intografana:mainfrom
yvrhdn:kvrhdn/jsonnet-enterprise-run-tokengen-once

Conversation

@yvrhdn
Copy link
Copy Markdown
Contributor

@yvrhdn yvrhdn commented Jan 27, 2022

What this PR does:
The jsonnet for GET creates a job to generate the token from a GET license (tokengen). This job should be created once when installing GET and the job can not be modified afterwards. To make this easier to manage, this PR adds a config option run_tokengen_job which is disabled by default and can be set to explicitly create the tokengen job.

How it works:

The first time a GET cluster is created the user should set:

  _config+:: {
    run_tokengen_job: true,
  },

During tk apply, tanka will create the tokengen job (just like before). After the job has run, the user should remove this line and the tokengen job will not be modified anymore by tanka.

Which issue(s) this PR fixes:
Fixes #

Checklist

@yvrhdn yvrhdn changed the title Enterprise jsonnet: add config to create tokengen job once Enterprise jsonnet: add config to create tokengen job explicitly Jan 28, 2022
@yvrhdn yvrhdn marked this pull request as ready for review January 28, 2022 15:19
Copy link
Copy Markdown
Contributor

@hedss hedss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! Thank you for doing this!

@yvrhdn yvrhdn merged commit f0c8390 into grafana:main Jan 28, 2022
@yvrhdn yvrhdn deleted the kvrhdn/jsonnet-enterprise-run-tokengen-once branch January 28, 2022 17:35
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.

3 participants