manifests

package
v0.0.0-...-c53fdc3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package manifests deals with creating manifests for all manifests to be installed for the cluster

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchedulerCfgFilename is the path of the Scheduler Config file
	SchedulerCfgFilename = filepath.Join(manifestDir, "cluster-scheduler-02-config.yml")
)

Functions

func OvnKubeConfig

func OvnKubeConfig(cns []configv1.ClusterNetworkEntry, sn []string, useHostRouting bool) ([]byte, error)

OvnKubeConfig creates a config file for the OVNKubernetes CNI provider

func ParseCertificates

func ParseCertificates(certificates string) (map[string]string, error)

ParseCertificates parses and verifies a PEM certificate bundle

Types

type AdditionalTrustBundleConfig

type AdditionalTrustBundleConfig struct {
	ConfigMap *corev1.ConfigMap
	File      *asset.File
}

AdditionalTrustBundleConfig generates the additional-trust-bundle-config.yaml files.

func (*AdditionalTrustBundleConfig) Dependencies

func (*AdditionalTrustBundleConfig) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed to generate the asset.

func (*AdditionalTrustBundleConfig) Files

func (atbc *AdditionalTrustBundleConfig) Files() []*asset.File

Files returns the files generated by the asset.

func (*AdditionalTrustBundleConfig) Generate

func (atbc *AdditionalTrustBundleConfig) Generate(dependencies asset.Parents) error

Generate generates the CloudProviderConfig.

func (*AdditionalTrustBundleConfig) Load

Load loads the already-rendered files back from disk.

func (*AdditionalTrustBundleConfig) Name

Name returns a human friendly name for the asset.

type AwsCredsSecretData

type AwsCredsSecretData struct {
	Base64encodeAccessKeyID     string
	Base64encodeSecretAccessKey string
}

AwsCredsSecretData holds encoded credentials and is used to generate cloud-creds secret

type AzureCredsSecretData

type AzureCredsSecretData struct {
	Base64encodeSubscriptionID string
	Base64encodeClientID       string
	Base64encodeClientSecret   string
	Base64encodeTenantID       string
	Base64encodeResourcePrefix string
	Base64encodeResourceGroup  string
	Base64encodeRegion         string
}

AzureCredsSecretData holds encoded credentials and is used to generate cloud-creds secret

type CloudProviderConfig

type CloudProviderConfig struct {
	ConfigMap *corev1.ConfigMap
	File      *asset.File
}

CloudProviderConfig generates the cloud-provider-config.yaml files.

func (*CloudProviderConfig) Dependencies

func (*CloudProviderConfig) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed to generate the asset.

func (*CloudProviderConfig) Files

func (cpc *CloudProviderConfig) Files() []*asset.File

Files returns the files generated by the asset.

func (*CloudProviderConfig) Generate

func (cpc *CloudProviderConfig) Generate(dependencies asset.Parents) error

Generate generates the CloudProviderConfig.

func (*CloudProviderConfig) Load

Load loads the already-rendered files back from disk.

func (*CloudProviderConfig) Name

func (*CloudProviderConfig) Name() string

Name returns a human friendly name for the asset.

type ClusterCSIDriverConfig

type ClusterCSIDriverConfig struct {
	File *asset.File
}

ClusterCSIDriverConfig generates the cluster-csi-driver-config.yaml file.

func (*ClusterCSIDriverConfig) Dependencies

func (*ClusterCSIDriverConfig) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed to generate the asset.

func (*ClusterCSIDriverConfig) Files

func (csi *ClusterCSIDriverConfig) Files() []*asset.File

Files returns the files generated by the asset.

func (*ClusterCSIDriverConfig) Generate

func (csi *ClusterCSIDriverConfig) Generate(dependencies asset.Parents) error

Generate the ClusterCSIDriverConfig.

func (*ClusterCSIDriverConfig) Load

Load loads the already-rendered files back from disk.

func (*ClusterCSIDriverConfig) Name

Name returns a human friendly name for the asset.

type DNS

type DNS struct {
	FileList []*asset.File
}

DNS generates the cluster-dns-*.yml files.

func (*DNS) Dependencies

func (*DNS) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed to generate the asset.

func (*DNS) Files

func (d *DNS) Files() []*asset.File

Files returns the files generated by the asset.

func (*DNS) Generate

func (d *DNS) Generate(dependencies asset.Parents) error

Generate generates the DNS config and its CRD.

func (*DNS) Load

func (d *DNS) Load(f asset.FileFetcher) (bool, error)

Load loads the already-rendered files back from disk.

func (*DNS) Name

