configmap

package
v1.6.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

func NewSpec

func NewSpec(id, namespace string, stringData map[string]string) *v1.ConfigMap

NewSpec is a method to return configmap spec

Types

type Client

type Client struct {
	ClientSet *kubernetes.Clientset
	Log       *zap.SugaredLogger
	Namespace string
}

Client provide methods to manage configmaps

func NewClient

func NewClient(namespace string) (*Client, error)

NewClient is a method to create new configmap client

func (*Client) Apply

func (c *Client) Apply(id string, stringData map[string]string) error

Apply is a method to create or update a configmap

func (*Client) Create

func (c *Client) Create(id string, stringData map[string]string) error

Create is a method to create new configmap

func (*Client) Get

func (c *Client) Get(id string) (map[string]string, error)

Get is a method to retrieve an existing configmap

func (*Client) Update

func (c *Client) Update(id string, stringData map[string]string) error

Update is a method to update an existing configmap

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL