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

feat(offline): Improve generate_list.sh using ansible (#8537) #8538

Merged

Conversation

tmurakam
Copy link
Contributor

@tmurakam tmurakam commented Feb 13, 2022

Improve generate_list.sh to generate offline file list using ansible (#8537)

Use jinja2 template and ansible to expand variables.

What type of PR is this?

/kind feature

What this PR does / why we need it:

Current contrib/offline/generate_list.sh parses some yaml files and expands variables without using ansible.
This is a bit of tough task, and hard to maintain.

It should make use of jinja2 template and ansible to expand variables.

Which issue(s) this PR fixes:

Fixes #8537

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

Improve offline script `generate_list.sh` using ansible

… using ansible (kubernetes-sigs#8537)

Use jinja2 template and ansible to expand variables.
@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 13, 2022
@k8s-ci-robot
Copy link
Contributor

Hi @tmurakam. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 13, 2022
@oomichi
Copy link
Contributor

oomichi commented Feb 14, 2022

Nice work!
This change seems what we want when facing issue the script was fragile.

/cc @cristicalin
/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 14, 2022
Copy link
Contributor

@cristicalin cristicalin left a comment

Choose a reason for hiding this comment

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

Excellent, thanks for doing this @tmurakam !

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 14, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cristicalin, tmurakam

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 14, 2022
@k8s-ci-robot k8s-ci-robot merged commit b02e682 into kubernetes-sigs:master Feb 14, 2022
@tmurakam tmurakam deleted the feature/8537-generate-list branch February 14, 2022 07:27
Quehenr pushed a commit to Quehenr/unstable-laboratory-infrastructure-kubespray that referenced this pull request Feb 18, 2022
* master:
  Configure Etcd container_manager explicitly (kubernetes-sigs#8521)
  Fix print_hostnames of inventory.py (kubernetes-sigs#8554)
  Fix etcd_events not getting upgraded in upgrade-cluster.yml (kubernetes-sigs#8550)
  nerdctl: upgrade to 0.16.1 (kubernetes-sigs#8539)
  Allow pausing after upgrade but before uncordon (kubernetes-sigs#8530)
  [calico] upgrade release checksums (kubernetes-sigs#8544)
  Allow to specify a source address for metallb peerings, and target only some nodes using node selectors (kubernetes-sigs#8534)
  add support for Dual Stack node InternalIP (kubernetes-sigs#8542)
  terraform/gcp: Allow to change extra disk types (kubernetes-sigs#8524)
  add support for Calico IP6_AUTODETECTION_METHOD (kubernetes-sigs#8541)
  implement download mirrors support (kubernetes-sigs#8474)
  Fix: Error when creating subnets more than AZ (kubernetes-sigs#8516)
  feat(offline): Improve generate_list.sh to generate offline file list using ansible (kubernetes-sigs#8537) (kubernetes-sigs#8538)
  docs: Update offline-environment.md for containerd (kubernetes-sigs#8520) (kubernetes-sigs#8523)
  Change Cilium setting identity_allocation_mode to cilium_identity_allocation_mode (kubernetes-sigs#8519)
  Fix wrong port name in metallb.yml.j2 (kubernetes-sigs#8510)
tmurakam added a commit to tmurakam/kubespray that referenced this pull request Mar 5, 2022
… using ansible (kubernetes-sigs#8537) (kubernetes-sigs#8538)

Use jinja2 template and ansible to expand variables.
tmurakam added a commit to tmurakam/kubespray that referenced this pull request Mar 5, 2022
… using ansible (kubernetes-sigs#8537) (kubernetes-sigs#8538)

Use jinja2 template and ansible to expand variables.
k8s-ci-robot pushed a commit that referenced this pull request Mar 7, 2022
… using ansible (#8537) (#8538) (#8606)

Use jinja2 template and ansible to expand variables.
sakuraiyuta pushed a commit to sakuraiyuta/kubespray that referenced this pull request Apr 16, 2022
… using ansible (kubernetes-sigs#8537) (kubernetes-sigs#8538)

Use jinja2 template and ansible to expand variables.
@oomichi oomichi mentioned this pull request May 28, 2022
LuckySB pushed a commit to southbridgeio/kubespray that referenced this pull request Jun 29, 2023
… using ansible (kubernetes-sigs#8537) (kubernetes-sigs#8538)

Use jinja2 template and ansible to expand variables.
LuckySB pushed a commit to southbridgeio/kubespray that referenced this pull request Oct 21, 2023
… using ansible (kubernetes-sigs#8537) (kubernetes-sigs#8538)

Use jinja2 template and ansible to expand variables.
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve generate_list.sh to correctly generate offline file/image lists using ansible.
4 participants