Documentation ¶
Index ¶
- Constants
- func CloudProviderToKKP(provider machinecontroller.CloudProvider) (kubermaticv1.CloudProvider, error)
- func CloudProviderToMachineController(provider kubermaticv1.CloudProvider) (machinecontroller.CloudProvider, error)
- func ClusterCloudProviderName(spec kubermaticv1.CloudSpec) (kubermaticv1.CloudProvider, error)
- func DatacenterCloudProviderName(spec *kubermaticv1.DatacenterProviderSpec) (kubermaticv1.CloudProvider, error)
- func EnsureProjectServiceAccountPrefix(str string) string
- func ExternalClusterCloudProviderName(spec kubermaticv1.ExternalClusterCloudSpec) (kubermaticv1.ExternalClusterProvider, error)
- func IsIPv6EnabledDatacenter(dc *kubermaticv1.Datacenter) bool
- func IsIPv6KnownProvider(provider kubermaticv1.CloudProvider) bool
- func IsProjectServiceAccount(nameOrEmail string) bool
- func OperatingSystemToKKP(os machinecontroller.OperatingSystem) (kubermaticv1.OperatingSystem, error)
- func OperatingSystemToMachineController(os kubermaticv1.OperatingSystem) (machinecontroller.OperatingSystem, error)
- func RemoveProjectServiceAccountPrefix(str string) string
- func SetClusterCondition(c *kubermaticv1.Cluster, kkpVersion string, ...)
Constants ¶
const (
UserServiceAccountPrefix = "serviceaccount-"
)
Variables ¶
This section is empty.
Functions ¶
func CloudProviderToKKP ¶
func CloudProviderToKKP(provider machinecontroller.CloudProvider) (kubermaticv1.CloudProvider, error)
func CloudProviderToMachineController ¶
func CloudProviderToMachineController(provider kubermaticv1.CloudProvider) (machinecontroller.CloudProvider, error)
func ClusterCloudProviderName ¶
func ClusterCloudProviderName(spec kubermaticv1.CloudSpec) (kubermaticv1.CloudProvider, error)
ClusterCloudProviderName returns the provider name for the given CloudSpec.
func DatacenterCloudProviderName ¶
func DatacenterCloudProviderName(spec *kubermaticv1.DatacenterProviderSpec) (kubermaticv1.CloudProvider, error)
DatacenterCloudProviderName returns the provider name for the given Datacenter.
func EnsureProjectServiceAccountPrefix ¶
EnsureProjectServiceAccountPrefix adds "serviceaccount-" prefix to a SA's ID, for example given "7d4b5695vb" it returns "serviceaccount-7d4b5695vb".
func ExternalClusterCloudProviderName ¶
func ExternalClusterCloudProviderName(spec kubermaticv1.ExternalClusterCloudSpec) (kubermaticv1.ExternalClusterProvider, error)
ExternalClusterCloudProviderName returns the provider name for the given ExternalClusterCloudSpec.
func IsIPv6EnabledDatacenter ¶
func IsIPv6EnabledDatacenter(dc *kubermaticv1.Datacenter) bool
IsIPv6EnabledDatacenter returns true if IPv6 is enabled for the datacenter.
func IsIPv6KnownProvider ¶
func IsIPv6KnownProvider(provider kubermaticv1.CloudProvider) bool
func IsProjectServiceAccount ¶
IsProjectServiceAccount determines whether the given email address or user object name belongs to a project service account. For a service account, they must have the UserServiceAccountPrefix.
func OperatingSystemToKKP ¶
func OperatingSystemToKKP(os machinecontroller.OperatingSystem) (kubermaticv1.OperatingSystem, error)
func OperatingSystemToMachineController ¶
func OperatingSystemToMachineController(os kubermaticv1.OperatingSystem) (machinecontroller.OperatingSystem, error)
func RemoveProjectServiceAccountPrefix ¶
RemoveProjectServiceAccountPrefix removes "serviceaccount-" from a SA's ID, for example given "serviceaccount-7d4b5695vb" it returns "7d4b5695vb".
func SetClusterCondition ¶
func SetClusterCondition( c *kubermaticv1.Cluster, kkpVersion string, conditionType kubermaticv1.ClusterConditionType, status corev1.ConditionStatus, reason string, message string, )
SetClusterCondition sets a condition on the given cluster using the provided type, status, reason and message. It also adds the Kubermatic version and timestamps.
Types ¶
This section is empty.