Documentation ¶
Index ¶
Constants ¶
View Source
const ( // VolumePrefix is the prefix of all kube controller manager volumes. VolumePrefix = "matryoshka-onmetal-de-" // PathPrefix is the prefix of all kube controller manager volume path mounts. PathPrefix = "/srv/kubernetes/" // ServiceAccountPrivateKeyName is the name used for service account volume name and path. ServiceAccountPrivateKeyName = "service-account-private-key" // ServiceAccountPrivateKeyVolumeName is the name of the service account volume ServiceAccountPrivateKeyVolumeName = VolumePrefix + ServiceAccountPrivateKeyName // ServiceAccountPrivateKeyVolumePath is the path of the service account volume. ServiceAccountPrivateKeyVolumePath = PathPrefix + ServiceAccountPrivateKeyName // ServiceAccountRootCertificateName is the name used for the service account root ca volume and path. ServiceAccountRootCertificateName = "service-account-root-ca" // ServiceAccountRootCertificateVolumeName is the name of the service account root ca volume. ServiceAccountRootCertificateVolumeName = VolumePrefix + ServiceAccountRootCertificateName // ServiceAccountRootCertificateVolumePath is the path of the service account root ca volume. ServiceAccountRootCertificateVolumePath = PathPrefix + ServiceAccountRootCertificateName // KubeconfigName is the name used for kubeconfig volume name and path. KubeconfigName = "kubeconfig" // KubeconfigVolumeName is the name of the kubeconfig volume. KubeconfigVolumeName = VolumePrefix + KubeconfigName // KubeconfigVolumePath is the path of the kubeconfig volume KubeconfigVolumePath = PathPrefix + KubeconfigName // AuthorizationKubeconfigName is the name used for the authorization kubeconfig volume name and path. AuthorizationKubeconfigName = "authorization-kubeconfig" // AuthorizationKubeconfigVolumeName is the name of the authorization kubeconfig volume. AuthorizationKubeconfigVolumeName = VolumePrefix + AuthorizationKubeconfigName // AuthorizationKubeconfigVolumePath is the path of the authorization kubeconfig volume. AuthorizationKubeconfigVolumePath = PathPrefix + AuthorizationKubeconfigName // AuthenticationKubeconfigName is the name used for the authentication kubeconfig volume name and path. AuthenticationKubeconfigName = "authentication-kubeconfig" // AuthenticationKubeconfigVolumeName is the name of the authentication kubeconfig volume. AuthenticationKubeconfigVolumeName = VolumePrefix + AuthenticationKubeconfigName // AuthenticationKubeconfigVolumePath is the path of the authentication kubeconfig volume. AuthenticationKubeconfigVolumePath = PathPrefix + AuthenticationKubeconfigName // ClusterSigningName is the name used for the cluster signing volume name and path. ClusterSigningName = "cluster-signing" // ClusterSigningVolumeName is the name of the cluster signing volume. ClusterSigningVolumeName = VolumePrefix + ClusterSigningName // ClusterSigningVolumePath is the path of the cluster signing volume. ClusterSigningVolumePath = PathPrefix + ClusterSigningName )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver resolves a matryoshkav1alpha1.KubeControllerManager to its required manifests.
func NewResolver ¶
NewResolver creates a new Resolver.
func (*Resolver) ObjectReferences ¶
func (r *Resolver) ObjectReferences(kcm *matryoshkav1alpha1.KubeControllerManager) (clientutils.ObjectRefSet, error)
ObjectReferences returns a clientutils.ObjectRefSet of objects a *matryoshkav1alpha1.KubeControllerManager references.
func (*Resolver) Resolve ¶
func (r *Resolver) Resolve(ctx context.Context, kcm *matryoshkav1alpha1.KubeControllerManager) (*appsv1.Deployment, error)
Resolve resolves a matryoshkav1alpha1.KubeControllerManager to its required manifests.
Click to show internal directories.
Click to hide internal directories.