Skip to content

Commit

Permalink
update conditional check in isBindable function
Browse files Browse the repository at this point in the history
  • Loading branch information
abe garcia committed Feb 28, 2024
1 parent cee5a83 commit 33677bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/kubernetes/artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func BindArtifacts(u *unstructured.Unstructured,
bindArtifact(u.Object, a, iterables(jsonPathDockerImageInitContainers)...)
bindArtifact(u.Object, a, iterables(jsonPathDockerImageInitContainersPod)...)
case artifact.TypeKubernetesConfigMap:
log.Println("bindable ", u.Object, a)
log.Println("is bindable ", u.Object, a)
bindArtifact(u.Object, a, iterables(jsonPathConfigMapVolume)...)
bindArtifact(u.Object, a, iterables(jsonPathConfigMapPodVolume)...)
bindArtifact(u.Object, a, iterables(jsonPathConfigMapProjectedVolume)...)
Expand Down Expand Up @@ -195,7 +195,7 @@ func bindArtifact(obj map[string]interface{}, a clouddriver.Artifact, paths ...s
}

func isBindable(artifact clouddriver.Artifact, account string) bool {
return artifact.Metadata.Account == account
return artifact.Metadata.Account == "" || artifact.Metadata.Account == account
}

// FindArtifacts lists all artifacts found in a given manifest.
Expand Down

0 comments on commit 33677bf

Please sign in to comment.