deployment

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NexusPortName is the name of the port on the service
	NexusPortName = "http"
	// DefaultHTTPPort is the default HTTP port
	DefaultHTTPPort = 80
)
View Source
const (
	// JvmArgsEnvKey is they env var for JVM args
	JvmArgsEnvKey = "INSTALL4J_ADD_VM_PARAMS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager is responsible for creating deployment-related resources, fetching deployed ones and comparing them Use with zero values will result in a panic. Use the NewManager function to get a properly initialized manager

func NewManager

func NewManager(nexus *v1alpha1.Nexus, client client.Client) *Manager

NewManager creates a deployment resources manager It is expected that the Nexus has been previously validated.

func (*Manager) GetCustomComparator

func (m *Manager) GetCustomComparator(t reflect.Type) func(deployed resource.KubernetesResource, requested resource.KubernetesResource) bool

GetCustomComparator returns the custom comp function used to compare a deployment-related resource Returns nil if there is none

func (*Manager) GetCustomComparators

func (m *Manager) GetCustomComparators() map[reflect.Type]func(deployed resource.KubernetesResource, requested resource.KubernetesResource) bool

GetCustomComparators returns all custom comp functions in a map indexed by the resource type Returns nil if there are none

func (*Manager) GetDeployedResources

func (m *Manager) GetDeployedResources() ([]resource.KubernetesResource, error)

GetDeployedResources returns the deployment-related resources deployed on the cluster

func (*Manager) GetRequiredResources

func (m *Manager) GetRequiredResources() ([]resource.KubernetesResource, error)

GetRequiredResources returns the resources initialized by the manager

Jump to

Keyboard shortcuts

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