kubeapiserver

package
v0.4.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VolumePrefix is the prefix used for all volume names.
	VolumePrefix = "matryoshka-onmetal-de-"
	// PathPrefix is the prefix used for all volume paths.
	PathPrefix = "/srv/kubernetes/"

	// ServiceAccountKeyName is the name used for the service account volume name and path.
	ServiceAccountKeyName = "service-account-key"
	// ServiceAccountKeyVolumeName is the name of the service account volume.
	ServiceAccountKeyVolumeName = VolumePrefix + ServiceAccountKeyName
	// ServiceAccountKeyVolumePath is the path of the service account volume.
	ServiceAccountKeyVolumePath = PathPrefix + ServiceAccountKeyName

	// ServiceAccountSigningKeyName is the name used for the service account volume name and path.
	ServiceAccountSigningKeyName = "service-account-skey"
	// ServiceAccountSigningKeyVolumeName is the name of the service account volume.
	ServiceAccountSigningKeyVolumeName = VolumePrefix + ServiceAccountSigningKeyName
	// ServiceAccountSigningKeyVolumePath is the path of the service account volume.
	ServiceAccountSigningKeyVolumePath = PathPrefix + ServiceAccountSigningKeyName

	// TLSName is the name used for the tls account volume name and path.
	TLSName = "tls"
	// TLSVolumeName is the name of the tls volume.
	TLSVolumeName = VolumePrefix + TLSName
	// TLSVolumePath is the path of the tls volume.
	TLSVolumePath = PathPrefix + TLSName

	// TokenName is the name used for the token volume name and path.
	TokenName = "token"
	// TokenVolumeName is the name of the token volume.
	TokenVolumeName = VolumePrefix + TokenName
	// TokenVolumePath is the path of the token volume.
	TokenVolumePath = PathPrefix + TokenName

	// ClientCAName is the name used for the client ca volume name and path.
	ClientCAName = "client-ca"
	// ClientCAVolumeName is the name of the client ca volume.
	ClientCAVolumeName = VolumePrefix + ClientCAName
	// ClientCAVolumePath is the path of the client ca volume.
	ClientCAVolumePath = PathPrefix + ClientCAName

	// ETCDCAName is the name used for the etcd ca volume name and path.
	ETCDCAName = "etcd-ca"
	// ETCDCAVolumeName is the name of the etcd ca volume.
	ETCDCAVolumeName = VolumePrefix + ETCDCAName
	// ETCDCAVolumePath is the path of the etcd ca volume.
	ETCDCAVolumePath = PathPrefix + ETCDCAName

	// ETCDKeyName is the name used for the etcd key volume name and path.
	ETCDKeyName = "etcd-key"
	// ETCDKeyVolumeName is the name of the etcd key volume.
	ETCDKeyVolumeName = VolumePrefix + ETCDKeyName
	// ETCDKeyVolumePath is the path of the etcd key volume.
	ETCDKeyVolumePath = PathPrefix + ETCDKeyName
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthToken

type AuthToken struct {
	Token  string
	User   string
	UID    string
	Groups []string
}

AuthToken is a token and the user, uid and groups it should be bound to.

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver resolves matryoshkav1alpha1.KubeAPIServer to its manifests.

func NewResolver

func NewResolver(scheme *runtime.Scheme, c client.Client) *Resolver

NewResolver creates a new Resolver with the given runtime.Scheme and client.Client.

func (*Resolver) ObjectReferences

func (r *Resolver) ObjectReferences(server *matryoshkav1alpha1.KubeAPIServer) (clientutils.ObjectRefSet, error)

ObjectReferences returns all object references of a matryoshkav1alpha1.KubeAPIServer.

func (*Resolver) Resolve

Resolve resolves a matryoshkav1alpha1.KubeAPIServer into its required manifests.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL