Skip to content

Support k8s version >= 1 26 #1240

Support k8s version >= 1 26

Support k8s version >= 1 26 #1240

Triggered via pull request July 24, 2023 03:18
Status Failure
Total duration 4m 31s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

go.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 13 warnings
crane-agent: pkg/ensurance/cm/cpumanager/cpu_manager.go#L274
cannot use &runtimeapi.LinuxContainerResources{…} (value of type *v1alpha2.LinuxContainerResources) as *"k8s.io/cri-api/pkg/apis/runtime/v1".LinuxContainerResources value in argument to cm.containerRuntime.UpdateContainerResources
crane-agent
Process completed with exit code 2.
lint: pkg/ensurance/cm/cpumanager/cpu_assignment.go#L1
: # github.com/gocrane/crane/pkg/ensurance/cm/cpumanager
lint: pkg/ensurance/cm/cpumanager/cpu_manager.go#L274
cannot use &runtimeapi.LinuxContainerResources{…} (value of type *v1alpha2.LinuxContainerResources) as *"k8s.io/cri-api/pkg/apis/runtime/v1".LinuxContainerResources value in argument to cm.containerRuntime.UpdateContainerResources (typecheck)
lint: pkg/agent/agent.go#L39
could not import github.com/gocrane/crane/pkg/ensurance/cm/cpumanager (-: # github.com/gocrane/crane/pkg/ensurance/cm/cpumanager
lint: pkg/ensurance/cm/cpumanager/cpu_manager.go#L274
cannot use &runtimeapi.LinuxContainerResources{…} (value of type *v1alpha2.LinuxContainerResources) as *"k8s.io/cri-api/pkg/apis/runtime/v1".LinuxContainerResources value in argument to cm.containerRuntime.UpdateContainerResources) (typecheck)
lint
issues found
cover: pkg/ensurance/cm/cpumanager/cpu_manager.go#L274
cannot use &runtimeapi.LinuxContainerResources{…} (value of type *v1alpha2.LinuxContainerResources) as *"k8s.io/cri-api/pkg/apis/runtime/v1".LinuxContainerResources value in argument to cm.containerRuntime.UpdateContainerResources
cover
Process completed with exit code 1.
crane-agent
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-go@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
crane-agent
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
crane-agent
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
craned
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-go@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
craned
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
craned
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
metric-adapter
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-go@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
metric-adapter
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
metric-adapter
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
cover
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-go@v2, actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
cover
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
cover
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/