Skip to content

export MinimumVersion() accessor#3350

Merged
knative-prow[bot] merged 1 commit intoknative:mainfrom
psschwei:expose-version
May 4, 2026
Merged

export MinimumVersion() accessor#3350
knative-prow[bot] merged 1 commit intoknative:mainfrom
psschwei:expose-version

Conversation

@psschwei
Copy link
Copy Markdown
Member

@psschwei psschwei commented May 2, 2026

Changes

Expose the minimum Kubernetes version Knative is built and tested against via a new exported function, so tools that need the target version before a cluster exists can read it directly instead of hardcoding and hand-bumping it each release.

xref knative-extensions/kn-plugin-quickstart#644

Signed-off-by: Paul S. Schweigert <paul@paulschweigert.com>
@knative-prow knative-prow Bot requested review from Cali0707 and skonto May 2, 2026 12:37
@knative-prow knative-prow Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label May 2, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.88%. Comparing base (1614dac) to head (e0e0c48).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3350   +/-   ##
=======================================
  Coverage   74.87%   74.88%           
=======================================
  Files         189      189           
  Lines        8347     8349    +2     
=======================================
+ Hits         6250     6252    +2     
  Misses       1853     1853           
  Partials      244      244           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@Cali0707 Cali0707 left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

Copy link
Copy Markdown
Member

@Cali0707 Cali0707 left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow knative-prow Bot added the lgtm Indicates that a PR is ready to be merged. label May 4, 2026
@knative-prow
Copy link
Copy Markdown

knative-prow Bot commented May 4, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Cali0707, psschwei

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

1 similar comment
@knative-prow
Copy link
Copy Markdown

knative-prow Bot commented May 4, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Cali0707, psschwei

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

@knative-prow knative-prow Bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. labels May 4, 2026
@knative-prow knative-prow Bot merged commit 7a25a8d into knative:main May 4, 2026
38 checks passed
@psschwei psschwei deleted the expose-version branch May 4, 2026 15:43
Comment thread version/version.go

// MinimumVersion returns the minimum Kubernetes version Knative is built
// and tested against. The returned value has a leading "v" (e.g. "v1.34.0").
func MinimumVersion() string {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is a bit confusing since we also have getMinimumVersion below.

Maybe we should just expose defaultMinimumVersion as DefaultKubernetesMinVersion const

and expose getMinimumVersion as KubernetesMinimumVersion()

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. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants