Documentation ¶
Index ¶
- Variables
- func AllowedControllersServiceAccountUID(ctx context.Context, cfg Config, kubeClient kubernetes.Interface) ([]string, error)
- func GetAppTokenSecret(annotations map[string]string) string
- func HTTPStreamRequestBodyEnabled(annotations map[string]string) bool
- type Config
- type Injector
- type PatchOperation
Constants ¶
This section is empty.
Variables ¶
var AllowedServiceAccountInfos = []string{
"replicaset-controller:kube-system",
"deployment-controller:kube-system",
"cronjob-controller:kube-system",
"job-controller:kube-system",
"statefulset-controller:kube-system",
"daemon-set-controller:kube-system",
"tekton-pipelines-controller:tekton-pipelines",
}
Functions ¶
func AllowedControllersServiceAccountUID ¶ added in v1.1.0
func AllowedControllersServiceAccountUID(ctx context.Context, cfg Config, kubeClient kubernetes.Interface) ([]string, error)
AllowedControllersServiceAccountUID returns an array of UID, list of allowed service account on the webhook handler.
func GetAppTokenSecret ¶ added in v1.0.0
func HTTPStreamRequestBodyEnabled ¶ added in v1.5.0
Types ¶
type Config ¶
type Config struct { TLSCertFile string `envconfig:"TLS_CERT_FILE" required:"true"` TLSKeyFile string `envconfig:"TLS_KEY_FILE" required:"true"` SidecarImage string `envconfig:"SIDECAR_IMAGE" required:"true"` SidecarImagePullPolicy string `envconfig:"SIDECAR_IMAGE_PULL_POLICY"` Namespace string `envconfig:"NAMESPACE" required:"true"` KubeClusterDomain string `envconfig:"KUBE_CLUSTER_DOMAIN"` AllowedServiceAccounts string `envconfig:"ALLOWED_SERVICE_ACCOUNTS"` }
Config represents configuration options for the Dapr Sidecar Injector webhook server.
func GetConfig ¶ added in v1.3.0
GetConfig returns configuration derived from environment variables.
func NewConfigWithDefaults ¶
func NewConfigWithDefaults() Config
NewConfigWithDefaults returns a Config object with default values already applied. Callers are then free to set custom values for the remaining fields and/or override default values.
type Injector ¶
Injector is the interface for the Dapr runtime sidecar injection component.
func NewInjector ¶
func NewInjector(authUIDs []string, config Config, daprClient scheme.Interface, kubeClient kubernetes.Interface) Injector
NewInjector returns a new Injector instance with the given config.
type PatchOperation ¶
type PatchOperation struct { Op string `json:"op"` Path string `json:"path"` Value interface{} `json:"value,omitempty"` }
PatchOperation represents a discreet change to be applied to a Kubernetes resource.