func (*DNS) Name() string

Name returns a human friendly name for the asset.

type FeatureGate

type FeatureGate struct {
	FileList []*asset.File
	Config   configv1.FeatureGate
}

FeatureGate generates the feature gate manifest.

func (*FeatureGate) Dependencies

func (*FeatureGate) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed to generate the asset.

func (*FeatureGate) Files

func (f *FeatureGate) Files() []*asset.File

Files returns the files generated by the asset.

func (*FeatureGate) Generate

func (f *FeatureGate) Generate(dependencies asset.Parents) error

Generate generates the FeatureGate CRD.

func (*FeatureGate) Load

func (f *FeatureGate) Load(ff asset.FileFetcher) (bool, error)

Load loads the already-rendered files back from disk.

func (*FeatureGate) Name

func (*FeatureGate) Name() string

Name returns a human-friendly name for the asset.

type GCPCredsSecretData

type GCPCredsSecretData struct {
	Base64encodeServiceAccount string
}

GCPCredsSecretData holds encoded credentials and is used to generate cloud-creds secret

type IBMCloudCredsSecretData

type IBMCloudCredsSecretData struct {
	Base64encodeAPIKey string
}

IBMCloudCredsSecretData holds encoded credentials and is used to generate cloud-creds secret

type ImageContentSourcePolicy

type ImageContentSourcePolicy struct {
	File *asset.File
}

ImageContentSourcePolicy generates the image-content-source-policy.yaml file.

func (*ImageContentSourcePolicy) Dependencies

func (*ImageContentSourcePolicy) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed to generate the asset.

func (*ImageContentSourcePolicy) Files

func (p *ImageContentSourcePolicy) Files() []*asset.File

Files returns the files generated by the asset.

func (*ImageContentSourcePolicy) Generate

func (p *ImageContentSourcePolicy) Generate(dependencies asset.Parents) error

Generate generates the ImageContentSourcePolicy config and its CR.

func (*ImageContentSourcePolicy) Load

Load loads the already-rendered files back from disk.

func (*ImageContentSourcePolicy) Name

Name returns a human-friendly name for the asset.

type ImageDigestMirrorSet

type ImageDigestMirrorSet struct {
	File *asset.File
}

ImageDigestMirrorSet generates the image-digest-mirror-set.yaml file.

func (*ImageDigestMirrorSet) Dependencies

func (*ImageDigestMirrorSet) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed to generate the asset.

func (*ImageDigestMirrorSet) Files

func (p *ImageDigestMirrorSet) Files() []*asset.File

Files returns the files generated by the asset.

func (*ImageDigestMirrorSet) Generate

func (p *ImageDigestMirrorSet) Generate(dependencies asset.Parents) error

Generate generates the ImageDigestMirrorSet config and its CR.

func (*ImageDigestMirrorSet) Load

Load loads the already-rendered files back from disk.

func (*ImageDigestMirrorSet) Name

func (*ImageDigestMirrorSet) Name() string

Name returns a human-friendly name for the asset.

type Infrastructure

type Infrastructure struct {
	FileList []*asset.File
}

Infrastructure generates the cluster-infrastructure-*.yml files.

func (*Infrastructure) Dependencies

func (*Infrastructure) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed to generate the asset.

func (*Infrastructure) Files

func (i *Infrastructure) Files() []*asset.File

Files returns the files generated by the asset.

func (*Infrastructure) Generate

func (i *Infrastructure) Generate(dependencies asset.Parents) error

Generate generates the Infrastructure config and its CRD.

func (*Infrastructure) Load

func (i *Infrastructure) Load(f asset.FileFetcher) (bool, error)

Load returns false since this asset is not written to disk by the installer.

func (*Infrastructure) Name

func (*Infrastructure) Name() string

Name returns a human friendly name for the asset.

type Ingress

type Ingress struct {
	FileList []*asset.File
}

Ingress generates the cluster-ingress-*.yml files.

func (*Ingress) Dependencies

func (*Ingress) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed to generate the asset.

func (*Ingress) Files

func (ing *Ingress) Files() []*asset.File

Files returns the files generated by the asset.

func (*Ingress) Generate

func (ing *Ingress) Generate(dependencies asset.Parents) error

Generate generates the ingress cluster config and default ingresscontroller.

A cluster ingress config is always created.

A default ingresscontroller is only created if the cluster is using an internal publishing strategy. In this case, the default ingresscontroller is also set to use the internal publishing strategy.

func (*Ingress) Load

func (ing *Ingress) Load(asset.FileFetcher) (bool, error)

Load returns false since this asset is not written to disk by the installer.

