merge

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SatelliteConfigurations

func SatelliteConfigurations(nodeLabels map[string]string, configs ...piraeusv1.LinstorSatelliteConfiguration) *piraeusv1.LinstorSatelliteConfiguration

SatelliteConfigurations merges all configurations that apply based on the given node labels

Merging happens by: * Concatenating all patches in the matching configs * Merging all properties by name. A property defined in a "later" config overrides previous property definitions. * Merging all storage pools by name. A storage pool defined in a "later" config overrides previous property definitions.

func SubsetOf

func SubsetOf(sub, super map[string]string) bool

SubsetOf returns true if all key and values in sub also appear in super.

Types

This section is empty.

Jump to

Keyboard shortcuts

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