Skip to content

CM-641: [release-1.18] Update submodules with latest release-1.18 branch and configure for v1.18.0 release#496

Merged
openshift-merge-bot[bot] merged 6 commits into
openshift:release-1.18from
chiragkyal:update-1.18
Sep 2, 2025
Merged

CM-641: [release-1.18] Update submodules with latest release-1.18 branch and configure for v1.18.0 release#496
openshift-merge-bot[bot] merged 6 commits into
openshift:release-1.18from
chiragkyal:update-1.18

Conversation

@chiragkyal

@chiragkyal chiragkyal commented Aug 29, 2025

Copy link
Copy Markdown
Member
  • Update git submodules commands to use configured branch/tag in .gitmodules
  • Update submodules with release-1.18 branches and v0.14.2 tag for istio-cr
    • update .gitmodules
    • run make update-submodules
  • Modify tekton pipelines for 1.18 release
  • Update Containerfile.cert-manager-operator.bundle for 1.18

/cc @bharath-b-rh

@openshift-ci openshift-ci Bot requested a review from bharath-b-rh August 29, 2025 10:49
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Aug 29, 2025
@openshift-ci-robot

openshift-ci-robot commented Aug 29, 2025

Copy link
Copy Markdown

@chiragkyal: This pull request references CM-641 which is a valid jira issue.

Details

In response to this:

  • Update submodules with release-1.18 branches and v0.14.2 tag for istio-cr
    • update .gitmodules
    • run make update-submodules
  • Modify tekton pipelines for 1.18 release
    • Update tekton/cert-manager-operator* to v1.18.0
    • Update tekton/cert-manager-istio-csr* to v1.18
    • Update tekton/jetstack-cert-manager* to v1.18.2
  • Update Containerfile.cert-manager-operator.bundle for 1.18

/cc @bharath-b-rh

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 openshift-eng/jira-lifecycle-plugin repository.

Comment thread cert-manager-istio-csr
@openshift-ci-robot

openshift-ci-robot commented Aug 29, 2025

Copy link
Copy Markdown

@chiragkyal: This pull request references CM-641 which is a valid jira issue.

Details

In response to this:

  • Update submodules with release-1.18 branches and v0.14.2 tag for istio-cr
    • update .gitmodules
    • run make update-submodules
  • Modify tekton pipelines for 1.18 release
  • Update Containerfile.cert-manager-operator.bundle for 1.18

/cc @bharath-b-rh

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 openshift-eng/jira-lifecycle-plugin repository.

@chiragkyal

Copy link
Copy Markdown
Member Author

/retest

@openshift-ci-robot

openshift-ci-robot commented Sep 2, 2025

Copy link
Copy Markdown

@chiragkyal: This pull request references CM-641 which is a valid jira issue.

Details

In response to this:

  • Update git submodules commands to use configured branch/tag in .gitmodules
  • Update submodules with release-1.18 branches and v0.14.2 tag for istio-cr
    • update .gitmodules
    • run make update-submodules
  • Modify tekton pipelines for 1.18 release
  • Update Containerfile.cert-manager-operator.bundle for 1.18

/cc @bharath-b-rh

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 openshift-eng/jira-lifecycle-plugin repository.

@bharath-b-rh bharath-b-rh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm, except for couple of suggestions.

Comment thread Makefile Outdated
Comment on lines +75 to +77
cd $(cert_manager_submodule_dir); git checkout $(cert_manager_submodule_branch); cd - > /dev/null
cd $(cert_manager_operator_submodule_dir); git checkout $(cert_manager_operator_submodule_branch); cd - > /dev/null
cd $(istio_csr_submodule_dir); git checkout $(istio_csr_submodule_tag); cd - > /dev/null

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The switch-submodules-branch is for updating the submodules with local reference, and update-submodules is for updating with the remote.

Suggested change
cd $(cert_manager_submodule_dir); git checkout $(cert_manager_submodule_branch); cd - > /dev/null
cd $(cert_manager_operator_submodule_dir); git checkout $(cert_manager_operator_submodule_branch); cd - > /dev/null
cd $(istio_csr_submodule_dir); git checkout $(istio_csr_submodule_tag); cd - > /dev/null
# update with local cache.
git submodule update --recursive

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think the checkout commands are essential for switch-submodules-branch as well, because this target needs to work independently. Without the checkout commands, this target would only run git submodule update on whatever branches are currently checked out, and it doesn't fulfill its purpose of switching to the configured branches/tags from .gitmodules.

Both targets ultimately need to switch to the same branches/tags specified in .gitmodules.

git submodule foreach --recursive 'git fetch -t' command is only present in update-submodules, so switch-submodules-branch cannot fetch from remote, and it still use the local git data.

I believe the current implementation should work correctly. Could you suggest when it might work differently?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

switch-submodules-branch is in context with the repository branch and submodule commit it's having, which is captured in README too.
Try switching the repository branch, and check the state of submodules.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

In each release branch the git submodules are configured with equivalent release branch in their respective origin repositories.

Now that we are having a mix of branch and tag, I believe the README needs modification as well. Because running make switch-submodules-branch would be misleading if it only tracks branch, instead of branch+tag as in update-submodules. WDYT?

@bharath-b-rh bharath-b-rh Sep 2, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

IMO, not required, the branch we are referring to in target name is the repository branch not of submodule's
If it helps, I have no objection updating it to something like with equivalent release branch/tag in their respective origin repositories.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Okay, in that case I will revert the changes done for switch-submodules-branch commands, and will modify only update-submodules

Comment thread Makefile Outdated
Comment thread Makefile Outdated
Comment thread .gitmodules
path = cert-manager-operator
url = https://github.com/openshift/cert-manager-operator.git
branch = cert-manager-1.17
branch = cert-manager-1.18

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
branch = cert-manager-1.18
tag = v1.18.2

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think you meant to use v1.18.2 tag for https://github.com/openshift/jetstack-cert-manager, right?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yeah, commented on wrong line.

…odules

`git submodule update --remote` command used for updating the submodules
with the remote was by default referring `.git/config` instead of `.gitmodules`
where specific branch/tag is configured.
And `.git/config` doesn't have branch/tag details it updating the modules
with the default branch(main) in remote.

Signed-off-by: chiragkyal <ckyal@redhat.com>
- update .gitmodules
- run make update-submodules

Signed-off-by: chiragkyal <ckyal@redhat.com>
Signed-off-by: chiragkyal <ckyal@redhat.com>
Signed-off-by: chiragkyal <ckyal@redhat.com>
Signed-off-by: chiragkyal <ckyal@redhat.com>
Signed-off-by: chiragkyal <ckyal@redhat.com>
@bharath-b-rh

Copy link
Copy Markdown
Contributor

/lgtm
/approve

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Sep 2, 2025
@openshift-ci

openshift-ci Bot commented Sep 2, 2025

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bharath-b-rh, chiragkyal

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

The pull request process is described here

Details 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

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 2, 2025
@openshift-merge-bot openshift-merge-bot Bot merged commit 8e0ed3d into openshift:release-1.18 Sep 2, 2025
13 checks passed
@chiragkyal chiragkyal deleted the update-1.18 branch September 2, 2025 19:02
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. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants