MCPcopy Index your code
hub / github.com/hashicorp/vault / reloadConfigFiles

Method reloadConfigFiles

command/server.go:1909–1930  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1907}
1908
1909func (c *ServerCommand) reloadConfigFiles() (*server.Config, []configutil.ConfigError, error) {
1910 var config *server.Config
1911 var configErrors []configutil.ConfigError
1912 for _, path := range c.flagConfigs {
1913 // don't care about HCL duplicate attributes here on reloading
1914 // TODO (HCL_DUP_KEYS_DEPRECATION): go back to server.LoadConfig and remove duplicate when deprecation is done
1915 current, _, err := server.LoadConfigCheckDuplicate(path)
1916 if err != nil {
1917 return nil, nil, err
1918 }
1919
1920 configErrors = append(configErrors, current.Validate(path)...)
1921
1922 if config == nil {
1923 config = current
1924 } else {
1925 config = config.Merge(current)
1926 }
1927 }
1928
1929 return config, configErrors, nil
1930}
1931
1932func (c *ServerCommand) configureSeals(ctx context.Context, config *server.Config, backend physical.Backend, infoKeys []string, info map[string]string) (*SetSealResponse, io.Reader, error) {
1933 existingSealGenerationInfo, err := vault.PhysicalSealGenInfo(ctx, backend)

Callers 2

RunMethod · 0.95

Calls 3

MergeMethod · 0.95
LoadConfigCheckDuplicateFunction · 0.92
ValidateMethod · 0.65

Tested by

no test coverage detected