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

Clean up the git-init base Dockerfile and Task. #4765

Merged
merged 1 commit into from
Jun 3, 2022

Conversation

mattmoor
Copy link
Member

@mattmoor mattmoor commented Apr 15, 2022

My previous change switched us off of the Dockerfile-based git-init base image in favor of ghcr.io/distroless/git (:tada:), however, I wanted to stagger cleaning this up so we could keep rebuilding it in case we needed to rollback.

This cleans up the Dockerfile and Task, which should complete the migration.

Fixes: #4752

/kind cleanup

/hold

Going to leave a hold on this so we have some bake time on the distroless images. I'm sure we need at least one more change to stop running this task before we can simply delete it. cc @afrittoli @vdemeester

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Docs included if any changes are user facing
  • Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including
    functionality, content, code)
  • Release notes block below has been filled in
    (if there are no user facing changes, use release note "NONE")

Release Notes

The nightly git-init base image is no longer build, it is deprecated in favor of ghcr.io/distroless/git.

My previous change switched us off of the Dockerfile-based `git-init` base image in favor of `ghcr.io/distroless/git` (:tada:), however, I wanted to stagger cleaning this up so we could keep rebuilding it in case we needed to rollback.

This cleans up the Dockerfile and Task, which should complete the migration.

Fixes: tektoncd#4752
@tekton-robot tekton-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. labels Apr 15, 2022
@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 15, 2022
Copy link
Member

@imjasonh imjasonh left a comment

Choose a reason for hiding this comment

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

/lgtm

Woohoo! 🎉

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 15, 2022
@imjasonh
Copy link
Member

/test pull-tekton-pipeline-alpha-integration-tests
/test pull-tekton-pipeline-go-coverage

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

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:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 20, 2022
@mattmoor
Copy link
Member Author

mattmoor commented Jun 3, 2022

/hold cancel

@tekton-robot tekton-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 3, 2022
@tekton-robot tekton-robot merged commit 0407db7 into tektoncd:main Jun 3, 2022
@mattmoor mattmoor deleted the cleanup-git-init-dockerfile branch June 3, 2022 03:27
vdemeester added a commit to vdemeester/tektoncd-pipeline that referenced this pull request Jun 3, 2022
The task is not used and defined anymore as we removed the git-init
base image Dockerfile now, we don't need it. It got removed in tektoncd#4765
but not from the `Pipeline`.

This also removes it from the `kustomization.yml` file. This should
help fix the plumbing issue we have with re-deploying nightly
payload (`Task`, `Pipeline`, …), as the `kustomization.yml` as is was invalid.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
tekton-robot pushed a commit that referenced this pull request Jun 3, 2022
The task is not used and defined anymore as we removed the git-init
base image Dockerfile now, we don't need it. It got removed in #4765
but not from the `Pipeline`.

This also removes it from the `kustomization.yml` file. This should
help fix the plumbing issue we have with re-deploying nightly
payload (`Task`, `Pipeline`, …), as the `kustomization.yml` as is was invalid.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider switching to ghcr.io/distroless images
4 participants