Skip to content

Commit 1a19aac

Browse files
author
github-actions
committed
chore: regenerated
1 parent 0cf98e4 commit 1a19aac

File tree

501 files changed

+70884
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

501 files changed

+70884
-1
lines changed

go.mod

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,38 @@
1-
module github.com/jenkins-x/lighthouse-client-client
1+
module github.com/jenkins-x/lighthouse
2+
3+
require (
4+
github.com/Azure/go-autorest v14.2.0+incompatible
5+
github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46 // indirect
6+
github.com/bwmarrin/snowflake v0.0.0
7+
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
8+
github.com/evanphx/json-patch v4.9.0+incompatible // indirect
9+
github.com/go-stack/stack v1.8.0
10+
github.com/google/go-cmp v0.5.4
11+
github.com/gorilla/sessions v1.2.0
12+
github.com/h2non/gock v1.0.9
13+
github.com/hashicorp/go-multierror v1.1.0 // indirect
14+
github.com/hashicorp/golang-lru v0.5.4 // indirect
15+
github.com/jenkins-x/go-scm v1.5.223
16+
github.com/mattn/go-zglob v0.0.1 // indirect
17+
github.com/onsi/ginkgo v1.14.1 // indirect
18+
github.com/onsi/gomega v1.10.2 // indirect
19+
github.com/pkg/errors v0.9.1
20+
github.com/prometheus/client_golang v1.8.0
21+
github.com/satori/go.uuid v1.2.1-0.20180103174451-36e9d2ebbde5
22+
github.com/shurcooL/githubv4 v0.0.0-20191102174205-af46314aec7b // indirect
23+
github.com/sirupsen/logrus v1.6.0
24+
github.com/stretchr/testify v1.6.1
25+
github.com/tektoncd/pipeline v0.20.0
26+
golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5
27+
gopkg.in/robfig/cron.v2 v2.0.0-20150107220207-be2e0b0deed5
28+
k8s.io/api v0.20.2
29+
k8s.io/apimachinery v0.20.2
30+
k8s.io/client-go v0.20.2
31+
k8s.io/utils v0.0.0-20201110183641-67b214c5f920
32+
knative.dev/pkg v0.0.0-20210107022335-51c72e24c179
33+
sigs.k8s.io/controller-runtime v0.8.0
34+
sigs.k8s.io/yaml v1.2.0
35+
)
236

337
replace (
438
github.com/tektoncd/pipeline => github.com/jenkins-x/pipeline v0.3.2-0.20210118090417-1e821d85abf6

go.sum

Lines changed: 1342 additions & 0 deletions
Large diffs are not rendered by default.

pkg/apis/lighthouse/register.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package lighthouse
2+
3+
const (
4+
// GroupName defines the API group identifier for Lighthouse types.
5+
GroupName = "lighthouse.jenkins.io"
6+
7+
// Version is the Lighthouse API group version
8+
Version = "v1"
9+
10+
// GroupAndVersion is the Lighthouse API Group and version
11+
GroupAndVersion = GroupName + "/" + Version
12+
)

pkg/apis/lighthouse/v1alpha1/doc.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Package v1alpha1 contains LighthouseJob
2+
// +k8s:openapi-gen=true
3+
// +k8s:deepcopy-gen=package,register
4+
// +k8s:conversion-gen=github.com/jenkins-x/lighthouse-client/pkg/apis/lighthouse
5+
// +k8s:defaulter-gen=TypeMeta
6+
// +groupName=lighthouse.jenkins.io
7+
package v1alpha1
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
package v1alpha1
2+
3+
import (
4+
"github.com/jenkins-x/lighthouse-client/pkg/apis/lighthouse"
5+
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
6+
"k8s.io/apimachinery/pkg/runtime"
7+
"k8s.io/apimachinery/pkg/runtime/schema"
8+
)
9+
10+
// SchemeGroupVersion is group version used to register these objects
11+
var SchemeGroupVersion = schema.GroupVersion{Group: lighthouse.GroupName, Version: "v1alpha1"}
12+
13+
// Kind takes an unqualified kind and returns back a Group qualified GroupKind
14+
func Kind(kind string) schema.GroupKind {
15+
return SchemeGroupVersion.WithKind(kind).GroupKind()
16+
}
17+
18+
// Resource takes an unqualified resource and returns a Group qualified GroupResource
19+
func Resource(resource string) schema.GroupResource {
20+
return SchemeGroupVersion.WithResource(resource).GroupResource()
21+
}
22+
23+
var (
24+
// SchemeBuilder collects functions that add things to a scheme.
25+
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
26+
// AddToScheme applies all the stored functions to the scheme.
27+
AddToScheme = SchemeBuilder.AddToScheme
28+
)
29+
30+
// Adds the list of known types to the Scheme.
31+
func addKnownTypes(scheme *runtime.Scheme) error {
32+
scheme.AddKnownTypes(SchemeGroupVersion,
33+
&LighthouseJob{},
34+
&LighthouseJobList{},
35+
)
36+
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
37+
return nil
38+
}

0 commit comments

Comments
 (0)