1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 09:26:54 +00:00
kyverno/vendor/k8s.io/client-go/examples
2019-06-03 15:14:06 -07:00
..
create-update-delete-deployment check in vendor and code generated by code-gen 2019-05-22 20:33:19 -07:00
fake-client check in vendor and code generated by code-gen 2019-05-22 20:33:19 -07:00
in-cluster-client-configuration update vendor due to build failure 2019-06-03 15:14:06 -07:00
out-of-cluster-client-configuration check in vendor and code generated by code-gen 2019-05-22 20:33:19 -07:00
workqueue check in vendor and code generated by code-gen 2019-05-22 20:33:19 -07:00
README.md check in vendor and code generated by code-gen 2019-05-22 20:33:19 -07:00

client-go Examples

This directory contains examples that cover various use cases and functionality for client-go.

Auth plugins

Client configuration is typically loaded from kubeconfig files containing server and credential configuration. Several plugins for obtaining credentials from external sources are available, but are not loaded by default. To enable these plugins in your program, import them in your main package.

You can load all auth plugins:

import _ "k8s.io/client-go/plugin/pkg/client/auth

Or you can load specific auth plugins:

import _ "k8s.io/client-go/plugin/pkg/client/auth/azure"
import _ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
import _ "k8s.io/client-go/plugin/pkg/client/auth/oidc"
import _ "k8s.io/client-go/plugin/pkg/client/auth/openstack"

Configuration

Basics

Advanced Concepts

Testing