Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCondtions ¶
func CheckCondtions(ctx context.Context, u *unstructured.Unstructured) corev1.ConditionStatus
CheckCondtions returns the followings state table: * If all are True, then it returns True. * If all are True or Unknown, then it returns Unknown. * If any are False, then it returns False.
func NewUnstructured ¶
func NewUnstructured(m map[string]interface{}) *unstructured.Unstructured
NewUnstructured returns an Unstructured object that is populated by a map of fields with their associated values. Each field should be separated by periods. So for example, if we wanted to create this struct:
{
"metadata": { "generation": 101, }, "status": { "observedGeneration": 99 }
}
This would be expressed with: map[string]interface{} {
"metadata.generation": 101, "status.observedGeneration": 99,
}
func SetNestedFieldNoCopy ¶
SetNestedFieldNoCopy is shameless copied from https://github.com/kubernetes/kubernetes/blob/v1.14.10/staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/helpers.go
Types ¶
This section is empty.