release39

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package release39 provides utilities related to generating all the necessary artifacts for an OpenShift deployment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFileInfo

func GetFileInfo(filename string) filesystem.Fileinfo

GetFileInfo returns the permissions and ownership of the file if defined

func OpenShiftSetDefaultCerts

func OpenShiftSetDefaultCerts(a *api.Properties, orchestratorName, clusterID string) (bool, error)

OpenShiftSetDefaultCerts sets default certificate and configuration properties in the openshift orchestrator for 3.9.

Types

type AzureConfig

type AzureConfig struct {
	TenantID                   string
	SubscriptionID             string
	AADClientID                string
	AADClientSecret            string
	ResourceGroup              string
	Location                   string
	SecurityGroupName          string
	PrimaryAvailabilitySetName string
}

AzureConfig represents the azure.conf configuration

type CertAndKey

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

CertAndKey is a certificate and key

type Cluster

type Cluster struct {
	Name    string      `yaml:"name,omitempty"`
	Cluster ClusterInfo `yaml:"cluster,omitempty"`
}

Cluster represents a kubeconfig cluster

type ClusterInfo

type ClusterInfo struct {
	Server                   string `yaml:"server,omitempty"`
	CertificateAuthorityData string `yaml:"certificate-authority-data,omitempty"`
}

ClusterInfo represents a kubeconfig clusterinfo

type Config

type Config struct {
	ExternalMasterHostname string

	AuthSecret              string
	EncSecret               string
	Master                  *Master
	Bootstrap               KubeConfig
	ClusterUsername         string
	ClusterPassword         string
	EnableAADAuthentication bool
	AzureConfig             AzureConfig
	// contains filtered or unexported fields
}

Config represents an OpenShift configuration

func (*Config) PrepareBootstrapKubeConfig

func (c *Config) PrepareBootstrapKubeConfig() error

PrepareBootstrapKubeConfig creates the node bootstrap kubeconfig

func (*Config) PrepareMasterCerts

func (c *Config) PrepareMasterCerts() error

PrepareMasterCerts creates the master certs

func (*Config) PrepareMasterFiles

func (c *Config) PrepareMasterFiles() error

PrepareMasterFiles creates the shared authentication and encryption secrets

func (*Config) PrepareMasterKubeConfigs

func (c *Config) PrepareMasterKubeConfigs() error

PrepareMasterKubeConfigs creates the master kubeconfigs

func (*Config) WriteBootstrapCerts

func (c *Config) WriteBootstrapCerts(fs filesystem.Writer) error

WriteBootstrapCerts writes the node bootstrap certs

func (*Config) WriteBootstrapKubeConfig

func (c *Config) WriteBootstrapKubeConfig(fs filesystem.Writer) error

WriteBootstrapKubeConfig writes the node bootstrap kubeconfig

func (*Config) WriteMaster

func (c *Config) WriteMaster(fs filesystem.Writer) error

WriteMaster writes the config files for a Master node to a Filesystem.

func (*Config) WriteMasterCerts

func (c *Config) WriteMasterCerts(fs filesystem.Writer) error

WriteMasterCerts writes the master certs

func (*Config) WriteMasterFiles

func (c *Config) WriteMasterFiles(fs filesystem.Writer) error

WriteMasterFiles writes the templated master config

func (*Config) WriteMasterKeypair

func (c *Config) WriteMasterKeypair(fs filesystem.Writer) error

WriteMasterKeypair writes the master service account keypair

func (*Config) WriteMasterKubeConfigs

func (c *Config) WriteMasterKubeConfigs(fs filesystem.Writer) error

WriteMasterKubeConfigs writes the master kubeconfigs

func (*Config) WriteNode

func (c *Config) WriteNode(fs filesystem.Writer) error

WriteNode writes the config files for bootstrapping a node to a Filesystem.

func (*Config) WriteNodeFiles

func (c *Config) WriteNodeFiles(fs filesystem.Writer) error

WriteNodeFiles writes the templated node config

type Context

type Context struct {
	Name    string      `yaml:"name,omitempty"`
	Context ContextInfo `yaml:"context,omitempty"`
}

Context represents a kubeconfig context

type ContextInfo

type ContextInfo struct {
	Cluster   string `yaml:"cluster,omitempty"`
	Namespace string `yaml:"namespace,omitempty"`
	User      string `yaml:"user,omitempty"`
}

ContextInfo represents a kubeconfig contextinfo

type KubeConfig

type KubeConfig struct {
	APIVersion     string                 `yaml:"apiVersion,omitempty"`
	Kind           string                 `yaml:"kind,omitempty"`
	Clusters       []Cluster              `yaml:"clusters,omitempty"`
	Contexts       []Context              `yaml:"contexts,omitempty"`
	CurrentContext string                 `yaml:"current-context,omitempty"`
	Preferences    map[string]interface{} `yaml:"preferences,omitempty"`
	Users          []User                 `yaml:"users,omitempty"`
}

KubeConfig represents a kubeconfig

type Master

type Master struct {
	Hostname string
	IPs      []net.IP
	Port     int16
	// contains filtered or unexported fields
}

Master represents an OpenShift master configuration

type User

type User struct {
	Name string   `yaml:"name,omitempty"`
	User UserInfo `yaml:"user,omitempty"`
}

User represents a kubeconfig user

type UserInfo

type UserInfo struct {
	ClientCertificateData string `yaml:"client-certificate-data,omitempty"`
	ClientKeyData         string `yaml:"client-key-data,omitempty"`
}

UserInfo represents a kubeconfig userinfo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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