Skip to content

Commit

Permalink
test client-go generation
Browse files Browse the repository at this point in the history
  • Loading branch information
zach-dunton-sf committed Dec 12, 2019
1 parent 14bc06f commit a47710b
Show file tree
Hide file tree
Showing 29 changed files with 1,972 additions and 1 deletion.
11 changes: 11 additions & 0 deletions pkg/apis/keda/v1alpha1/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,14 @@ var (
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

var (
//SchemeBuilder runtime.SchemeBuilder
localSchemeBuilder = SchemeBuilder
AddToScheme = localSchemeBuilder.AddToScheme
)

// Resource takes an unqualified resource and returns a Group qualified GroupResource
func Resource(resource string) schema.GroupResource {
return SchemeGroupVersion.WithResource(resource).GroupResource()
}
3 changes: 2 additions & 1 deletion pkg/apis/keda/v1alpha1/scaledobject_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const (
ScaleTypeJob ScaledObjectScaleType = "job"
)

// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// ScaledObject is a specification for a ScaledObject resource
Expand Down Expand Up @@ -79,7 +80,7 @@ type ScaleTriggers struct {
// +optional
type ScaledObjectStatus struct {
// +optional
LastActiveTime *metav1.Time `json:"lastActiveTime,omitempty"`
LastActiveTime *metav1.Time `json:"lastActiveTime,omitempty"`
// +optional
// +listType
ExternalMetricNames []string `json:"externalMetricNames,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/keda/v1alpha1/triggerauthentication_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ type TriggerAuthenticationSpec struct {
Env []AuthEnvironment `json:"env"`
}

// +genclient
// +genclient:noStatus
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// TriggerAuthentication defines how a trigger can authenticate
Expand Down
90 changes: 90 additions & 0 deletions pkg/client/clientset/versioned/clientset.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions pkg/client/clientset/versioned/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

77 changes: 77 additions & 0 deletions pkg/client/clientset/versioned/fake/clientset_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions pkg/client/clientset/versioned/fake/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 56 additions & 0 deletions pkg/client/clientset/versioned/fake/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions pkg/client/clientset/versioned/scheme/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 56 additions & 0 deletions pkg/client/clientset/versioned/scheme/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a47710b

Please sign in to comment.