-
Notifications
You must be signed in to change notification settings - Fork 360
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
add CLI and endpoints to set software via fleetctl apply #18876
Conversation
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.
Awesome! Left some minor nits but overall LGTM, just worried a bit about all that happens on every gitops apply but I think that's something we already discussed on addressing in a future iteration.
} | ||
|
||
g, workerCtx := errgroup.WithContext(ctx) | ||
g.SetLimit(3) |
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.
✨
case "msi": | ||
name, version, shaSum, err = ExtractMSIMetadata(br) | ||
default: | ||
return "", "", "", nil, ErrUnsupportedType |
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.
🎉
@@ -559,6 +559,65 @@ func (c *Client) ApplyGroup( | |||
tmScriptsPayloads[k] = scriptPayloads | |||
} | |||
|
|||
tmSoftware := extractTmSpecsSoftware(specs.Teams) |
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.
Just for my understanding, this adds the support for both fleetctl apply
and fleetctl gitops
? They both end up calling this ApplyGroup
?
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.
thanks so much for this comment. I will upload the title of the issue to note that this is only for fleetctl apply
. I might need to adjust gitops in a follow up because at first glance it's going to be a significant diff as well :(
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.
Argh :( I thought this was good for both. Let coordinate in slack if there are ways to split work for all the remaining bits.
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.
sounds good, thank you!!
Co-authored-by: Martin Angers <martin.n.angers@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feat-software-installers #18876 +/- ##
===========================================================
Coverage ? 66.71%
===========================================================
Files ? 898
Lines ? 110937
Branches ? 0
===========================================================
Hits ? 74015
Misses ? 30912
Partials ? 6010
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@roperzh CI failure is unrelated ( |
@mna thanks! was driving me crazy |
for #18325
Checklist for submitter
If some of the following don't apply, delete the relevant line.
SELECT *
is avoided, SQL injection is prevented (using placeholders for values in statements)