Documentation ¶
Index ¶
- func GetConfigMap(context rcontext.Context, cmname string, fallback bool) (*v1.ConfigMap, error)
- func GetConfigMapValue(context rcontext.Context, name string, key string, fallback bool) (string, error)
- func GetField(obj interface{}, field string) interface{}
- func GetIAMAccountInfo(r client.Client, namespace string) (*session.Session, *accountv2.Account, error)
- func HasConfigMap(context rcontext.Context, name string, fallback bool) bool
- func SetField(obj interface{}, field string, value interface{})
- func SetFieldToZero(obj interface{}, field string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigMap ¶
GetConfigMap gets the ubernetes configmap of the given name.
func GetConfigMapValue ¶
func GetConfigMapValue(context rcontext.Context, name string, key string, fallback bool) (string, error)
GetConfigMapValue gets the value of the configmap of the given name in the given namespace. If not found and fallback is true, check default namespace
func GetField ¶
func GetField(obj interface{}, field string) interface{}
GetField gets a field in a struct using reflect
func GetIAMAccountInfo ¶
func HasConfigMap ¶
HasConfigMap checks if a configmap exists
func SetField ¶
func SetField(obj interface{}, field string, value interface{})
SetField sets a field in a struct using reflect
func SetFieldToZero ¶
func SetFieldToZero(obj interface{}, field string)
SetField sets a field in a struct to type specific zero using reflect
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.