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

Write deployments to nais/api using gRPC #269

Merged
merged 2 commits into from
Jan 31, 2025
Merged

Conversation

christeredvartsen
Copy link
Member

@christeredvartsen christeredvartsen commented Jan 30, 2025

Initiative: https://github.com/nais/system/blob/deploy_history/tooling/deploy-historikk/README.md

Relevant changes:

  • Use apiclient package from nais/api instead of generating and wrapping the client
  • Enrich deployment request to include deployer username and trigger URL
  • All errors that occurs when writing deployments to nais/api will trigger log entries, and will not abort any other process

Other changes:

  • Bump version of staticcheck to make it run (the version used was broken)
  • Fixed warning on using Errorf without constant format strings in touched files

We will remove code that is no longer necessary (for instance the deployments REST API) once this hits production.

Relevant changes:

- Use apiclient package from nais/api instead of generating and wrapping
  the client
- Enrich deployment request to include deployer username and trigger URL
- All errors that occurs when writing deployments to nais/api will
  trigger log entries, and will not abort any other process

Other changes:

- Bump version of staticcheck to make it run (the version used was
  broken)
- Fixed warning on using Errorf without constant format strings in
  touched files

Co-authored-by: Thomas Krampl <thomas.siegfried.krampl@nav.no>
@christeredvartsen
Copy link
Member Author

If this looks good, we would like to merge this after relevant changes in nais/api.

Copy link
Contributor

@kimtore kimtore left a comment

Choose a reason for hiding this comment

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

LGTM

I'm not so happy about triggerURL being part of the deployment API as it is nothing more than attached metadata and doesn't really affect the deployment itself.

@thokra-nav thokra-nav merged commit 3dc4790 into master Jan 31, 2025
11 checks passed
@thokra-nav thokra-nav deleted the nais-api-deployments branch January 31, 2025 15:09
christeredvartsen added a commit that referenced this pull request Feb 3, 2025
Now that hookd stores deployments in Nais API using gRPC the
/deployments endpoint is no longer being used.

#269

Co-authored-by: Thomas Krampl <thomas.siegfried.krampl@nav.no>
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.

3 participants