mirror of
https://github.com/kubernetes/client-go.git
synced 2026-07-12 01:39:41 +00:00
This sample adds sample code for create/list/replace/delete operations for Deployment resource for client-go library. This patch also contains documentation explaining what the example application does and how it can be executed. This patch is part of the body of work improving the client library samples. Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com> Kubernetes-commit: d75710f9f4d2e74979f6da07de31b02fae0392b0
30 lines
837 B
Python
30 lines
837 B
Python
package(default_visibility = ["//visibility:public"])
|
|
|
|
licenses(["notice"])
|
|
|
|
load(
|
|
"@io_bazel_rules_go//go:def.bzl",
|
|
"go_binary",
|
|
"go_library",
|
|
)
|
|
|
|
go_binary(
|
|
name = "create-update-delete-deployment",
|
|
library = ":go_default_library",
|
|
tags = ["automanaged"],
|
|
)
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = ["main.go"],
|
|
tags = ["automanaged"],
|
|
deps = [
|
|
"//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
|
"//vendor/k8s.io/client-go/kubernetes:go_default_library",
|
|
"//vendor/k8s.io/client-go/pkg/api/v1:go_default_library",
|
|
"//vendor/k8s.io/client-go/pkg/apis/apps/v1beta1:go_default_library",
|
|
"//vendor/k8s.io/client-go/tools/clientcmd:go_default_library",
|
|
],
|
|
)
|