Skip to content

Commit

Permalink
gh-187 Initial support for kube-loxilb args as CRD
Browse files Browse the repository at this point in the history
  • Loading branch information
TrekkieCoder committed Oct 12, 2024
1 parent 80ba01f commit 245bcf6
Show file tree
Hide file tree
Showing 18 changed files with 54 additions and 54 deletions.
File renamed without changes.
31 changes: 31 additions & 0 deletions pkg/crds/loxiurl/v1/register.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package v1

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
)

const GroupName = "loxiurl.loxilb.io"

var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}

var (
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
AddToScheme = SchemeBuilder.AddToScheme
)

func Resource(resource string) schema.GroupResource {
return SchemeGroupVersion.WithResource(resource).GroupResource()
}

func addKnownTypes(scheme *runtime.Scheme) error {
scheme.AddKnownTypes(
SchemeGroupVersion,
&LoxiURL{},
&LoxiURLList{},
)

metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
return nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type LoxiURL struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

Spec LoxiURLSpec `json:"spec"`
Spec LoxiURLSpec `json:"spec"`
Status LoxiURLSpecStatus `json:"status,omitempty"`
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/klb-client/clientset/versioned/clientset.go

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

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

2 changes: 1 addition & 1 deletion pkg/klb-client/clientset/versioned/fake/register.go

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

2 changes: 1 addition & 1 deletion pkg/klb-client/clientset/versioned/scheme/register.go

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

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

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

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

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

6 changes: 3 additions & 3 deletions pkg/klb-client/informers/externalversions/factory.go

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

2 changes: 1 addition & 1 deletion pkg/klb-client/informers/externalversions/generic.go

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

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

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

2 changes: 1 addition & 1 deletion pkg/klb-client/listers/loxiurl/v1/loxiurl.go

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

31 changes: 0 additions & 31 deletions pkg/klb-crds/loxiurl/v1/register.go

This file was deleted.

0 comments on commit 245bcf6

Please sign in to comment.