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 Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver resolves matryoshkav1alpha1.KubeAPIServer to its manifests.
func NewResolver ¶
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 ¶
func (r *Resolver) Resolve(ctx context.Context, server *matryoshkav1alpha1.KubeAPIServer) (*appsv1.Deployment, error)
Resolve resolves a matryoshkav1alpha1.KubeAPIServer into its required manifests.
Click to show internal directories.
Click to hide internal directories.