├── ch02 └── README.md ├── ch03 ├── example │ ├── go.mod │ ├── go.sum │ └── main.go ├── go.mod ├── go.sum └── main.go ├── ch04 ├── go.mod ├── go.sum └── main.go ├── ch05 ├── go.mod ├── go.sum └── main.go ├── ch06 ├── clientset │ ├── go.mod │ ├── go.sum │ └── main.go ├── discoveryclient │ ├── go.mod │ ├── go.sum │ └── main.go └── restclient │ ├── go.mod │ ├── go.sum │ └── main.go ├── ch07 ├── discovery.go ├── discovery_test.go ├── go.mod ├── go.sum ├── main.go ├── pod.go ├── pod_test.go ├── rest.go └── rest_test.go ├── ch08 ├── crd-with-cols.yaml ├── crd.yaml ├── go.mod ├── go.sum ├── main.go └── myres.yaml ├── ch09 └── github.com │ └── myid │ └── myresource-crd │ ├── dynamic.go │ ├── dynamic_test.go │ ├── go.mod │ ├── go.sum │ ├── hack │ └── boilerplate.go.txt │ ├── main.go │ ├── pkg │ ├── apis │ │ └── mygroup.example.com │ │ │ └── v1alpha1 │ │ │ ├── doc.go │ │ │ ├── register.go │ │ │ ├── types.go │ │ │ └── zz_generated.deepcopy.go │ └── clientset │ │ └── clientset │ │ ├── clientset.go │ │ ├── doc.go │ │ ├── fake │ │ ├── clientset_generated.go │ │ ├── doc.go │ │ └── register.go │ │ ├── scheme │ │ ├── doc.go │ │ └── register.go │ │ └── typed │ │ └── mygroup.example.com │ │ └── v1alpha1 │ │ ├── doc.go │ │ ├── fake │ │ ├── doc.go │ │ ├── fake_mygroup.example.com_client.go │ │ └── fake_myresource.go │ │ ├── generated_expansion.go │ │ ├── mygroup.example.com_client.go │ │ └── myresource.go │ └── unstructured.go ├── ch10 ├── client │ ├── go.mod │ ├── go.sum │ └── main.go ├── events │ ├── go.mod │ ├── go.sum │ └── main.go ├── ex1 │ ├── go.mod │ ├── go.sum │ └── main.go ├── ex2 │ ├── go.mod │ ├── go.sum │ └── main.go ├── injectors │ ├── go.mod │ ├── go.sum │ └── main.go └── logging │ ├── go.mod │ ├── go.sum │ └── main.go ├── ch11 ├── go.mod ├── go.sum ├── main.go └── reconciler.go ├── ch12 ├── crd │ └── crd-with-cols.yaml ├── go.mod ├── go.sum ├── main.go ├── reconcile_test.go ├── reconciler.go └── suite_test.go └── ch13 └── myresource-kb ├── .dockerignore ├── .gitignore ├── Dockerfile ├── Makefile ├── PROJECT ├── README.md ├── api ├── v1alpha1 │ ├── groupversion_info.go │ ├── hub.go │ ├── myresource_types.go │ └── zz_generated.deepcopy.go └── v1beta1 │ ├── groupversion_info.go │ ├── myresource_conversion.go │ ├── myresource_types.go │ ├── myresource_webhook.go │ └── zz_generated.deepcopy.go ├── config ├── certmanager │ ├── certificate.yaml │ ├── kustomization.yaml │ └── kustomizeconfig.yaml ├── crd │ ├── bases │ │ └── mygroup.myid.dev_myresources.yaml │ ├── kustomization.yaml │ ├── kustomizeconfig.yaml │ └── patches │ │ ├── cainjection_in_myresources.yaml │ │ └── webhook_in_myresources.yaml ├── default │ ├── kustomization.yaml │ ├── manager_auth_proxy_patch.yaml │ ├── manager_config_patch.yaml │ ├── manager_webhook_patch.yaml │ └── webhookcainjection_patch.yaml ├── manager │ ├── kustomization.yaml │ └── manager.yaml ├── prometheus │ ├── kustomization.yaml │ └── monitor.yaml ├── rbac │ ├── auth_proxy_client_clusterrole.yaml │ ├── auth_proxy_role.yaml │ ├── auth_proxy_role_binding.yaml │ ├── auth_proxy_service.yaml │ ├── kustomization.yaml │ ├── leader_election_role.yaml │ ├── leader_election_role_binding.yaml │ ├── myresource_editor_role.yaml │ ├── myresource_viewer_role.yaml │ ├── role.yaml │ ├── role_binding.yaml │ └── service_account.yaml ├── samples │ ├── mygroup_v1alpha1_myresource.yaml │ └── mygroup_v1beta1_myresource.yaml └── webhook │ ├── kustomization.yaml │ ├── kustomizeconfig.yaml │ └── service.yaml ├── controllers ├── deployment.go ├── myresource_controller.go ├── reconcile_test.go ├── status.go └── suite_test.go ├── go.mod ├── go.sum ├── hack └── boilerplate.go.txt └── main.go /ch02/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch02/README.md -------------------------------------------------------------------------------- /ch03/example/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch03/example/go.mod -------------------------------------------------------------------------------- /ch03/example/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch03/example/go.sum -------------------------------------------------------------------------------- /ch03/example/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch03/example/main.go -------------------------------------------------------------------------------- /ch03/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch03/go.mod -------------------------------------------------------------------------------- /ch03/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch03/go.sum -------------------------------------------------------------------------------- /ch03/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch03/main.go -------------------------------------------------------------------------------- /ch04/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch04/go.mod -------------------------------------------------------------------------------- /ch04/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch04/go.sum -------------------------------------------------------------------------------- /ch04/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch04/main.go -------------------------------------------------------------------------------- /ch05/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch05/go.mod -------------------------------------------------------------------------------- /ch05/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch05/go.sum -------------------------------------------------------------------------------- /ch05/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch05/main.go -------------------------------------------------------------------------------- /ch06/clientset/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch06/clientset/go.mod -------------------------------------------------------------------------------- /ch06/clientset/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch06/clientset/go.sum -------------------------------------------------------------------------------- /ch06/clientset/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch06/clientset/main.go -------------------------------------------------------------------------------- /ch06/discoveryclient/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch06/discoveryclient/go.mod -------------------------------------------------------------------------------- /ch06/discoveryclient/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch06/discoveryclient/go.sum -------------------------------------------------------------------------------- /ch06/discoveryclient/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch06/discoveryclient/main.go -------------------------------------------------------------------------------- /ch06/restclient/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch06/restclient/go.mod -------------------------------------------------------------------------------- /ch06/restclient/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch06/restclient/go.sum -------------------------------------------------------------------------------- /ch06/restclient/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch06/restclient/main.go -------------------------------------------------------------------------------- /ch07/discovery.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch07/discovery.go -------------------------------------------------------------------------------- /ch07/discovery_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch07/discovery_test.go -------------------------------------------------------------------------------- /ch07/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch07/go.mod -------------------------------------------------------------------------------- /ch07/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch07/go.sum -------------------------------------------------------------------------------- /ch07/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch07/main.go -------------------------------------------------------------------------------- /ch07/pod.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch07/pod.go -------------------------------------------------------------------------------- /ch07/pod_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch07/pod_test.go -------------------------------------------------------------------------------- /ch07/rest.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch07/rest.go -------------------------------------------------------------------------------- /ch07/rest_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch07/rest_test.go -------------------------------------------------------------------------------- /ch08/crd-with-cols.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch08/crd-with-cols.yaml -------------------------------------------------------------------------------- /ch08/crd.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch08/crd.yaml -------------------------------------------------------------------------------- /ch08/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch08/go.mod -------------------------------------------------------------------------------- /ch08/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch08/go.sum -------------------------------------------------------------------------------- /ch08/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch08/main.go -------------------------------------------------------------------------------- /ch08/myres.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch08/myres.yaml -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/dynamic.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/dynamic.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/dynamic_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/dynamic_test.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/go.mod -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/go.sum -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/hack/boilerplate.go.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/main.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/pkg/apis/mygroup.example.com/v1alpha1/doc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/pkg/apis/mygroup.example.com/v1alpha1/doc.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/pkg/apis/mygroup.example.com/v1alpha1/register.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/pkg/apis/mygroup.example.com/v1alpha1/register.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/pkg/apis/mygroup.example.com/v1alpha1/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/pkg/apis/mygroup.example.com/v1alpha1/types.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/pkg/apis/mygroup.example.com/v1alpha1/zz_generated.deepcopy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/pkg/apis/mygroup.example.com/v1alpha1/zz_generated.deepcopy.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/clientset.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/clientset.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/doc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/doc.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/fake/clientset_generated.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/fake/clientset_generated.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/fake/doc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/fake/doc.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/fake/register.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/fake/register.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/scheme/doc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/scheme/doc.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/scheme/register.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/scheme/register.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/typed/mygroup.example.com/v1alpha1/doc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/typed/mygroup.example.com/v1alpha1/doc.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/typed/mygroup.example.com/v1alpha1/fake/doc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/typed/mygroup.example.com/v1alpha1/fake/doc.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/typed/mygroup.example.com/v1alpha1/fake/fake_mygroup.example.com_client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/typed/mygroup.example.com/v1alpha1/fake/fake_mygroup.example.com_client.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/typed/mygroup.example.com/v1alpha1/fake/fake_myresource.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/typed/mygroup.example.com/v1alpha1/fake/fake_myresource.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/typed/mygroup.example.com/v1alpha1/generated_expansion.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/typed/mygroup.example.com/v1alpha1/generated_expansion.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/typed/mygroup.example.com/v1alpha1/mygroup.example.com_client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/typed/mygroup.example.com/v1alpha1/mygroup.example.com_client.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/typed/mygroup.example.com/v1alpha1/myresource.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/pkg/clientset/clientset/typed/mygroup.example.com/v1alpha1/myresource.go -------------------------------------------------------------------------------- /ch09/github.com/myid/myresource-crd/unstructured.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch09/github.com/myid/myresource-crd/unstructured.go -------------------------------------------------------------------------------- /ch10/client/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch10/client/go.mod -------------------------------------------------------------------------------- /ch10/client/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch10/client/go.sum -------------------------------------------------------------------------------- /ch10/client/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch10/client/main.go -------------------------------------------------------------------------------- /ch10/events/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch10/events/go.mod -------------------------------------------------------------------------------- /ch10/events/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch10/events/go.sum -------------------------------------------------------------------------------- /ch10/events/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch10/events/main.go -------------------------------------------------------------------------------- /ch10/ex1/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch10/ex1/go.mod -------------------------------------------------------------------------------- /ch10/ex1/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch10/ex1/go.sum -------------------------------------------------------------------------------- /ch10/ex1/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch10/ex1/main.go -------------------------------------------------------------------------------- /ch10/ex2/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch10/ex2/go.mod -------------------------------------------------------------------------------- /ch10/ex2/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch10/ex2/go.sum -------------------------------------------------------------------------------- /ch10/ex2/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch10/ex2/main.go -------------------------------------------------------------------------------- /ch10/injectors/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch10/injectors/go.mod -------------------------------------------------------------------------------- /ch10/injectors/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch10/injectors/go.sum -------------------------------------------------------------------------------- /ch10/injectors/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch10/injectors/main.go -------------------------------------------------------------------------------- /ch10/logging/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch10/logging/go.mod -------------------------------------------------------------------------------- /ch10/logging/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch10/logging/go.sum -------------------------------------------------------------------------------- /ch10/logging/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch10/logging/main.go -------------------------------------------------------------------------------- /ch11/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch11/go.mod -------------------------------------------------------------------------------- /ch11/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch11/go.sum -------------------------------------------------------------------------------- /ch11/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch11/main.go -------------------------------------------------------------------------------- /ch11/reconciler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch11/reconciler.go -------------------------------------------------------------------------------- /ch12/crd/crd-with-cols.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch12/crd/crd-with-cols.yaml -------------------------------------------------------------------------------- /ch12/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch12/go.mod -------------------------------------------------------------------------------- /ch12/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch12/go.sum -------------------------------------------------------------------------------- /ch12/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch12/main.go -------------------------------------------------------------------------------- /ch12/reconcile_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch12/reconcile_test.go -------------------------------------------------------------------------------- /ch12/reconciler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch12/reconciler.go -------------------------------------------------------------------------------- /ch12/suite_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch12/suite_test.go -------------------------------------------------------------------------------- /ch13/myresource-kb/.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/.dockerignore -------------------------------------------------------------------------------- /ch13/myresource-kb/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/.gitignore -------------------------------------------------------------------------------- /ch13/myresource-kb/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/Dockerfile -------------------------------------------------------------------------------- /ch13/myresource-kb/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/Makefile -------------------------------------------------------------------------------- /ch13/myresource-kb/PROJECT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/PROJECT -------------------------------------------------------------------------------- /ch13/myresource-kb/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/README.md -------------------------------------------------------------------------------- /ch13/myresource-kb/api/v1alpha1/groupversion_info.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/api/v1alpha1/groupversion_info.go -------------------------------------------------------------------------------- /ch13/myresource-kb/api/v1alpha1/hub.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/api/v1alpha1/hub.go -------------------------------------------------------------------------------- /ch13/myresource-kb/api/v1alpha1/myresource_types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/api/v1alpha1/myresource_types.go -------------------------------------------------------------------------------- /ch13/myresource-kb/api/v1alpha1/zz_generated.deepcopy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/api/v1alpha1/zz_generated.deepcopy.go -------------------------------------------------------------------------------- /ch13/myresource-kb/api/v1beta1/groupversion_info.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/api/v1beta1/groupversion_info.go -------------------------------------------------------------------------------- /ch13/myresource-kb/api/v1beta1/myresource_conversion.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/api/v1beta1/myresource_conversion.go -------------------------------------------------------------------------------- /ch13/myresource-kb/api/v1beta1/myresource_types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/api/v1beta1/myresource_types.go -------------------------------------------------------------------------------- /ch13/myresource-kb/api/v1beta1/myresource_webhook.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/api/v1beta1/myresource_webhook.go -------------------------------------------------------------------------------- /ch13/myresource-kb/api/v1beta1/zz_generated.deepcopy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/api/v1beta1/zz_generated.deepcopy.go -------------------------------------------------------------------------------- /ch13/myresource-kb/config/certmanager/certificate.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/certmanager/certificate.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/certmanager/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/certmanager/kustomization.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/certmanager/kustomizeconfig.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/certmanager/kustomizeconfig.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/crd/bases/mygroup.myid.dev_myresources.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/crd/bases/mygroup.myid.dev_myresources.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/crd/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/crd/kustomization.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/crd/kustomizeconfig.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/crd/kustomizeconfig.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/crd/patches/cainjection_in_myresources.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/crd/patches/cainjection_in_myresources.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/crd/patches/webhook_in_myresources.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/crd/patches/webhook_in_myresources.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/default/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/default/kustomization.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/default/manager_auth_proxy_patch.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/default/manager_auth_proxy_patch.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/default/manager_config_patch.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/default/manager_config_patch.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/default/manager_webhook_patch.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/default/manager_webhook_patch.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/default/webhookcainjection_patch.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/default/webhookcainjection_patch.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/manager/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/manager/kustomization.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/manager/manager.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/manager/manager.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/prometheus/kustomization.yaml: -------------------------------------------------------------------------------- 1 | resources: 2 | - monitor.yaml 3 | -------------------------------------------------------------------------------- /ch13/myresource-kb/config/prometheus/monitor.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/prometheus/monitor.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/rbac/auth_proxy_client_clusterrole.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/rbac/auth_proxy_client_clusterrole.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/rbac/auth_proxy_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/rbac/auth_proxy_role.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/rbac/auth_proxy_role_binding.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/rbac/auth_proxy_role_binding.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/rbac/auth_proxy_service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/rbac/auth_proxy_service.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/rbac/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/rbac/kustomization.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/rbac/leader_election_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/rbac/leader_election_role.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/rbac/leader_election_role_binding.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/rbac/leader_election_role_binding.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/rbac/myresource_editor_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/rbac/myresource_editor_role.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/rbac/myresource_viewer_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/rbac/myresource_viewer_role.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/rbac/role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/rbac/role.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/rbac/role_binding.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/rbac/role_binding.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/rbac/service_account.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/rbac/service_account.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/samples/mygroup_v1alpha1_myresource.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/samples/mygroup_v1alpha1_myresource.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/samples/mygroup_v1beta1_myresource.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/samples/mygroup_v1beta1_myresource.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/webhook/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/webhook/kustomization.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/webhook/kustomizeconfig.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/webhook/kustomizeconfig.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/config/webhook/service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/config/webhook/service.yaml -------------------------------------------------------------------------------- /ch13/myresource-kb/controllers/deployment.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/controllers/deployment.go -------------------------------------------------------------------------------- /ch13/myresource-kb/controllers/myresource_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/controllers/myresource_controller.go -------------------------------------------------------------------------------- /ch13/myresource-kb/controllers/reconcile_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/controllers/reconcile_test.go -------------------------------------------------------------------------------- /ch13/myresource-kb/controllers/status.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/controllers/status.go -------------------------------------------------------------------------------- /ch13/myresource-kb/controllers/suite_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/controllers/suite_test.go -------------------------------------------------------------------------------- /ch13/myresource-kb/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/go.mod -------------------------------------------------------------------------------- /ch13/myresource-kb/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/go.sum -------------------------------------------------------------------------------- /ch13/myresource-kb/hack/boilerplate.go.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/hack/boilerplate.go.txt -------------------------------------------------------------------------------- /ch13/myresource-kb/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Kubernetes-Programming-with-Go-by-Philippe-Martin/HEAD/ch13/myresource-kb/main.go --------------------------------------------------------------------------------