Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit 83a8053

Browse files
Merge pull request #1620 from ibuildthecloud/appnamespace
Make app.namespace point to app.Status.Namespace
2 parents f11a7bc + a862fd4 commit 83a8053

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pkg/secrets/interpolation.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,13 @@ func (i *Interpolator) resolveApp(keyName string) (string, bool, error) {
143143
case "name":
144144
return i.app.Name, true, nil
145145
case "project":
146-
fallthrough
147-
case "namespace":
146+
project := i.app.Labels[labels.AcornProjectName]
147+
if project != "" {
148+
return project, true, nil
149+
}
148150
return i.app.Namespace, true, nil
151+
case "namespace":
152+
return i.app.Status.Namespace, true, nil
149153
case "image":
150154
if tags.IsLocalReference(i.app.Status.AppImage.ID) {
151155
return i.app.Status.AppImage.ID, true, nil

0 commit comments

Comments
 (0)