redhat-developer / kam

GitOps Application Manager: An opinionated CLI that generates the Kubernetes resources for managing your Tekton-based CI manifests, ArgoCD-based CD manifests and Application manifests in Git.
Apache License 2.0
145 stars 83 forks source link

Generate checksums for kam binaries #308

Closed chetan-rns closed 2 years ago

chetan-rns commented 2 years ago

What type of PR is this?

/kind enhancement

What does this PR do / why we need it:

Generate SHA 256 checksums for KAM binaries. Users could verify if the downloaded binary has the same SHA as the release artifact.

Have you updated the necessary documentation?

Which issue(s) this PR fixes:

Fixes #307

How to test changes / Special notes to the reviewer:

  1. Build and run the kam image and verify if the checksum is generated

    docker build -f Dockerfile.serve -t quay.io/cbanavik/kam .
    docker run -p 8080:8080 quay.io/cbanavik/kam
  2. Download the kam binary and generate the checksum for the downloaded binary

    sha256sum kam_linux_amd64
  3. Verify if the downloaded binary has the same SHA

wtam2018 commented 2 years ago

/lgtm /approve

openshift-ci[bot] commented 2 years ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wtam2018

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/redhat-developer/kam/blob/master/OWNERS)~~ [wtam2018] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment