Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: add git url support to kic-image-build #16

Merged
merged 3 commits into from
Jul 12, 2021
Merged

Conversation

dekobon
Copy link
Collaborator

@dekobon dekobon commented Jul 8, 2021

Proposed changes

This change adds support to the kic:src_url configuration parameter for git URLs. Additionally, it changes the behavior of the default operation when src_url is left unspecified to check out the KIC source directly from github using the latest tag instead of downloading a tar.gz archive from github.

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have written my commit messages in the Conventional Commits format.
  • I have read the CONTRIBUTING doc
  • I have added tests (when possible) that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto master
  • I will ensure my PR is targeting the master branch and pulling from my branch from my own fork

dekobon added 2 commits July 2, 2021 17:02
This change allows users to specify git URLs in the kic:src_url
configuration parameters. Additionally, it changes the behavior
of the default operation when src_url is left unspecified to
check out the KIC source directly from github using the latest
tag instead of downloading a tar.gz archive from github.
@dekobon dekobon requested a review from qdzlug July 8, 2021 21:43
Copy link
Contributor

@qdzlug qdzlug left a comment

Choose a reason for hiding this comment

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

Just had the one question/thought below. Otherwise looks good (and I've also run through it with my wip changes).

class IngressControllerSourceArchiveUrl:
LAST_KNOWN_KIC_VERSION = '1.11.3'
DOWNLOAD_URL = f'https://github.com/nginxinc/kubernetes-ingress/archive/refs/tags/|%|VERSION|%|.tar.gz'
LAST_KNOWN_KIC_VERSION = '1.12.0'
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we move this into the configuration file for the overall project so it can be updated as the version for the KIC increments? Or perhaps follow the latest version here? (I'm not sure if that can be done easily.)

Previous to this change, when the latest KIC version could not be
pulled from github, we would default to the latest known version.
This functionality has been removed and we now just error.
@dekobon dekobon merged commit 4503d50 into master Jul 12, 2021
@dekobon dekobon deleted the git_url_support branch July 12, 2021 22:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants