-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat(runners): allow to create unregistered runners for terraform usage #3904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from 1 commit
abdd1be
3c06a8b
d295634
de47599
7b0e957
a9d378a
4184061
b44c431
4a7a6a6
9fc1d9c
d858536
636ced6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,16 @@ type Runner struct { | |
| CleaningRequested *time.Time `db:"cleaning_requested" json:"cleaning_requested"` | ||
|
|
||
| PublicKey *string `db:"public_key" json:"-"` | ||
|
|
||
| // Unregistered is a transient flag (never persisted) used at creation time to | ||
| // request a runner without a token. Such a runner gets an empty token and must | ||
| // be registered later via `semaphore runner register --runner-id <id>`. | ||
| Unregistered bool `db:"-" json:"unregistered"` | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Because this field is tagged Useful? React with 👍 / 👎. |
||
| } | ||
|
|
||
| // IsRegistered reports whether the runner has been registered (has a token). | ||
| func (r Runner) IsRegistered() bool { | ||
| return r.Token != "" | ||
| } | ||
|
|
||
| // HasTag reports whether the runner is tagged with the given tag. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.