bminventory

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceKindHost    = "Host"
	ResourceKindCluster = "Cluster"
)
View Source
const ConsoleUrlPrefix = "https://console-openshift-console.apps"
View Source
const DefaultUser = "kubeadmin"

Variables

View Source
var (
	DefaultClusterNetworkCidr       = "10.128.0.0/14"
	DefaultClusterNetworkHostPrefix = int64(23)
	DefaultServiceNetworkCidr       = "172.30.0.0/16"
)

Functions

func NewBareMetalInventory

func NewBareMetalInventory(
	db *gorm.DB,
	log logrus.FieldLogger,
	hostApi host.API,
	clusterApi cluster.API,
	cfg Config,
	jobApi job.API,
	eventsHandler events.Handler,
	s3Client awsS3CLient.S3Client,
	metricApi metrics.API,
) *bareMetalInventory

Types

type Config

type Config struct {
	ImageBuilder        string `envconfig:"IMAGE_BUILDER" default:"quay.io/ocpmetal/installer-image-build:latest"`
	AgentDockerImg      string `envconfig:"AGENT_DOCKER_IMAGE" default:"quay.io/ocpmetal/agent:latest"`
	KubeconfigGenerator string `envconfig:"KUBECONFIG_GENERATE_IMAGE" default:"quay.io/ocpmetal/ignition-manifests-and-kubeconfig-generate:latest"` // TODO: update the latest once the repository has git workflow
	//[TODO] -  change the default of Releae image to "", once everyine wll update their environment
	ReleaseImage       string            `` /* 167-byte string literal not displayed */
	InventoryURL       string            `envconfig:"INVENTORY_URL" default:"10.35.59.36"`
	InventoryPort      string            `envconfig:"INVENTORY_PORT" default:"30485"`
	S3EndpointURL      string            `envconfig:"S3_ENDPOINT_URL" default:"http://10.35.59.36:30925"`
	S3Bucket           string            `envconfig:"S3_BUCKET" default:"test"`
	AwsAccessKeyID     string            `envconfig:"AWS_ACCESS_KEY_ID" default:"accessKey1"`
	AwsSecretAccessKey string            `envconfig:"AWS_SECRET_ACCESS_KEY" default:"verySecretKey1"`
	Namespace          string            `envconfig:"NAMESPACE" default:"assisted-installer"`
	UseK8s             bool              `envconfig:"USE_K8S" default:"true"` // TODO remove when jobs running deprecated
	BaseDNSDomains     map[string]string `envconfig:"BASE_DNS_DOMAINS" default:""`
	JobCPULimit        string            `envconfig:"JOB_CPU_LIMIT" default:"500m"`
	JobMemoryLimit     string            `envconfig:"JOB_MEMORY_LIMIT" default:"1000Mi"`
	JobCPURequests     string            `envconfig:"JOB_CPU_REQUESTS" default:"300m"`
	JobMemoryRequests  string            `envconfig:"JOB_MEMORY_REQUESTS" default:"400Mi"`
}

Jump to

Keyboard shortcuts

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