package configmap

import "github.com/oslokommune/okctl/pkg/kube/manifests/configmap"

Package configmap provides a configmap creator and applier

Index

Functions

func NewManifest

func NewManifest(name, namespace string, data, labels map[string]string) *v1.ConfigMap

NewManifest returns the ConfigMap manifest

Types

type ConfigMap

type ConfigMap struct {
	Name      string
	Namespace string
	Manifest  *v1.ConfigMap
	Ctx       context.Context
}

ConfigMap contains the state for creating a configmap

func New

func New(name, namespace string, manifest *v1.ConfigMap) *ConfigMap

New returns an initialised ConfigMap creator

func (*ConfigMap) CreateConfigMap

func (s *ConfigMap) CreateConfigMap(clientset kubernetes.Interface, _ *rest.Config) (interface{}, error)

CreateConfigMap creates the ConfigMap

func (*ConfigMap) DeleteConfigMap

func (s *ConfigMap) DeleteConfigMap(_ kubernetes.Interface, config *rest.Config) (interface{}, error)

DeleteConfigMap deletes the ConfigMap

Source Files

configmap.go

Version
v0.0.106 (latest)
Published
Oct 21, 2022
Platform
linux/amd64
Imports
5 packages
Last checked
18 hours ago

Tools for package owners.