GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remember `--registry-insecure` setting on recurring runs by creydr · Pull Request #3490 · knative/func

Conversation

@creydr

@creydr creydr commented Mar 12, 2026

Copy link
Copy Markdown
Member

Fixes #3489

Changes

  • 🐛 Remember --registry-insecure setting on recurring runs

Hint: This also reverts da21fa2, because when we have the RegistryInsecure in the function, this can be simplified.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@creydr
Revert "Pass --registry-insecure flag to Tekton pipeline tlsVerify pa…
6552187
…rameter (knative#3484)"

This reverts commit da21fa2.
@knative-prow
knative-prow Bot requested review from dsimansk and jrangelramos March 12, 2026 11:55
@knative-prow knative-prow Bot added the size/L 🤖 PR changes 100-499 lines, ignoring generated files. label Mar 12, 2026
@creydr
Remember --registry-insecure setting on recurring runs
37ae142
@creydr
creydr force-pushed the respect-insecure-registry-on-consecutive-runs branch from d77bad2 to 37ae142 Compare March 12, 2026 14:46
@creydr
Run make schema-generate
7def61f
@creydr

creydr commented Mar 12, 2026

Copy link
Copy Markdown
Member Author

/cc @gauron99 @lkingland

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow
knative-prow Bot requested review from gauron99 and lkingland March 12, 2026 15:56
@codecov

codecov Bot commented Mar 12, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.82609% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 54.89%. Comparing base (44f60fa) to head (5a87051).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
pkg/pipelines/tekton/templates.go 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3490      +/-   ##
==========================================
+ Coverage   54.76%   54.89%   +0.12%     
==========================================
  Files         181      181              
  Lines       20443    20472      +29     
==========================================
+ Hits        11196    11238      +42     
+ Misses       8068     8053      -15     
- Partials     1179     1181       +2     
Flag Coverage Δ
e2e 38.64% <63.33%> (+<0.01%) ⬆️
e2e go 32.52% <60.00%> (+<0.01%) ⬆️
e2e node 28.34% <60.00%> (+<0.01%) ⬆️
e2e python 31.92% <60.00%> (+<0.01%) ⬆️
e2e quarkus 28.46% <60.00%> (-0.02%) ⬇️
e2e rust 27.89% <60.00%> (-0.01%) ⬇️
e2e springboot 26.36% <60.00%> (+<0.01%) ⬆️
e2e typescript 28.45% <60.00%> (+<0.01%) ⬆️
integration 17.38% <16.66%> (+<0.01%) ⬆️
unit macos-14 42.76% <90.00%> (+0.10%) ⬆️
unit macos-latest 42.76% <90.00%> (+0.10%) ⬆️
unit ubuntu-24.04-arm 43.05% <93.47%> (+0.14%) ⬆️
unit ubuntu-latest 43.64% <90.00%> (+0.10%) ⬆️
unit windows-latest 42.78% <90.00%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot added size/XL 🤖 PR changes 500-999 lines, ignoring generated files. and removed size/L 🤖 PR changes 100-499 lines, ignoring generated files. labels Mar 13, 2026
@creydr
Simplify parsing
10bfeeb
@creydr
creydr force-pushed the respect-insecure-registry-on-consecutive-runs branch from d0734ae to 10bfeeb Compare March 13, 2026 08:27
creydr added 2 commits March 13, 2026 09:29
@creydr
Extend description of flag, that values are persited
a016a3b
@creydr
Add warning, when registry changed but insecure-registry is still set…
f67d995
… to true
twoGiants
twoGiants approved these changes Mar 13, 2026
View reviewed changes

@twoGiants twoGiants left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

This is really useful and it all looks good! 😸 👍

I have only a few nits.

[edit]: Did you run ./hack/update-codegen.sh?

/approve
/lgtm
/hold for other reviewers

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread cmd/build_registry_insecure_test.go Outdated
)

// Test 1: Initial state - registryInsecure should be false
t.Run("initial_state_is_false", func(t *testing.T) {

@twoGiants twoGiants Mar 13, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

nit

No need for underscore in t.Run name argument. Go will add those underscores by itself when the tests are executed.

Same for all the others below.

Suggested change
t.Run("initial_state_is_false", func(t *testing.T) {
t.Run("initial state is false", func(t *testing.T) {

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

creydr reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@creydr creydr Mar 13, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

updated

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkg/functions/function.go Outdated
// [registry]/[user].
Registry string `yaml:"registry,omitempty"`

// RegistryInsecure defines it the TLS verification of the registry

@twoGiants twoGiants Mar 13, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

nit

Suggested change
// RegistryInsecure defines it the TLS verification of the registry
// RegistryInsecure defines if the TLS verification of the registry

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@creydr creydr Mar 13, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

good catch. updated

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread schema/func_yaml-schema.json Outdated
},
"registryInsecure": {
"type": "boolean",
"description": "RegistryInsecure defines it the TLS verification of the registry\nshould be skipped."

@twoGiants twoGiants Mar 13, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

nit

Suggested change
"description": "RegistryInsecure defines it the TLS verification of the registry\nshould be skipped."
"description": "RegistryInsecure defines if the TLS verification of the registry\nshould be skipped."

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@creydr creydr Mar 13, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

updated

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@knative-prow knative-prow Bot added the do-not-merge/hold 🤖 PR should not merge because someone has issued a /hold command. label Mar 13, 2026
@knative-prow knative-prow Bot assigned twoGiants Mar 13, 2026
@knative-prow knative-prow Bot added the lgtm 🤖 PR is ready to be merged. label Mar 13, 2026
twoGiants
twoGiants reviewed Mar 13, 2026
View reviewed changes
Comment thread pkg/config/config.go Outdated
// WarnRegistryInsecureChange checks if the registry has changed but
// registryInsecure is still set to true, and prints a warning if so.
// This helps users avoid accidentally skipping TLS verification on a new registry.
func (c Global) WarnRegistryInsecureChange(w io.Writer, f fn.Function) {

@twoGiants twoGiants Mar 13, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Unit tests missing.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@creydr creydr Mar 13, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Added one

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
twoGiants
twoGiants reviewed Mar 13, 2026
View reviewed changes
Comment thread pkg/functions/client.go

// WithRegistryInsecure sets if the TLS verification of the registry should
// be skipped.
func WithRegistryInsecure(insecure bool) Option {

@twoGiants twoGiants Mar 13, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Should we add a comment here, that a WithRegistryInsecure(false) does not override function's existing true? Because one could think that this setting would set registryInsecure definitely to false.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@creydr creydr Mar 13, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I accepted the suggestion from @gauron99 in #3490 (comment)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
gauron99
gauron99 reviewed Mar 13, 2026
View reviewed changes
Comment thread pkg/functions/client.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkg/functions/client.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkg/config/config.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkg/config/config.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

creydr added 4 commits March 13, 2026 11:43
@creydr
Fix typo
cfa6a24
@creydr
Rerun update-codegen
ea492f9
@creydr
Cleanup test names
2cfb280
@creydr
Add unit test for WarnRegistryInsecureChange
5986c9d
@knative-prow knative-prow Bot removed the lgtm 🤖 PR is ready to be merged. label Mar 13, 2026
@creydr
Run schema-generate
f42ecfd
creydr and others added 6 commits March 13, 2026 11:51
@creydr @gauron99
Update pkg/functions/client.go
57d8c41
Co-authored-by: David Fridrich <[email protected]>
@creydr @gauron99
Update pkg/functions/client.go
ad88a8b
Co-authored-by: David Fridrich <[email protected]>
@creydr @gauron99
Update pkg/config/config.go
d75206e
Co-authored-by: David Fridrich <[email protected]>
@creydr @gauron99
Update pkg/config/config.go
00d336c
Co-authored-by: David Fridrich <[email protected]>
@creydr
Fix format issues (goimport and gofmt)
96e1157
@creydr
Refactor registry-insecure unit test to make it available for the Dep…
6ef0d42
…loy tests too
@creydr
creydr requested review from gauron99 and twoGiants March 13, 2026 11:35
@creydr
Refactor GlobalConfig.WarnRegistryInsecureChange() method to function…
5a87051
… in cmd package
@gauron99

gauron99 commented Mar 13, 2026

Copy link
Copy Markdown
Contributor

/lgtm
/approve

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot assigned gauron99 Mar 13, 2026
@knative-prow knative-prow Bot added lgtm 🤖 PR is ready to be merged. approved 🤖 PR has been approved by an approver from all required OWNERS files. labels Mar 13, 2026
gauron99
gauron99 approved these changes Mar 13, 2026
View reviewed changes
@knative-prow

knative-prow Bot commented Mar 13, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: creydr, gauron99, twoGiants

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:
  • OWNERS [gauron99]

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@creydr

creydr commented Mar 13, 2026

Copy link
Copy Markdown
Member Author

/unhold

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot removed the do-not-merge/hold 🤖 PR should not merge because someone has issued a /hold command. label Mar 13, 2026
@knative-prow
knative-prow Bot merged commit 45cb049 into knative:main Mar 13, 2026
40 checks passed

Uh oh!

There was an error while loading. Please reload this page.

creydr added a commit to creydr/knative-func that referenced this pull request Apr 2, 2026
@creydr @gauron99
Remember --registry-insecure setting on recurring runs (knative#3490)
105fe56
* Revert "Pass --registry-insecure flag to Tekton pipeline tlsVerify parameter (knative#3484)"

This reverts commit da21fa2.

* Remember `--registry-insecure` setting on recurring runs

* Run `make schema-generate`

* Simplify parsing

* Extend description of flag, that values are persited

* Add warning, when registry changed but insecure-registry is still set to true

* Fix typo

* Rerun update-codegen

* Cleanup test names

* Add unit test for WarnRegistryInsecureChange

* Run schema-generate

* Update pkg/functions/client.go

Co-authored-by: David Fridrich <[email protected]>

* Update pkg/functions/client.go

Co-authored-by: David Fridrich <[email protected]>

* Update pkg/config/config.go

Co-authored-by: David Fridrich <[email protected]>

* Update pkg/config/config.go

Co-authored-by: David Fridrich <[email protected]>

* Fix format issues (goimport and gofmt)

* Refactor registry-insecure unit test to make it available for the Deploy tests too

* Refactor GlobalConfig.WarnRegistryInsecureChange() method to function in cmd package

---------

Co-authored-by: David Fridrich <[email protected]>
@creydr creydr mentioned this pull request Apr 2, 2026
[release-1.21] Remember --registry-insecure setting on recurring runs #3574
Merged
knative-prow Bot pushed a commit that referenced this pull request Apr 7, 2026
@creydr @gauron99
[release-1.21] Remember --registry-insecure setting on recurring ru…
efeae04
…ns (#3574)

* Pass --registry-insecure flag to Tekton pipeline tlsVerify parameter (#3484)

When --registry-insecure is used, set tlsVerify=false in the Tekton
pipeline to allow buildah to push to registries with self-signed certs.

* Remember `--registry-insecure` setting on recurring runs (#3490)

* Revert "Pass --registry-insecure flag to Tekton pipeline tlsVerify parameter (#3484)"

This reverts commit da21fa2.

* Remember `--registry-insecure` setting on recurring runs

* Run `make schema-generate`

* Simplify parsing

* Extend description of flag, that values are persited

* Add warning, when registry changed but insecure-registry is still set to true

* Fix typo

* Rerun update-codegen

* Cleanup test names

* Add unit test for WarnRegistryInsecureChange

* Run schema-generate

* Update pkg/functions/client.go

Co-authored-by: David Fridrich <[email protected]>

* Update pkg/functions/client.go

Co-authored-by: David Fridrich <[email protected]>

* Update pkg/config/config.go

Co-authored-by: David Fridrich <[email protected]>

* Update pkg/config/config.go

Co-authored-by: David Fridrich <[email protected]>

* Fix format issues (goimport and gofmt)

* Refactor registry-insecure unit test to make it available for the Deploy tests too

* Refactor GlobalConfig.WarnRegistryInsecureChange() method to function in cmd package

---------

Co-authored-by: David Fridrich <[email protected]>

* Ran `./hack/update-codegen.sh`

---------

Co-authored-by: David Fridrich <[email protected]>
creydr added a commit to creydr/knative-func that referenced this pull request Apr 7, 2026
@creydr @gauron99
[release-1.21] Remember --registry-insecure setting on recurring ru…
fe7bbcc
…ns (knative#3574)

* Pass --registry-insecure flag to Tekton pipeline tlsVerify parameter (knative#3484)

When --registry-insecure is used, set tlsVerify=false in the Tekton
pipeline to allow buildah to push to registries with self-signed certs.

* Remember `--registry-insecure` setting on recurring runs (knative#3490)

* Revert "Pass --registry-insecure flag to Tekton pipeline tlsVerify parameter (knative#3484)"

This reverts commit da21fa2.

* Remember `--registry-insecure` setting on recurring runs

* Run `make schema-generate`

* Simplify parsing

* Extend description of flag, that values are persited

* Add warning, when registry changed but insecure-registry is still set to true

* Fix typo

* Rerun update-codegen

* Cleanup test names

* Add unit test for WarnRegistryInsecureChange

* Run schema-generate

* Update pkg/functions/client.go

Co-authored-by: David Fridrich <[email protected]>

* Update pkg/functions/client.go

Co-authored-by: David Fridrich <[email protected]>

* Update pkg/config/config.go

Co-authored-by: David Fridrich <[email protected]>

* Update pkg/config/config.go

Co-authored-by: David Fridrich <[email protected]>

* Fix format issues (goimport and gofmt)

* Refactor registry-insecure unit test to make it available for the Deploy tests too

* Refactor GlobalConfig.WarnRegistryInsecureChange() method to function in cmd package

---------

Co-authored-by: David Fridrich <[email protected]>

* Ran `./hack/update-codegen.sh`

---------

Co-authored-by: David Fridrich <[email protected]>
knative-prow Bot pushed a commit that referenced this pull request Apr 14, 2026
@creydr @gauron99
[release-1.20] Remember --registry-insecure setting on recurring ru…
d4f2a40
…ns + backport fixes (#3588)

* [release-1.21] Remember `--registry-insecure` setting on recurring runs (#3574)

* Pass --registry-insecure flag to Tekton pipeline tlsVerify parameter (#3484)

When --registry-insecure is used, set tlsVerify=false in the Tekton
pipeline to allow buildah to push to registries with self-signed certs.

* Remember `--registry-insecure` setting on recurring runs (#3490)

* Revert "Pass --registry-insecure flag to Tekton pipeline tlsVerify parameter (#3484)"

This reverts commit da21fa2.

* Remember `--registry-insecure` setting on recurring runs

* Run `make schema-generate`

* Simplify parsing

* Extend description of flag, that values are persited

* Add warning, when registry changed but insecure-registry is still set to true

* Fix typo

* Rerun update-codegen

* Cleanup test names

* Add unit test for WarnRegistryInsecureChange

* Run schema-generate

* Update pkg/functions/client.go

Co-authored-by: David Fridrich <[email protected]>

* Update pkg/functions/client.go

Co-authored-by: David Fridrich <[email protected]>

* Update pkg/config/config.go

Co-authored-by: David Fridrich <[email protected]>

* Update pkg/config/config.go

Co-authored-by: David Fridrich <[email protected]>

* Fix format issues (goimport and gofmt)

* Refactor registry-insecure unit test to make it available for the Deploy tests too

* Refactor GlobalConfig.WarnRegistryInsecureChange() method to function in cmd package

---------

Co-authored-by: David Fridrich <[email protected]>

* Ran `./hack/update-codegen.sh`

---------

Co-authored-by: David Fridrich <[email protected]>

* Run update-codegen.sh

* Fix linter issues

* Pin cloudevents to 1.x

* Use component-versions from 1.20

* smarter component updates (#3290)

* Replace tekton hub with direct bundle references

* Fix TestGitlab by restoring valid Go application code

The test was creating a broken Procfile instead of a working main.go,
causing the pipeline build to fail and the test to timeout.

* Revert "Fix TestGitlab by restoring valid Go application code"

This reverts commit 3f39a10.

* Replace tekton hub with direct bundle references (2)

---------

Co-authored-by: David Fridrich <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@gauron99 gauron99 gauron99 approved these changes
@dsimansk dsimansk Awaiting requested review from dsimansk
@jrangelramos jrangelramos Awaiting requested review from jrangelramos
@lkingland lkingland Awaiting requested review from lkingland
@twoGiants twoGiants Awaiting requested review from twoGiants

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@twoGiants twoGiants

@gauron99 gauron99

Labels

approved 🤖 PR has been approved by an approver from all required OWNERS files. lgtm 🤖 PR is ready to be merged. size/XL 🤖 PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

--registry-insecure not remembered on recurring runs of func deploy

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@creydr @gauron99 @twoGiants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.