-
Notifications
You must be signed in to change notification settings - Fork 0
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
MGMT-9451: Moving to new service-agent protocol #76
base: igal/new_agent_protocol
Are you sure you want to change the base?
MGMT-9451: Moving to new service-agent protocol #76
Conversation
Moving new commands : stop and logs Adding new step type for stop and logs
// LogsGatherCmdRequest logs gather cmd request | ||
// | ||
// swagger:model logs_gather_cmd_request | ||
type LogsGatherCmdRequest struct { |
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 is great, but how are you planning to deliver it? it seems that in order to do unmarshel in the agent side the agent will need to import this version of the service, I'm unsure you can deliver this change independently.
package models | ||
|
||
// This file was generated by the swagger tool. | ||
// Editing this file might prove futile when you re-run the swagger generate command |
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.
Try rerunning without changing the swagger and ensure the validations aren't changed.
return nil | ||
} | ||
|
||
func (m *LogsGatherCmdRequest) validateInsecure(formats strfmt.Registry) error { |
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.
Why do we need formats here?
res = append(res, err) | ||
} | ||
|
||
if len(res) > 0 { |
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.
If all validations pass res will be [nil, nil, nil, nil...], no ?
|
||
func (m *LogsGatherCmdRequest) validateInsecure(formats strfmt.Registry) error { | ||
|
||
if err := validate.Required("insecure", "body", m.Insecure); err != nil { |
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.
What are you validating here?
Moving new commands : stop and logs
Adding new step type for stop and logs
Assisted Pull Request
Description
List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Assignees
/cc @
/cc @
Checklist
docs
, README, etc)Reviewers Checklist