Skip to content

Make the cluster GitRepo URL optional#86

Merged
srueg merged 2 commits intomasterfrom
cluster-repo-optional
Oct 2, 2020
Merged

Make the cluster GitRepo URL optional#86
srueg merged 2 commits intomasterfrom
cluster-repo-optional

Conversation

@srueg
Copy link
Copy Markdown
Contributor

@srueg srueg commented Sep 30, 2020

Together with [1] a tenant can specify a template which will be used for
defaults of a new cluster.

[1] projectsyn/lieutenant-operator#110

Checklist

  • Keep pull requests small so they can be easily reviewed.
  • Update the documentation.
  • Update the ./CHANGELOG.md.
  • Link this PR to related issues.

@srueg srueg force-pushed the cluster-repo-optional branch from afce1e7 to 7337a0d Compare September 30, 2020 14:46
@srueg srueg marked this pull request as ready for review September 30, 2020 14:47
@srueg
Copy link
Copy Markdown
Contributor Author

srueg commented Oct 1, 2020

I just realized that with this it's now not possible to create a valid tenant via the API anymore: The API can only set the URL but not the APISecretRef which is not defaulted anymore and therefore stays empty.

To solve this we could either add a default to the API again (vshn-gitlab) or extend the API to allow to set APISecretRefs.

@srueg
Copy link
Copy Markdown
Contributor Author

srueg commented Oct 2, 2020

As discussed:

For now we'll implement a default for the APISecretRef, set via env var.

srueg and others added 2 commits October 2, 2020 13:33
Together with [1] a tenant can specify a template which will be used for
defaults of a new cluster.

[1] projectsyn/lieutenant-operator#110
To be able to set a sane default (and nothing hard coded) an environment
variable is used.
@srueg srueg force-pushed the cluster-repo-optional branch from 5b1507f to a69a2ff Compare October 2, 2020 11:33
@srueg srueg merged commit 3d756ac into master Oct 2, 2020
@srueg srueg deleted the cluster-repo-optional branch October 2, 2020 11:37
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