-
Notifications
You must be signed in to change notification settings - Fork 50
/
pipeline_catalog_types.go
55 lines (46 loc) · 1.66 KB
/
pipeline_catalog_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
const (
// PipelineCatalogFileName default name of the kpt strategy file
PipelineCatalogFileName = "pipeline-catalog.yaml"
)
// +genclient
// +genclient:noStatus
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +genclient
// +genclient:noStatus
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PipelineCatalog represents a collection quickstart project
//
// +k8s:openapi-gen=true
type PipelineCatalog struct {
metav1.TypeMeta `json:",inline"`
// +optional
metav1.ObjectMeta `json:"metadata"`
// Spec holds the desired state of the PipelineCatalog from the client
// +optional
Spec PipelineCatalogSpec `json:"spec"`
}
// PipelineCatalogList contains a list of Repositories
//
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type PipelineCatalogList struct {
metav1.TypeMeta `json:",inline"`
// +optional
metav1.ListMeta `json:"metadata,omitempty"`
Items []PipelineCatalog `json:"items"`
}
// PipelineCatalogSpec defines the desired state of PipelineCatalog.
type PipelineCatalogSpec struct {
// Repositories the repositories containing pipeline catalogs
Repositories []PipelineCatalogSource `json:"repositories,omitempty"`
}
// PipelineCatalogSource the source of a pipeline catalog
type PipelineCatalogSource struct {
ID string `json:"id,omitempty" protobuf:"bytes,1,opt,name=id"`
Label string `json:"label,omitempty" protobuf:"bytes,2,opt,name=label"`
GitURL string `json:"gitUrl,omitempty" protobuf:"bytes,3,opt,name=gitUrl"`
GitRef string `json:"gitRef,omitempty" protobuf:"bytes,4,opt,name=gitRef"`
}