func()

in provider/secrets_manager_provider.go [46:61]


func (p *SecretsManagerProvider) GetSecretValues(
	ctx context.Context,
	descriptors []*SecretDescriptor,
	curMap map[string]*v1alpha1.ObjectVersion,
) (v []*SecretValue, errs error) {

	// Fetch each secret in order. If any secret fails we will return that secret's errors
	for _, descriptor := range descriptors {
		values, errs := p.fetchSecretManagerValue(ctx, descriptor, curMap)
		if values == nil {
			return nil, errs
		}
		v = append(v, values...)
	}
	return v, nil
}