func (*Ingress) Name

func (*Ingress) Name() string

Name returns a human friendly name for the asset.

type Manifests

type Manifests struct {
	KubeSysConfig *configurationObject
	FileList      []*asset.File
}

Manifests generates the dependent operator config.yaml files

func (*Manifests) Dependencies

func (m *Manifests) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed by a Manifests asset.

func (*Manifests) Files

func (m *Manifests) Files() []*asset.File

Files returns the files generated by the asset.

func (*Manifests) Generate

func (m *Manifests) Generate(dependencies asset.Parents) error

Generate generates the respective operator config.yml files

func (*Manifests) Load

func (m *Manifests) Load(f asset.FileFetcher) (bool, error)

Load returns the manifests asset from disk.

func (*Manifests) Name

func (m *Manifests) Name() string

Name returns a human friendly name for the operator

type Networking

type Networking struct {
	Config   *configv1.Network
	FileList []*asset.File
}

Networking generates the cluster-network-*.yml files.

func (*Networking) Dependencies

func (no *Networking) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed to generate network configuration.

func (*Networking) Files

func (no *Networking) Files() []*asset.File

Files returns the files generated by the asset.

func (*Networking) Generate

func (no *Networking) Generate(dependencies asset.Parents) error

Generate generates the network operator config and its CRD.

func (*Networking) Load

func (no *Networking) Load(f asset.FileFetcher) (bool, error)

Load returns false since this asset is not written to disk by the installer.

func (*Networking) Name

func (no *Networking) Name() string

Name returns a human friendly name for the operator.

type OpenStackCredsSecretData

type OpenStackCredsSecretData struct {
	Base64encodeCloudCreds    string
	Base64encodeCloudCredsINI string
}

OpenStackCredsSecretData holds encoded credentials and is used to generate cloud-creds secret

type Openshift

type Openshift struct {
	FileList []*asset.File
}

Openshift generates the dependent resource manifests for openShift (as against bootkube)

func (*Openshift) Dependencies

func (o *Openshift) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed by the Openshift asset

func (*Openshift) Files

func (o *Openshift) Files() []*asset.File

Files returns the files generated by the asset.

func (*Openshift) Generate

func (o *Openshift) Generate(dependencies asset.Parents) error

Generate generates the respective operator config.yml files

func (*Openshift) Load

func (o *Openshift) Load(f asset.FileFetcher) (bool, error)

Load returns the openshift asset from disk.

func (*Openshift) Name

func (o *Openshift) Name() string

Name returns a human friendly name for the operator

type OvirtCredsSecretData

type OvirtCredsSecretData struct {
	Base64encodeURL      string
	Base64encodeUsername string
	Base64encodePassword string
	Base64encodeInsecure string
	Base64encodeCABundle string
}

OvirtCredsSecretData holds encoded credentials and is used to generated cloud-creds secret

type Proxy

type Proxy struct {
	FileList []*asset.File
	Config   *configv1.Proxy
}

Proxy generates the cluster-proxy-*.yml files.

func (*Proxy) Dependencies

func (*Proxy) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed to generate the asset.

func (*Proxy) Files

func (p *Proxy) Files() []*asset.File

Files returns the files generated by the asset.

func (*Proxy) Generate

func (p *Proxy) Generate(dependencies asset.Parents) error

Generate generates the Proxy config and its CRD.

func (*Proxy) Load

func (p *Proxy) Load(f asset.FileFetcher) (bool, error)

Load loads the already-rendered files back from disk.

func (*Proxy) Name

func (*Proxy) Name() string

Name returns a human-friendly name for the asset.

type Scheduler

type Scheduler struct {
	FileList []*asset.File
}

Scheduler generates the cluster-scheduler-*.yml files.

func (*Scheduler) Dependencies

func (*Scheduler) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed to generate the asset.

func (*Scheduler) Files

func (s *Scheduler) Files() []*asset.File

Files returns the files generated by the asset.

func (*Scheduler) Generate

func (s *Scheduler) Generate(dependencies asset.Parents) error

Generate generates the scheduler config and its CRD.

func (*Scheduler) Load

func (s *Scheduler) Load(f asset.FileFetcher) (bool, error)

Load returns false since this asset is not written to disk by the installer.

func (*Scheduler) Name

func (*Scheduler) Name() string

Name returns a human friendly name for the asset.

type VSphereCredsSecretData

type VSphereCredsSecretData struct {
	VCenter              string
	Base64encodeUsername string
	Base64encodePassword string
}

VSphereCredsSecretData holds encoded credentials and is used to generated cloud-creds secret

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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