创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
虚拟机,Centos7.9,4C/8G
Kubernetes版本信息
最新版k3s:
Client Version: v1.29.3+k3s1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.3+k3s1
容器运行时
Version: 0.1.0
RuntimeName: containerd
RuntimeVersion: v1.7.11-k3s2
RuntimeApiVersion: v1
KubeSphere版本信息
企业版v4.0。在已有K3s上安装。
问题是什么
如题所言,在流水线图形化编辑页面尝试添加一个Checkout时,报错:
no matches for kind “ClusterStepTemplate” in version “devops.kubesphere.io/v1alpha3”
截图如下:
``
在集群中查询“ClusterStepTemplate”
这个CRD:
$ kubectl describe crd clustersteptemplates.devops.kubesphere.io
Name: clustersteptemplates.devops.kubesphere.io
Namespace:
Labels: <none>
Annotations: controller-gen.kubebuilder.io/version: v0.6.2
API Version: apiextensions.k8s.io/v1
Kind: CustomResourceDefinition
Metadata:
Creation Timestamp: 2024-04-15T14:50:24Z
Generation: 1
Resource Version: 57507
UID: 3ae767be-00c5-464d-9c7a-3655714427bf
Spec:
Conversion:
Strategy: None
Group: devops.kubesphere.io
Names:
Kind: ClusterStepTemplate
List Kind: ClusterStepTemplateList
Plural: clustersteptemplates
Singular: clustersteptemplate
Scope: Cluster
Versions:
Name: v1alpha3
Schema:
openAPIV3Schema:
Description: ClusterStepTemplate is the Schema for the steptemplates API
Properties:
API Version:
Description: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
Type: string
Kind:
Description: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Type: string
Metadata:
Type: object
Spec:
Description: StepTemplateSpec defines the desired state of ClusterStepTemplate
Properties:
Agent:
Type: string
Container:
Type: string
Parameters:
Items:
Description: ParameterInStep is the parameter which used in a step
Properties:
Condition:
Description: Condition is an expression about if this variable is necessary for users
Type: string
Default Value:
Type: string
Display:
Type: string
Name:
Type: string
Options:
Type: string
Reactions:
Description: represents that the relationship of parameters
Type: string
Required:
Type: boolean
Type:
Description: ParameterType represents the type of parameter
Type: string
Required:
name
Type: object
Type: array
Runtime:
Type: string
Secret:
Description: SecretInStep is the secret which used in a step
Properties:
Mapping:
Additional Properties:
Type: string
Type: object
Type:
Type: string
Wrap:
Type: boolean
Type: object
Template:
Type: string
Type: object
Status:
Description: StepTemplateStatus defines the observed state of ClusterStepTemplate
Properties:
Phase:
Description: StepTemplatePhase represents the phase of the Step template
Type: string
Required:
phase
Type: object
Type: object
Served: true
Storage: true
Subresources:
Status:
Status:
Accepted Names:
Kind: ClusterStepTemplate
List Kind: ClusterStepTemplateList
Plural: clustersteptemplates
Singular: clustersteptemplate
Conditions:
Last Transition Time: 2024-04-15T14:50:24Z
Message: no conflicts found
Reason: NoConflicts
Status: True
Type: NamesAccepted
Last Transition Time: 2024-04-15T14:50:24Z
Message: the initial names have been accepted
Reason: InitialNamesAccepted
Status: True
Type: Established
Stored Versions:
v1alpha3
Events: <none>