Skip to content
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

Target fixes and change event generation #167

Merged
merged 1 commit into from
Oct 26, 2021
Merged

Conversation

koncar
Copy link
Contributor

@koncar koncar commented Oct 16, 2021

Description

Create dedicated structs for generated Canary events

Type of change

  • New feature (non-breaking change which adds functionality)

Testing

  • New tests were added with this PR that prove my fix is effective or that my feature works (describe below this bullet)
  • This change requires no testing (i.e. documentation update)

Documentation

  • All added public packages, funcs, and types have been documented with doc comments
  • I have commented my code, particularly in hard-to-understand areas

Final Checklist:

  • I followed standard GitHub flow guidelines
  • I have performed a self-review of my own code
  • My changes generate no new warnings


// Message is message for k8s event
func (c CanaryEvent) Message() string {
return fmt.Sprintf("%s - Canary for app %s | version %d - %s", c.Name, c.AppName, c.DeploymentVersion, c.Description)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd probably make "%s - Canary for app %s | version %d - %s". Not a huge concern. Same with the NextStepEvents and ChangeEvents below.

Copy link
Contributor

@stinkyfingers stinkyfingers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Copy link
Contributor

@DavisFrench DavisFrench left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! There is a small typo, but it isn't anything that should hold back this pr.

Rename and move AppReconcileOutcome and add tests

Improve events

Revert unecessary change

Fix test

Fix tests

Add annotations (#176)

* Add annotations to canary events

* Fix tests, remove unneccessary code

* Create consts for annotation names

* Remove unneccessary comments and prints
@DavisFrench DavisFrench merged commit 3395f4e into main Oct 26, 2021
@DavisFrench DavisFrench deleted the improve-canary-events branch October 26, 2021 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants