Documentation ¶
Index ¶
- Constants
- func AddToScheme(scheme *runtime.Scheme) error
- func AlterFieldOfNestedStringMaps(obj interface{}, key string, value string) error
- func GetFullyQualifiedType(obj *unstructured.Unstructured) string
- func GetObjectGVK(obj metav1.Object, scheme *runtime.Scheme) (schema.GroupVersionKind, error)
- func HereYaml(y string) string
- func HereYamlF(y string, args ...interface{}) string
- func SinglePathEvaluate(jsonpathExpression string, obj interface{}) ([]interface{}, error)
- type ConditionList
- type KubeconfigRestricted
- type ServiceAccounts
Constants ¶
View Source
const DefaultResyncTime = 10 * time.Hour
Variables ¶
This section is empty.
Functions ¶
func AddToScheme ¶ added in v0.4.0
func AlterFieldOfNestedStringMaps ¶ added in v0.0.5
func GetFullyQualifiedType ¶ added in v0.0.8
func GetFullyQualifiedType(obj *unstructured.Unstructured) string
func GetObjectGVK ¶
func SinglePathEvaluate ¶
Types ¶
type ConditionList ¶ added in v0.4.2
func ExtractConditions ¶ added in v0.4.2
func ExtractConditions(stampedObject *unstructured.Unstructured) ConditionList
func (ConditionList) ConditionWithType ¶ added in v0.4.2
func (c ConditionList) ConditionWithType(conditionType string) *metav1.Condition
type KubeconfigRestricted ¶ added in v0.0.8
type KubeconfigRestricted struct {
// contains filtered or unexported fields
}
func NewKubeconfigRestricted ¶ added in v0.0.8
func NewKubeconfigRestricted(input string) (*KubeconfigRestricted, error)
NewKubeconfigRestricted takes kubeconfig yaml as input and returns kubeconfig yaml with certain fields restricted (removed). Developers may find it informative to view their own config at ~/.kube/config
func (*KubeconfigRestricted) AsYAML ¶ added in v0.0.8
func (r *KubeconfigRestricted) AsYAML() string
type ServiceAccounts ¶ added in v0.0.8
type ServiceAccounts struct {
// contains filtered or unexported fields
}
func (*ServiceAccounts) Find ¶ added in v0.0.8
func (s *ServiceAccounts) Find(nsName string, saName string) (*KubeconfigRestricted, error)
func (*ServiceAccounts) MakeKubeConfig ¶ added in v0.0.8
func (s *ServiceAccounts) MakeKubeConfig(secret *corev1.Secret) (string, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.