Back to godoc.org
k8s.io/kubernetes/pkg/kubeapiserver

package kubeapiserver

v1.18.3
Latest Go to latest
Published: May 20, 2020 | License: Apache-2.0 | Module: k8s.io/kubernetes

Overview

Package kubeapiserver holds code that is common to both the kube-apiserver and the federation-apiserver, but isn't part of a generic API server. For instance, the non-delegated authorization options are used by those two servers, but no generic API server is likely to use them.

Index

Variables

var SpecialDefaultResourcePrefixes = map[schema.GroupResource]string{
	{Group: "", Resource: "replicationcontrollers"}:        "controllers",
	{Group: "", Resource: "endpoints"}:                     "services/endpoints",
	{Group: "", Resource: "nodes"}:                         "minions",
	{Group: "", Resource: "services"}:                      "services/specs",
	{Group: "extensions", Resource: "ingresses"}:           "ingress",
	{Group: "networking.k8s.io", Resource: "ingresses"}:    "ingress",
	{Group: "extensions", Resource: "podsecuritypolicies"}: "podsecuritypolicy",
	{Group: "policy", Resource: "podsecuritypolicies"}:     "podsecuritypolicy",
}

SpecialDefaultResourcePrefixes are prefixes compiled into Kubernetes.

type StorageFactoryConfig

type StorageFactoryConfig struct {
	StorageConfig                    storagebackend.Config
	APIResourceConfig                *serverstorage.ResourceConfig
	DefaultResourceEncoding          *serverstorage.DefaultResourceEncodingConfig
	DefaultStorageMediaType          string
	Serializer                       runtime.StorageSerializer
	ResourceEncodingOverrides        []schema.GroupVersionResource
	EtcdServersOverrides             []string
	EncryptionProviderConfigFilepath string
}

StorageFactoryConfig is a configuration for creating storage factory.

func NewStorageFactoryConfig

func NewStorageFactoryConfig() *StorageFactoryConfig

NewStorageFactoryConfig returns a new StorageFactoryConfig set up with necessary resource overrides.

func (*StorageFactoryConfig) Complete

func (c *StorageFactoryConfig) Complete(etcdOptions *serveroptions.EtcdOptions) (*completedStorageFactoryConfig, error)

Complete completes the StorageFactoryConfig with provided etcdOptions returning completedStorageFactoryConfig.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier