Documentation
¶
Index ¶
- Constants
- func ClearOptions(bd *fleet.BundleDeployment)
- func ClearValues(bundle *fleet.Bundle)
- func ExtractOptions(bd *fleet.BundleDeployment) (string, []byte, []byte, error)
- func ExtractValues(bundle *fleet.Bundle) (string, map[string][]byte, error)
- func HashOptions(bytes ...[]byte) string
- func HashValuesSecret(data map[string][]byte) (string, error)
- func SetOptions(bd *fleet.BundleDeployment, data map[string][]byte) error
- func SetValues(bundle *fleet.Bundle, data map[string][]byte) error
Constants ¶
const ( ValuesKey = "values" StagedValuesKey = "stagedValues" )
Variables ¶
This section is empty.
Functions ¶
func ClearOptions ¶
func ClearOptions(bd *fleet.BundleDeployment)
ClearOptions removes values from the new bundle deployment
func ClearValues ¶
ClearValues removes the values from a bundle. It mutates the bundle.
func ExtractOptions ¶
ExtractOptions extracts the values from options in a bundle deployment.
func ExtractValues ¶
ExtractValues extracts the values from the bundle and returns the values and a hash.
func HashOptions ¶
HashOptions hashes the bytes passed in. This is used to create a hash of the bundledeployment's helm options and staged helm options.
func HashValuesSecret ¶
HashValuesSecret hashes the data of a secret. This is used for the bundle values secret created by fleet apply to detect changes and trigger updates.
func SetOptions ¶
func SetOptions(bd *fleet.BundleDeployment, data map[string][]byte) error
SetOptions sets the values in the options of the bundle deployment from the data map. It mutates the bundle deployment. It sets the staged options, however they are not used by the agent.
Types ¶
This section is empty.