Skip to content

chore: add testcases for k8s packages #288

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

liangyuanpeng
Copy link
Contributor

releated:

1. Please confirm that you have read the document before PR submitted

2. Contact Information(Optional)

If it is convenient, please provide your contact information so we can reach you when processing the PR:

  • Email:
  • HomePage:

@liangyuanpeng liangyuanpeng force-pushed the ut_k8s_pkg branch 4 times, most recently from 7776b2d to 2045484 Compare April 25, 2025 13:22
Signed-off-by: Lan <gcslyp@gmail.com>
@liangyuanpeng
Copy link
Contributor Author

liangyuanpeng commented Apr 25, 2025

	error[E2G22]: TypeError
	  --> /home/runner/work/modules/modules/k8s/1.32/api/networking/v1/ingress_backend.k:22:16
	   |
	22 |     resource?: v1.TypedLocalObjectReference
	   |                ^ attribute 'TypedLocalObjectReference' not found in 'module 'k8s.apimachinery.pkg.apis.meta.v1''
	   |
	
	 [recovered]
	panic: 
	error[E2L23]: CompileError
	 --> /home/runner/work/modules/modules/k8s/1.32/api/networking/v1/ingress_backend.k:6:1
	  |
	6 | import api.core.v1
	  | ^ the name 'v1' is defined multiple times, 'v1' must be defined only once
	  |
	
	
	error[E2G22]: TypeError
	  --> /home/runner/work/modules/modules/k8s/1.32/api/networking/v1/ingress_backend.k:22:16
	   |
	22 |     resource?: v1.TypedLocalObjectReference
	   |                ^ attribute 'TypedLocalObjectReference' not found in 'module 'k8s.apimachinery.pkg.apis.meta.v1''

it's happenning on kcl-go v1.11.1,and i think change import api.core.v1 to import api.core.v1 corev1 can fix it. I will update it on tomorrow or next week.

Signed-off-by: Lan <gcslyp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant