Documentation ¶
Overview ¶
Package release39 provides utilities related to generating all the necessary artifacts for an OpenShift deployment.
Index ¶
- func GetFileInfo(filename string) filesystem.Fileinfo
- func OpenShiftSetDefaultCerts(a *api.Properties, orchestratorName, clusterID string) (bool, error)
- type AzureConfig
- type CertAndKey
- type Cluster
- type ClusterInfo
- type Config
- func (c *Config) PrepareBootstrapKubeConfig() error
- func (c *Config) PrepareMasterCerts() error
- func (c *Config) PrepareMasterFiles() error
- func (c *Config) PrepareMasterKubeConfigs() error
- func (c *Config) WriteBootstrapCerts(fs filesystem.Writer) error
- func (c *Config) WriteBootstrapKubeConfig(fs filesystem.Writer) error
- func (c *Config) WriteMaster(fs filesystem.Writer) error
- func (c *Config) WriteMasterCerts(fs filesystem.Writer) error
- func (c *Config) WriteMasterFiles(fs filesystem.Writer) error
- func (c *Config) WriteMasterKeypair(fs filesystem.Writer) error
- func (c *Config) WriteMasterKubeConfigs(fs filesystem.Writer) error
- func (c *Config) WriteNode(fs filesystem.Writer) error
- func (c *Config) WriteNodeFiles(fs filesystem.Writer) error
- type Context
- type ContextInfo
- type KubeConfig
- type Master
- type User
- type UserInfo
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 }
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 ¶
PrepareBootstrapKubeConfig creates the node bootstrap kubeconfig
func (*Config) PrepareMasterCerts ¶
PrepareMasterCerts creates the master certs
func (*Config) PrepareMasterFiles ¶
PrepareMasterFiles creates the shared authentication and encryption secrets
func (*Config) PrepareMasterKubeConfigs ¶
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