Skip to content

Commit

Permalink
chore: rename to build_vars
Browse files Browse the repository at this point in the history
  • Loading branch information
avallete committed Nov 17, 2024
1 parent 727bd94 commit 45772ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/config/dynamic_env.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (v *vaultEnvProvider) validate() error {
return nil
}

func (v *vaultEnvProvider) Fetch(ctx context.Context, conn *pgx.Conn) (map[string]string, error) {
func (v *vaultEnvProvider) FetchBuild(ctx context.Context, conn *pgx.Conn) (map[string]string, error) {
result := make(map[string]string, len(v.StructuredBuildEnvVars))

// Build list of remote names to query
Expand Down
4 changes: 2 additions & 2 deletions pkg/config/dynamic_env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func TestVaultEnvProviderFetch(t *testing.T) {
[]interface{}{"another", "secret2"},
)

result, err := provider.Fetch(ctx, conn.MockClient(t))
result, err := provider.FetchBuild(ctx, conn.MockClient(t))
assert.NoError(t, err)
assert.Equal(t, map[string]string{
"LOCAL": "secret1",
Expand Down Expand Up @@ -154,7 +154,7 @@ func TestVaultEnvProviderFetch(t *testing.T) {
[]string{"remote", "missing"},
).Reply("SELECT 1", []interface{}{"remote", "secret1"})

result, err := provider.Fetch(ctx, conn.MockClient(t))
result, err := provider.FetchBuild(ctx, conn.MockClient(t))
assert.NoError(t, err)
assert.Equal(t, map[string]string{
"LOCAL": "secret1",
Expand Down

0 comments on commit 45772ad

Please sign in to comment.