Documentation
¶
Index ¶
- Constants
- func ExcludedFieldsFromJson(data map[string]interface{}, path string)
- func FindCABundle(client client.Client, namespace string, name string) ([]byte, error)
- func FindGlobalCABundle(client client.Client, host string) ([]byte, error)
- func GetObjectFromWebhookRequest(decoder admission.Decoder, obj runtime.Object, req admission.Request) error
- func OperationToVerb(operation admissionv1.OperationType) ([]string, error)
- func TypeBasedConditionRemover(conditions []metav1.Condition, typeKind string) []metav1.Condition
- func TypeBasedConditionUpdater(conditions []metav1.Condition, condition metav1.Condition) []metav1.Condition
Constants ¶
View Source
const CaSecretWrongTypeErrorMessage = "the CA bundle secret must be of type \"kubernetes.io/ts\""
Variables ¶
This section is empty.
Functions ¶
func ExcludedFieldsFromJson ¶
Remove the specified path from the json object Path examples :
INPUT
test1.test2
OUTPUT
test1: test2: value
INPUT
.test3 test3: value
OUTPUT
test7 test7: value
INPUT ¶
.test4[this.string-is:the/same*key]test5[test6]
OUTPUT
test4: "this.string-is:the/same*key": test5: test6: value
func FindCABundle ¶ added in v0.3.3
func FindGlobalCABundle ¶ added in v0.3.3
func GetObjectFromWebhookRequest ¶ added in v0.3.1
func OperationToVerb ¶ added in v0.3.1
func OperationToVerb(operation admissionv1.OperationType) ([]string, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.