-
Notifications
You must be signed in to change notification settings - Fork 887
feat(cli): add --create
flag to coder templates push
#8068
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
Conversation
--create
flag to coder templates push
--create
flag to coder templates push
/deploy-pr |
✔️ Deployed PR 8068 successfully. |
inactivityTTL := 0 * time.Hour | ||
disableEveryone := false | ||
createReq := codersdk.CreateTemplateRequest{Name: name, DefaultTTLMillis: ptr.Ref(defaultTTL.Milliseconds()), FailureTTLMillis: ptr.Ref(failureTTL.Milliseconds()), InactivityTTLMillis: ptr.Ref(inactivityTTL.Milliseconds()), DisableEveryoneGroupAccess: disableEveryone} | ||
template, err = client.CreateTemplate(inv.Context(), organization.ID, createReq) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line specifically. The object template
isn't being updated as expected.
@johnstcn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing CreateTemplateRequest.VersionID - creating a template requires a template version to be present.
Co-authored-by: Cian Johnston <cian@coder.com>
fixes #6851