Documentation
¶
Index ¶
- Constants
- Variables
- func KubeClient(scheme *runtime.Scheme, cfg *rest.Config) (k8sClient client.Client, err error)
- func RuntimeKubeClient(scheme *runtime.Scheme, token *oidc.Token, useToken bool, ...) (cli client.Client, err error)
- type Client
- type ImpersonateClient
- type KubeRuntimeClients
- type Properties
- type RuntimeClient
- type TokenizeClient
Constants ¶
View Source
const (
Profile = "kubeclient"
)
View Source
const (
Subject = "subject"
)
Variables ¶
View Source
var (
ErrNilKubeClient = errors.New("kube client is nil, please check if API Server is available")
)
Functions ¶
func KubeClient ¶
KubeClient new kube client
Types ¶
type ImpersonateClient ¶ added in v1.1.1
type ImpersonateClient struct { at.ContextAware client.Client Context context.Context `json:"context"` }
ImpersonateClient is the client impersonate kube client
type KubeRuntimeClients ¶ added in v1.1.7
type KubeRuntimeClients struct {
// contains filtered or unexported fields
}
type Properties ¶ added in v1.1.2
type Properties struct { at.ConfigurationProperties `value:"kubeclient"` at.AutoWired // use DefaultInCluster as default DefaultInCluster *bool `json:"defaultInCluster"` //OIDC Scope Impersonate OIDCScope string `json:"oidcScope"` QPS float32 `json:"qps"` // Maximum burst for throttle. // If it's zero, the created RESTClient will use DefaultBurst: 10. Burst int `json:"burst"` // The maximum length of time to wait before giving up on a server request. A value of zero means no timeout. Timeout time.Duration `json:"timeout"` }
Properties the operator properties
type RuntimeClient ¶ added in v1.1.2
type RuntimeClient struct { at.ContextAware client.Client Context context.Context `json:"context"` }
RuntimeClient is the client the runtime kube client
type TokenizeClient ¶ added in v1.1.1
type TokenizeClient struct { at.ContextAware client.Client Context context.Context `json:"context"` }
TokenizeClient is the client tokenize kube client
Click to show internal directories.
Click to hide internal directories.