Documentation ¶
Index ¶
- func BoolPointer(b bool) *bool
- func GetConditionByType(condType string, conditions []metav1.Condition) metav1.Condition
- func GetConfigMapValue(ctx context.Context, cfgKey, cfgName, ns string, client client.Client, ...) (error, string)
- func GetConfigMapValues(ctx context.Context, cfgName, ns string, client client.Client) (error, []string)
- func GetDeploymentCondition(status appsv1.DeploymentStatus, condType appsv1.DeploymentConditionType) *appsv1.DeploymentCondition
- func IsX509UnknownAuthorityError(err error) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolPointer ¶ added in v1.1.0
func GetConditionByType ¶
GetConditionByType returns condition of type condType if it exists in conditions, otherwise return empty condition struct.
func GetConfigMapValue ¶ added in v1.4.1
func GetConfigMapValue(ctx context.Context, cfgKey, cfgName, ns string, client client.Client, log logr.Logger) (error, string)
GetConfigMapValue fetches the value for the provided configmap mapped to a given key
func GetConfigMapValues ¶ added in v1.6.3
func GetConfigMapValues(ctx context.Context, cfgName, ns string, client client.Client) (error, []string)
GetConfigMapValues fetches the value for the provided configmap mapped to a given key
func GetDeploymentCondition ¶
func GetDeploymentCondition(status appsv1.DeploymentStatus, condType appsv1.DeploymentConditionType) *appsv1.DeploymentCondition
func IsX509UnknownAuthorityError ¶ added in v1.4.1
IsX509UnknownAuthorityError checks whether an error is of type x509.UnknownAuthorityError.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.