Documentation ¶
Index ¶
- Constants
- type GenericClient
- func (c GenericClient) ApplyConfigMaps(configMaps []*corev1.ConfigMap, namespace string) error
- func (c GenericClient) ApplyResources(resources []K8sObject) ([]*unstructured.Unstructured, error)
- func (c GenericClient) ApplySecrets(secrets []*corev1.Secret, namespace string) error
- func (c GenericClient) CreateResources(resources []K8sObject) ([]*unstructured.Unstructured, error)
- func (c GenericClient) WaitForPodByLabel(namespace, labelSelector string, desiredPhase corev1.PodPhase, ...) error
- type K8sObject
- type RESTMapper
Constants ¶
View Source
const ( OnConflictLabel string = "conflict-strategy" ReplaceOnConflict string = "Replace" MergeOnConflict string = "Merge" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericClient ¶
type GenericClient struct {
// contains filtered or unexported fields
}
func NewGenericClient ¶
func NewGenericClient(restMapper RESTMapper, dynamicClient dynamic.Interface, k8sClientSet kubernetes.Interface) *GenericClient
func (GenericClient) ApplyConfigMaps ¶
func (c GenericClient) ApplyConfigMaps(configMaps []*corev1.ConfigMap, namespace string) error
func (GenericClient) ApplyResources ¶
func (c GenericClient) ApplyResources(resources []K8sObject) ([]*unstructured.Unstructured, error)
func (GenericClient) ApplySecrets ¶
func (c GenericClient) ApplySecrets(secrets []*corev1.Secret, namespace string) error
func (GenericClient) CreateResources ¶
func (c GenericClient) CreateResources(resources []K8sObject) ([]*unstructured.Unstructured, error)
func (GenericClient) WaitForPodByLabel ¶
type RESTMapper ¶
Click to show internal directories.
Click to hide internal directories.