forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sample CustomResourceDefinition controller
sample-controller: add API types sample-controller: regenerate files sample-controller: add implementation sample-controller: update bazel sample-controller: update make-rules and cache_go_dirs sample-controller: Set noStatus tag. Remove openapi-gen tag. sample-controller: add deletion tombstone handling logic sample-controller: update README, remove use of reflect in UpdateFuncs sample-controller: add OWNERS file sample-controller: add LICENSE
- Loading branch information
Showing
62 changed files
with
4,024 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") | ||
|
||
go_library( | ||
name = "go_default_library", | ||
srcs = [ | ||
"controller.go", | ||
"main.go", | ||
], | ||
importpath = "k8s.io/sample-controller", | ||
visibility = ["//visibility:private"], | ||
deps = [ | ||
"//vendor/github.com/golang/glog:go_default_library", | ||
"//vendor/k8s.io/api/apps/v1beta2:go_default_library", | ||
"//vendor/k8s.io/api/core/v1:go_default_library", | ||
"//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library", | ||
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", | ||
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", | ||
"//vendor/k8s.io/apimachinery/pkg/util/runtime:go_default_library", | ||
"//vendor/k8s.io/apimachinery/pkg/util/wait:go_default_library", | ||
"//vendor/k8s.io/client-go/informers:go_default_library", | ||
"//vendor/k8s.io/client-go/kubernetes:go_default_library", | ||
"//vendor/k8s.io/client-go/kubernetes/scheme:go_default_library", | ||
"//vendor/k8s.io/client-go/kubernetes/typed/core/v1:go_default_library", | ||
"//vendor/k8s.io/client-go/listers/apps/v1beta2:go_default_library", | ||
"//vendor/k8s.io/client-go/tools/cache:go_default_library", | ||
"//vendor/k8s.io/client-go/tools/clientcmd:go_default_library", | ||
"//vendor/k8s.io/client-go/tools/record:go_default_library", | ||
"//vendor/k8s.io/client-go/util/workqueue:go_default_library", | ||
"//vendor/k8s.io/sample-controller/pkg/apis/samplecontroller/v1alpha1:go_default_library", | ||
"//vendor/k8s.io/sample-controller/pkg/client/clientset/versioned:go_default_library", | ||
"//vendor/k8s.io/sample-controller/pkg/client/clientset/versioned/scheme:go_default_library", | ||
"//vendor/k8s.io/sample-controller/pkg/client/informers/externalversions:go_default_library", | ||
"//vendor/k8s.io/sample-controller/pkg/client/listers/samplecontroller/v1alpha1:go_default_library", | ||
"//vendor/k8s.io/sample-controller/pkg/signals:go_default_library", | ||
], | ||
) | ||
|
||
go_binary( | ||
name = "sample-controller", | ||
importpath = "k8s.io/sample-controller", | ||
library = ":go_default_library", | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
filegroup( | ||
name = "package-srcs", | ||
srcs = glob(["**"]), | ||
tags = ["automanaged"], | ||
visibility = ["//visibility:private"], | ||
) | ||
|
||
filegroup( | ||
name = "all-srcs", | ||
srcs = [ | ||
":package-srcs", | ||
"//staging/src/k8s.io/sample-controller/pkg/apis/samplecontroller:all-srcs", | ||
"//staging/src/k8s.io/sample-controller/pkg/client/clientset/versioned:all-srcs", | ||
"//staging/src/k8s.io/sample-controller/pkg/client/informers/externalversions:all-srcs", | ||
"//staging/src/k8s.io/sample-controller/pkg/client/listers/samplecontroller/v1alpha1:all-srcs", | ||
"//staging/src/k8s.io/sample-controller/pkg/signals:all-srcs", | ||
], | ||
tags = ["automanaged"], | ||
visibility = ["//visibility:public"], | ||
) |
Oops, something went wrong.