Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiola committed Jul 25, 2024
1 parent cf832f8 commit 9abf874
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- complete rewrite of the cli
- changed interpolation implementation for future improvements
- use configmap instead of secret as inventory storage
- update to go 1.22.5

### Added

Expand Down
4 changes: 2 additions & 2 deletions pkg/extensions/externalsecretmutator.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ func externalSecretStoreKey(kind, name, namespace string) string {
}

// annotateExternalSecret mutate the ExternalSecret obj with the depends-on annotation with all the stores
// referrend inside it.
// referred inside it.
func (m *externalSecretsMutator) annotateExternalSecret(obj *unstructured.Unstructured) error {
extsec := new(extsecv1beta1.ExternalSecret)
if err := runtime.DefaultUnstructuredConverter.FromUnstructured(obj.Object, extsec); err != nil {
return err
}
stores := make(sets.Set[resource.ObjectMetadata])

// check if there is a default secret store set for all external secert
// check if there is a default secret store set for all external secret
if len(extsec.Spec.SecretStoreRef.Name) != 0 {
storeKey := externalSecretStoreKey(extsec.Spec.SecretStoreRef.Kind, extsec.Spec.SecretStoreRef.Name, extsec.Namespace)
if obj, found := m.secretsStores[storeKey]; found {
Expand Down
2 changes: 1 addition & 1 deletion pkg/extensions/externalsecretmutator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func TestExternalSecretMutatorCanHandleResource(t *testing.T) {
obj *metav1.PartialObjectMetadata
expectedResult bool
}{
"empty external secret map return alway false": {
"empty external secret map always returns false": {
externalSecretMap: make(map[string]*unstructured.Unstructured),
expectedResult: false,
},
Expand Down

0 comments on commit 9abf874

Please sign in to comment.