mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-10-18 23:40:31 +02:00
Fix e2e tests
This commit is contained in:
@@ -135,7 +135,9 @@ type Container struct {
|
||||
|
||||
// Plugin defines Jenkins plugin
|
||||
type Plugin struct {
|
||||
Name string `json:"name"`
|
||||
// Name is the name of Jenkins plugin
|
||||
Name string `json:"name"`
|
||||
// Version is the version of Jenkins plugin
|
||||
Version string `json:"version"`
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
package v1alpha2
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
"sigs.k8s.io/controller-runtime/pkg/runtime/scheme"
|
||||
)
|
||||
@@ -36,6 +37,13 @@ func (in *Jenkins) GroupVersionKind() schema.GroupVersionKind {
|
||||
}
|
||||
}
|
||||
|
||||
func JenkinsTypeMeta() metav1.TypeMeta {
|
||||
return metav1.TypeMeta{
|
||||
Kind: Kind,
|
||||
APIVersion: SchemeGroupVersion.String(),
|
||||
}
|
||||
}
|
||||
|
||||
func init() {
|
||||
SchemeBuilder.Register(&Jenkins{}, &JenkinsList{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user