Documentation ¶
Index ¶
- func NewApplySpec(id, namespace string, stringData map[string]string) *corev1.ConfigMapApplyConfiguration
- func NewSpec(id, namespace string, stringData map[string]string) *v1.ConfigMap
- type Client
- func (c *Client) Apply(ctx context.Context, id string, stringData map[string]string) error
- func (c *Client) Create(ctx context.Context, id string, stringData map[string]string) error
- func (c *Client) Get(ctx context.Context, id string) (map[string]string, error)
- func (c *Client) Update(ctx context.Context, id string, stringData map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApplySpec ¶
func NewApplySpec(id, namespace string, stringData map[string]string) *corev1.ConfigMapApplyConfiguration
NewApplySpec is a method to return configmap apply spec
Types ¶
type Client ¶
type Client struct { ClientSet *kubernetes.Clientset Log *zap.SugaredLogger Namespace string }
Client provide methods to manage configmaps
Click to show internal directories.
Click to hide internal directories.