Skip to content

Commit 062718a

Browse files
author
Otávio Fernandes
committed
Extending manifest to support Galaxy use-case.
1 parent 4fcfae2 commit 062718a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pkg/vault-handler/manifest.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,19 @@ type Manifest struct {
1111

1212
// Secrets map with group-name, metadata and secrets list.
1313
type Secrets struct {
14-
Path string `yaml:"path"`
15-
Data []SecretData `yaml:"data"`
14+
Path string `yaml:"path"` // vault path
15+
Type string `yaml:"type,omitempty"` // kubernetes secret type
16+
Data []SecretData `yaml:"data"` // secret entries
1617
}
1718

1819
// SecretData define a single secret in Vault, mapping to a regular file.
1920
type SecretData struct {
2021
Name string `yaml:"name"` // file name
21-
Extension string `yaml:"extension"` // file extension
22+
Extension string `yaml:"extension,omitempty"` // file extension
2223
Zip bool `yaml:"zip,omitempty"` // deal with zipped payload
2324
NameAsSubPath bool `yaml:"nameAsSubPath,omitempty"` // employ name as part of the path
25+
Key string `yaml:"key,omitempty"` // vault key
26+
FromEnv string `yaml:"fromEnv,omitempty"` // load payload from environment
2427
}
2528

2629
// NewManifest by parsing informed manifest file.

0 commit comments

Comments
 (0)