Help us shape the future of Go! Take the 2026 Go Developer Survey

k8sconfigmap

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuiltIn

func BuiltIn() catalog.BuiltIn

BuiltIn returns a new BundlePublisher built-in plugin.

Types

type Cluster

type Cluster struct {
	Format         string `hcl:"format" json:"format"`
	Namespace      string `hcl:"namespace" json:"namespace"`
	ConfigMapName  string `hcl:"configmap_name" json:"configmap_name"`
	ConfigMapKey   string `hcl:"configmap_key" json:"configmap_key"`
	KubeConfigPath string `hcl:"kubeconfig_path" json:"kubeconfig_path"`
	RefreshHint    string `hcl:"refresh_hint" json:"refresh_hint"`
	// contains filtered or unexported fields
}

Config holds the configuration of the plugin.

type Config

type Config struct {
	Clusters map[string]*Cluster `hcl:"clusters,block" json:"clusters"`
}

Config holds the configuration of the plugin.

type Plugin

type Plugin struct {
	bundlepublisherv1.UnsafeBundlePublisherServer
	configv1.UnsafeConfigServer
	// contains filtered or unexported fields
}

Plugin is the main representation of this bundle publisher plugin.

func New

func New() *Plugin

New creates a new k8s_configmap BundlePublisher plugin instance.

func (*Plugin) Configure

Configure configures the plugin.

func (*Plugin) PublishBundle

PublishBundle puts the bundle in the configured Kubernetes ConfigMap.

func (*Plugin) SetLogger

func (p *Plugin) SetLogger(log hclog.Logger)

SetLogger sets a logger in the plugin.

func (*Plugin) Validate

Validate validates the configuration of the plugin.

Jump to

Keyboard shortcuts

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