This repository has been archived by the owner on Mar 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tests to account for new ServiceAccount generation logic
Signed-off-by: tylerslaton <mtslaton1@gmail.com>
- Loading branch information
1 parent
a6d4d89
commit 1b0e448
Showing
100 changed files
with
345 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
pkg/controller/appdefinition/testdata/cronjob/expected.yaml.d/serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: acorn | ||
name: oneimage | ||
namespace: app-created-namespace | ||
labels: | ||
acorn.io/app-name: app-name | ||
acorn.io/app-namespace: app-namespace | ||
acorn.io/managed: "true" | ||
acorn.io/job-name: "oneimage" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 31 additions & 1 deletion
32
pkg/controller/appdefinition/testdata/depends/expected.yaml.d/serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,39 @@ | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: acorn | ||
name: container-name | ||
namespace: app-created-namespace | ||
labels: | ||
acorn.io/app-name: app-name | ||
acorn.io/app-namespace: app-namespace | ||
acorn.io/managed: "true" | ||
acorn.io/container-name: container-name | ||
annotations: | ||
acorn.io/dep-names: db | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: container-name | ||
namespace: app-created-namespace | ||
labels: | ||
acorn.io/app-name: app-name | ||
acorn.io/app-namespace: app-namespace | ||
acorn.io/managed: "true" | ||
acorn.io/container-name: container-name | ||
annotations: | ||
acorn.io/dep-names: db | ||
--- | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: web | ||
namespace: app-created-namespace | ||
labels: | ||
acorn.io/app-name: app-name | ||
acorn.io/app-namespace: app-namespace | ||
acorn.io/managed: "true" | ||
acorn.io/container-name: web | ||
annotations: | ||
acorn.io/dep-names: container-name | ||
apply.acorn.io/create: "false" | ||
apply.acorn.io/update: "false" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 13 additions & 1 deletion
14
pkg/controller/appdefinition/testdata/deployspec-stop/expected.yaml.d/serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: acorn | ||
name: oneimage | ||
namespace: app-created-namespace | ||
labels: | ||
acorn.io/app-name: app-name | ||
acorn.io/app-namespace: app-namespace | ||
acorn.io/managed: "true" | ||
acorn.io/container-name: oneimage | ||
--- | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: buildimage | ||
namespace: app-created-namespace | ||
labels: | ||
acorn.io/app-name: app-name | ||
acorn.io/app-namespace: app-namespace | ||
acorn.io/managed: "true" | ||
acorn.io/container-name: buildimage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 13 additions & 1 deletion
14
pkg/controller/appdefinition/testdata/deployspec/expected.yaml.d/serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: acorn | ||
name: oneimage | ||
namespace: app-created-namespace | ||
labels: | ||
acorn.io/app-name: app-name | ||
acorn.io/app-namespace: app-namespace | ||
acorn.io/managed: "true" | ||
acorn.io/container-name: oneimage | ||
--- | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: buildimage | ||
namespace: app-created-namespace | ||
labels: | ||
acorn.io/app-name: app-name | ||
acorn.io/app-namespace: app-namespace | ||
acorn.io/managed: "true" | ||
acorn.io/container-name: buildimage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
pkg/controller/appdefinition/testdata/files-bug/expected.yaml.d/serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: acorn | ||
name: oneimage | ||
namespace: app-created-namespace | ||
labels: | ||
acorn.io/app-name: app-name | ||
acorn.io/app-namespace: app-namespace | ||
acorn.io/managed: "true" | ||
acorn.io/container-name: oneimage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
pkg/controller/appdefinition/testdata/files/expected.yaml.d/serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: acorn | ||
name: oneimage | ||
namespace: app-created-namespace | ||
labels: | ||
acorn.io/app-name: app-name | ||
acorn.io/app-namespace: app-namespace | ||
acorn.io/managed: "true" | ||
acorn.io/container-name: oneimage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
pkg/controller/appdefinition/testdata/globalenv/expected.yaml.d/serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: acorn | ||
name: container-name | ||
namespace: app-created-namespace | ||
labels: | ||
acorn.io/app-name: app-name | ||
acorn.io/app-namespace: app-namespace | ||
acorn.io/managed: "true" | ||
acorn.io/container-name: container-name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 13 additions & 1 deletion
14
pkg/controller/appdefinition/testdata/ingress/basic/expected.yaml.d/serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: acorn | ||
name: oneimage | ||
namespace: app-created-namespace | ||
labels: | ||
acorn.io/app-name: app-name | ||
acorn.io/app-namespace: app-namespace | ||
acorn.io/managed: "true" | ||
acorn.io/container-name: oneimage | ||
--- | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: buildimage | ||
namespace: app-created-namespace | ||
labels: | ||
acorn.io/app-name: app-name | ||
acorn.io/app-namespace: app-namespace | ||
acorn.io/managed: "true" | ||
acorn.io/container-name: buildimage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...ller/appdefinition/testdata/ingress/clusterdomainport/expected.yaml.d/serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: acorn | ||
name: oneimage | ||
namespace: app-created-namespace | ||
labels: | ||
acorn.io/app-name: app-name | ||
acorn.io/app-namespace: app-namespace | ||
acorn.io/managed: "true" | ||
acorn.io/container-name: oneimage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 9 additions & 2 deletions
11
pkg/controller/appdefinition/testdata/ingress/labels/expected.yaml.d/serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: acorn | ||
name: con1 | ||
namespace: app-created-namespace | ||
labels: | ||
acorn.io/app-name: app-name | ||
acorn.io/app-namespace: app-namespace | ||
acorn.io/app-name: app-name | ||
acorn.io/container-name: con1 | ||
acorn.io/managed: "true" | ||
allconsl1: value | ||
conl1: value | ||
conl3: value | ||
globall1: value | ||
globall2: value | ||
annotations: | ||
allconsa1: value | ||
cona1: value | ||
cona3: value | ||
globala1: value | ||
globala2: value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 14 additions & 1 deletion
15
...controller/appdefinition/testdata/ingress/letsencrypt/expected.yaml.d/serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: acorn | ||
name: app1 | ||
namespace: app-created-namespace | ||
labels: | ||
acorn.io/app-name: app-name | ||
acorn.io/app-namespace: app-namespace | ||
acorn.io/managed: "true" | ||
acorn.io/container-name: app1 | ||
--- | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: app2 | ||
namespace: app-created-namespace | ||
labels: | ||
acorn.io/app-name: app-name | ||
acorn.io/app-namespace: app-namespace | ||
acorn.io/managed: "true" | ||
acorn.io/container-name: app2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletion
9
...roller/appdefinition/testdata/ingress/prefix/prefix-1/expected.yaml.d/serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: acorn | ||
name: con1 | ||
namespace: app-created-namespace | ||
labels: | ||
acorn.io/app-name: app-name | ||
acorn.io/app-namespace: app-namespace | ||
acorn.io/container-name: con1 | ||
acorn.io/managed: "true" | ||
allconsl1: value | ||
conl1: value | ||
conl3: value | ||
globall1: value | ||
globall2: value | ||
annotations: | ||
allconsa1: value | ||
cona1: value | ||
cona3: value | ||
globala1: value | ||
globala2: value |
Oops, something went wrong.