This repository was archived by the owner on Aug 15, 2022. It is now read-only.
Open
Conversation
This PR makes it possible to modify the koding user,
that is running the Klient service on a remote vm.
In particular the following user_data will currently
make the template parsing to fail:
user_data: |
#cloud-config
users:
- name: ${var.koding_account_profile_nickname}
groups:
- docker
This PR will merge the koding user object with the
default one, defined by kloud. In effect, the resulting
user will be added to a docker group as well.
This technique can be also used e.g. to add an ssh key
for the koding user, like:
user_data: |
#cloud-config
users:
- name: ${var.koding_account_profile_nickname}
ssh-authorized-keys:
- ssh-rsa AAAAB3NzaC1yc2EA... koding-350298856
A "userdata" is a JSONPath which allows for locating a user_data (cloud-init) key within a stack template tree. Locating cloud-init in the tree is going to allow for provider-agnostic manipulation of stack template content, like creating new and custom templates on-the-fly (as oppose to dummy templates received from JTemplate.Sample). The templates are meant to be manipulated client-side (e.g. kd), before sending them over to koding.
Allows for disabling metrics with:
$ kd config set noMetrics true
Works around #11201.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: