Skip to content

[WIP] [DNM] kubeconfig decouple - maximum destruction#3841

Draft
gauron99 wants to merge 6 commits into
knative:mainfrom
gauron99:push-qnslkroyspnr
Draft

[WIP] [DNM] kubeconfig decouple - maximum destruction#3841
gauron99 wants to merge 6 commits into
knative:mainfrom
gauron99:push-qnslkroyspnr

Conversation

@gauron99

Copy link
Copy Markdown
Contributor

No description provided.

@knative-prow

knative-prow Bot commented May 24, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@knative-prow knative-prow Bot added the do-not-merge/work-in-progress 🤖 PR should not merge because it is a work in progress. label May 24, 2026
@knative-prow knative-prow Bot requested review from dsimansk and jrangelramos May 24, 2026 15:37
@knative-prow

knative-prow Bot commented May 24, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gauron99

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 🤖 PR has been approved by an approver from all required OWNERS files. size/XXL 🤖 PR changes 1000+ lines, ignoring generated files. labels May 24, 2026
@gauron99 gauron99 force-pushed the push-qnslkroyspnr branch from 2aee563 to 94a4752 Compare May 24, 2026 15:40
@gauron99 gauron99 changed the title kubeconfig decouple - maximum destruction [WIP] [DNM] kubeconfig decouple - maximum destruction May 24, 2026
@gauron99 gauron99 force-pushed the push-qnslkroyspnr branch from 94a4752 to 672471b Compare May 24, 2026 15:47
@gauron99 gauron99 force-pushed the push-qnslkroyspnr branch from 672471b to f74082e Compare May 24, 2026 15:49
@codecov

codecov Bot commented May 24, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 69.20103% with 239 lines in your changes missing coverage. Please review.
✅ Project coverage is 53.22%. Comparing base (e687d36) to head (5823031).

Files with missing lines Patch % Lines
pkg/k8s/persistent_volumes.go 26.66% 33 Missing ⚠️
cmd/logs.go 8.57% 32 Missing ⚠️
cmd/environment.go 0.00% 23 Missing ⚠️
pkg/k8s/client.go 86.52% 16 Missing and 3 partials ⚠️
pkg/deployer/testing/integration_test_helper.go 0.00% 18 Missing ⚠️
cmd/client.go 73.17% 8 Missing and 3 partials ⚠️
pkg/k8s/openshift.go 50.00% 9 Missing and 1 partial ⚠️
cmd/config_volumes.go 0.00% 9 Missing ⚠️
cmd/config_envs.go 0.00% 8 Missing ⚠️
pkg/pipelines/tekton/pac/pac.go 0.00% 7 Missing ⚠️
... and 21 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3841      +/-   ##
==========================================
- Coverage   53.90%   53.22%   -0.68%     
==========================================
  Files         200      200              
  Lines       23652    23937     +285     
==========================================
- Hits        12749    12740       -9     
- Misses       9669     9969     +300     
+ Partials     1234     1228       -6     
Flag Coverage Δ
e2e 21.75% <29.93%> (-11.72%) ⬇️
e2e go 29.43% <38.62%> (+0.02%) ⬆️
e2e node 25.80% <38.47%> (+0.07%) ⬆️
e2e python 29.75% <38.62%> (+0.02%) ⬆️
e2e quarkus 25.92% <38.47%> (+0.07%) ⬆️
e2e rust 25.39% <38.47%> (+0.08%) ⬆️
e2e springboot 24.09% <38.02%> (+0.09%) ⬆️
e2e typescript 25.91% <38.47%> (+0.07%) ⬆️
e2e-config-ci 26.99% <30.68%> (+0.03%) ⬆️
integration 15.49% <24.52%> (-0.17%) ⬇️
unit macos-14 43.23% <47.46%> (+0.38%) ⬆️
unit macos-latest 43.23% <47.46%> (+0.38%) ⬆️
unit ubuntu-24.04-arm 43.55% <48.71%> (+0.38%) ⬆️
unit ubuntu-latest 44.07% <47.46%> (+0.37%) ⬆️
unit windows-latest 43.29% <47.46%> (+0.38%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

@gauron99 gauron99 force-pushed the push-qnslkroyspnr branch from f74082e to 46ff7e2 Compare May 24, 2026 16:38
@knative-prow-robot knative-prow-robot added the needs-rebase Cannot be merged due to conflicts with HEAD. label May 29, 2026
@lkingland lkingland added the status/new Accepted to Traige label Jun 2, 2026
@gauron99 gauron99 force-pushed the push-qnslkroyspnr branch from 46ff7e2 to 07b6cf0 Compare June 3, 2026 16:39
@knative-prow-robot knative-prow-robot removed the needs-rebase Cannot be merged due to conflicts with HEAD. label Jun 3, 2026
@gauron99 gauron99 force-pushed the push-qnslkroyspnr branch 9 times, most recently from 208df13 to 176bb58 Compare June 9, 2026 20:32
gauron99 added 4 commits June 10, 2026 00:04
cmd/deploy_test.go (+ testdata global config.yaml):
- TestDeploy_ClusterAuthPriorityFlow: ordered full ladder (config default -> stored
  local.yaml beats kubeconfig -> FUNC_CLUSTER(_TOKEN) env -> --cluster/--cluster-token
  flag), asserting func.yaml pin + .func/local.yaml token at each step, and that no
  token ever lands in func.yaml.
- TestDeploy_SaveAuthGate: --save-auth / FUNC_SAVE_AUTH=false pins the cluster but
  caches no credentials; default caches.
- TestDeploy_KubeconfigFallback_PinsAndStores: the 'old way' (active kubeconfig) still
  works and now pins + caches.
- TestDeploy_ClusterTokenUpdatesStoredTokenPreservesCA: --cluster-token updates the
  stored token, preserves the stored cluster CA.
Uses loopback cluster URLs so the IsOpenshift probe is refused instantly (avoids the
multi-second DNS timeout an unreachable hostname incurs).
pkg/k8s/client_test.go:
- URLResolution_TrailingSlashNormalized: target with a trailing slash still matches.
- URLResolution_MultipleMatches_ErrorListsContexts: the ambiguity error names the
  conflicting contexts + 'disambiguate'.
- ResolveKubeconfigAuth_NoteOn{Active,NonActive}Match: the 'Using kubeconfig context
  <name>' note is printed on a single match (os.Stderr captured).
pkg/functions/function_unit_test.go:
- LocalAuth_LocalYAMLMode0600 + TightensPreexisting0644: credential file is 0600,
  incl. re-tightening a pre-existing 0644 file.
- LocalAuth_NotInFuncYAML: credentials never serialize into func.yaml; the cluster URL
  does.
@gauron99 gauron99 force-pushed the push-qnslkroyspnr branch from 176bb58 to 5823031 Compare June 9, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved 🤖 PR has been approved by an approver from all required OWNERS files. do-not-merge/work-in-progress 🤖 PR should not merge because it is a work in progress. size/XXL 🤖 PR changes 1000+ lines, ignoring generated files. status/new Accepted to Traige

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants