Conversation
17e724d
to
43d7fdc
Compare
serviceSpec stuff moved to: #423 |
9b569f6
to
474d379
Compare
8c23bcb
to
7fcfacd
Compare
Note, without more info from the release, this doesn't currently include any results in the output. |
* Rename ReleaseParams -> ReleaseSpec * Add tests for slack notifier
5785a16
to
930c7b0
Compare
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.
There's a test failing, but it looks easily fixed.
Nitpicks only, really -- though TODOs remain.
"github.com/weaveworks/flux/guid" | ||
) | ||
|
||
const ( |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
EndedAt time.Time `json:"endedAt"` | ||
Done bool `json:"done"` | ||
Priority int `json:"priority"` | ||
Status ServiceReleaseStatus `json:"status"` |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
// TODO: Remove this once there are no more jobs with ServiceSpec, only ServiceSpecs | ||
ServiceSpec flux.ServiceSpec | ||
} | ||
type ReleaseJobParams flux.ReleaseSpec |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
* uses spec instead of actual results. * don't notify slack for dry-runs
87b8ce7
to
e430b63
Compare
I re-did the default template, to use the spec instead of the results to output stuff. It means the output is based on what was requested, not what was done, but... that is what we have for now (until the result format changes from @squaremo's work). for example:
|
Also, I think all the |
release/releaser.go
Outdated
EndedAt: time.Now().UTC(), | ||
Done: true, | ||
Priority: job.Priority, | ||
Status: flux.ServiceReleaseStatus(job.Status), |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Does this more or less replicate the current behaviour? |
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.
Assuming it makes the notifications act mostly as they are now, until there are results to put in them: looks good! ⭐
9d7dae2
to
d13520d
Compare
Fixes: #390
TODO:
TODO
s in the code