clusterconfigmap

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is the identifier of the resource.
	Name = "clusterconfigmap"
)

Variables

This section is empty.

Functions

func IsFieldNotFoundOnInfrastructureType

func IsFieldNotFoundOnInfrastructureType(err error) bool

IsFieldNotFoundOnInfrastructureType asserts fieldNotFoundOnInfrastructureTypeError.

func IsInfrastructureRefNotFoundError

func IsInfrastructureRefNotFoundError(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsWrongType

func IsWrongType(err error) bool

IsWrongType asserts wrongTypeError.

Types

type AppOperatorProvider

type AppOperatorProvider struct {
	Kind string `json:"kind"`
}

type AppOperatorValuesConfig

type AppOperatorValuesConfig struct {
	Provider AppOperatorProvider `json:"provider"`
}

type ChartOperatorBootstrapMode

type ChartOperatorBootstrapMode struct {
	Enabled          bool  `json:"enabled"`
	ApiServerPodPort int32 `json:"apiServerPodPort"`
}

type ChartOperatorConfig

type ChartOperatorConfig struct {
	Cni map[string]bool `json:"cni"`
}

type ChartOperatorHelmConfig

type ChartOperatorHelmConfig struct {
	NamespaceWhitelist []string `json:"namespaceWhitelist"`
	SplitClient        bool     `json:"splitClient"`
}

type CiliumNetworkPolicy

type CiliumNetworkPolicy struct {
	Enabled bool `json:"enabled"`
}

type ClusterConfig

type ClusterConfig struct {
	Calico     map[string]string `json:"calico"`
	Kubernetes KubernetesConfig  `json:"kubernetes"`
	Private    bool              `json:"private"`
}

type ClusterValuesConfig

type ClusterValuesConfig struct {
	BaseDomain string `json:"baseDomain"`
	// BootstrapMode allows to configure chart-operator in bootstrap mode so that it can install charts without cni or kube-proxy.
	BootstrapMode ChartOperatorBootstrapMode `json:"bootstrapMode"`
	Cluster       ClusterConfig              `json:"cluster"`
	ClusterCA     string                     `json:"clusterCA"`
	// ClusterDNSIP is used by chart-operator. It uses this IP as its dnsConfig nameserver, to use it as resolver.
	ClusterDNSIP        string                   `json:"clusterDNSIP"`
	ClusterID           string                   `json:"clusterID"`
	ClusterCIDR         string                   `json:"clusterCIDR"`
	ExternalDNSIP       *string                  `json:"externalDNSIP,omitempty"`
	Helm                *ChartOperatorHelmConfig `json:"helm,omitempty"`
	Provider            string                   `json:"provider"`
	GcpProject          string                   `json:"gcpProject"`
	ChartOperator       ChartOperatorConfig      `json:"chartOperator"`
	CiliumNetworkPolicy CiliumNetworkPolicy      `json:"ciliumNetworkPolicy"`
	AzureSubscriptionID string                   `json:"subscriptionID"`
}

type Config

type Config struct {
	K8sClient k8sclient.Interface
	Logger    micrologger.Logger
	PodCIDR   podcidr.Interface

	BaseDomain          string
	ClusterIPRange      string
	DNSIP               string
	ManagementClusterID string
	RegistryDomain      string
	Proxy               proxy.Proxy
}

Config represents the configuration used to create a new clusterConfigMap resource.

type KubernetesConfig

type KubernetesConfig struct {
	API map[string]string `json:"API"`
	DNS map[string]string `json:"DNS"`
}

type Resource

type Resource struct {
	// contains filtered or unexported fields
}

Resource implements the clusterConfigMap resource.

func New

func New(config Config) (*Resource, error)

New creates a new configured config map state getter resource managing cluster config maps.

https://pkg.go.dev/github.com/giantswarm/operatorkit/v4/pkg/resource/k8s/secretresource#StateGetter

func (*Resource) GetCurrentState

func (r *Resource) GetCurrentState(ctx context.Context, obj interface{}) ([]*corev1.ConfigMap, error)

func (*Resource) GetDesiredState

func (r *Resource) GetDesiredState(ctx context.Context, obj interface{}) ([]*corev1.ConfigMap, error)

func (*Resource) Name

func (r *Resource) Name() string

Jump to

Keyboard shortcuts

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