Documentation ¶
Index ¶
- Constants
- func ClusterCloudProviderName(spec kubermaticv1.CloudSpec) (kubermaticeev1.CloudProvider, error)
- func EnsureProjectServiceAccountPrefix(str string) string
- func IsProjectServiceAccount(nameOrEmail string) bool
- func RemoveProjectServiceAccountPrefix(str string) string
- func SetClusterCondition(c *kubermaticeev1.Cluster, kkpVersion string, ...)
- func SetSeedCondition(seed *kubermaticeev1.Seed, conditionType kubermaticeev1.SeedConditionType, ...)
Constants ¶
const (
UserServiceAccountPrefix = "serviceaccount-"
)
Variables ¶
This section is empty.
Functions ¶
func ClusterCloudProviderName ¶
func ClusterCloudProviderName(spec kubermaticv1.CloudSpec) (kubermaticeev1.CloudProvider, error)
ClusterCloudProviderName returns the provider name for the given CloudSpec.
func EnsureProjectServiceAccountPrefix ¶
EnsureProjectServiceAccountPrefix adds "serviceaccount-" prefix to a SA's ID, for example given "7d4b5695vb" it returns "serviceaccount-7d4b5695vb".
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 RemoveProjectServiceAccountPrefix ¶
RemoveProjectServiceAccountPrefix removes "serviceaccount-" from a SA's ID, for example given "serviceaccount-7d4b5695vb" it returns "7d4b5695vb".
func SetClusterCondition ¶
func SetClusterCondition( c *kubermaticeev1.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.
func SetSeedCondition ¶
func SetSeedCondition(seed *kubermaticeev1.Seed, conditionType kubermaticeev1.SeedConditionType, status corev1.ConditionStatus, reason string, message string)
SetSeedCondition sets a condition on the given seed using the provided type, status, reason and message.
Types ¶
This section is empty.