settings

package
v0.0.0-...-74f0422 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DirPath               = "scalecsilogs"
	LogFile               = "ibm-spectrum-scale-csi.logs"
	PersistentLog         = "PERSISTENT_LOG"
	NodePublishMethod     = "NODEPUBLISH_METHOD"
	VolumeStatsCapability = "VOLUME_STATS_CAPABILITY"
	HostPath              = "/host/var/adm/ras/"
	RotateSize            = 1024
	DiscoverCGFileset     = "DISCOVER_CG_FILESET"
)
View Source
const (
	DefaultGuiPort int    = 443
	GuiProtocol    string = "https"
	ConfigMapFile  string = "/var/lib/ibm/config/spectrum-scale-config.json"
	// #nosec G101
	SecretBasePath  string = "/var/lib/ibm/" //nolint:gosec
	CertificatePath string = "/var/lib/ibm/ssl/public"
)

Variables

This section is empty.

Functions

func HandleSecretsAndCerts

func HandleSecretsAndCerts(ctx context.Context, cmap *ScaleSettingsConfigMap) error

Types

type Clusters

type Clusters struct {
	ID             string    `json:"id"`
	Primary        Primary   `json:"primary,omitempty"`
	SecureSslMode  bool      `json:"secureSslMode"`
	Cacert         string    `json:"cacert"`
	Secrets        string    `json:"secrets"`
	RestAPI        []RestAPI `json:"restApi"`
	PrimaryCluster string    `json:"primaryCluster"`

	MgmtUsername string
	MgmtPassword string
	CacertValue  *x509.CertPool
}

type Primary

type Primary struct {
	PrimaryFSDep  string `json:"primaryFS"`   // Deprecated
	PrimaryFs     string `json:"primaryFs"`   //Deprecated
	PrimaryFset   string `json:"primaryFset"` //Deprecated
	PrimaryCid    string `json:"primaryCid"`
	InodeLimitDep string `json:"inode-limit"`   // Deprecated
	InodeLimits   string `json:"inodeLimit"`    //Deprecated
	RemoteCluster string `json:"remoteCluster"` //Deprecated

	PrimaryFSMount      string
	PrimaryFsetLink     string
	SymlinkAbsolutePath string
	SymlinkRelativePath string
}

type RestAPI

type RestAPI struct {
	GuiHost string `json:"guiHost"`
	GuiPort int    `json:"guiPort"`
}

type ScaleSettingsConfigMap

type ScaleSettingsConfigMap struct {
	LocalScaleCluster string `json:"localScaleCluster"`
	Clusters          []Clusters
}

func LoadScaleConfigSettings

func LoadScaleConfigSettings(ctx context.Context) ScaleSettingsConfigMap

Jump to

Keyboard shortcuts

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