-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve bundle digests when DepV2 is enabled (#3071)
Signed-off-by: Kim Christensen <kimworking@gmail.com> Co-authored-by: schristoff <28318173+schristoff@users.noreply.github.com>
- Loading branch information
1 parent
3d5654c
commit 2bb8be0
Showing
6 changed files
with
276 additions
and
1 deletion.
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
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
33 changes: 33 additions & 0 deletions
33
pkg/porter/testdata/generateManifest/expected-result-depv2-no-default-ref.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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
schemaVersion: 1.0.0-alpha.1 | ||
name: porter-hello | ||
version: 0.1.0 | ||
description: "An example Porter configuration" | ||
registry: "localhost:5000" | ||
mixins: | ||
- exec | ||
dependencies: | ||
requires: | ||
- name: mysql | ||
bundle: | ||
reference: getporter/mysql | ||
- name: mysqlLatest | ||
bundle: | ||
reference: getporter/mysql:latest | ||
install: | ||
- exec: | ||
description: "Install Hello World" | ||
command: ./helpers.sh | ||
arguments: | ||
- install | ||
status: | ||
- exec: | ||
description: "World Status" | ||
command: ./helpers.sh | ||
arguments: | ||
- status | ||
uninstall: | ||
- exec: | ||
description: "Uninstall Hello World" | ||
command: ./helpers.sh | ||
arguments: | ||
- uninstall |
30 changes: 30 additions & 0 deletions
30
pkg/porter/testdata/generateManifest/expected-result-depv2.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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
schemaVersion: 1.0.0-alpha.1 | ||
name: porter-hello | ||
version: 0.1.0 | ||
description: "An example Porter configuration" | ||
registry: "localhost:5000" | ||
mixins: | ||
- exec | ||
dependencies: | ||
requires: | ||
- name: mysql | ||
bundle: | ||
reference: getporter/mysql@sha256:3abc67269f59e3ed824e811a1ff1ee64f0d44c0218efefada57a4bebc2d7ef6f | ||
install: | ||
- exec: | ||
description: "Install Hello World" | ||
command: ./helpers.sh | ||
arguments: | ||
- install | ||
status: | ||
- exec: | ||
description: "World Status" | ||
command: ./helpers.sh | ||
arguments: | ||
- status | ||
uninstall: | ||
- exec: | ||
description: "Uninstall Hello World" | ||
command: ./helpers.sh | ||
arguments: | ||
- uninstall |
33 changes: 33 additions & 0 deletions
33
pkg/porter/testdata/generateManifest/original-depv2-no-default-ref.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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
schemaVersion: 1.0.0-alpha.1 | ||
name: porter-hello | ||
version: 0.1.0 | ||
description: "An example Porter configuration" | ||
registry: "localhost:5000" | ||
mixins: | ||
- exec | ||
dependencies: | ||
requires: | ||
- name: mysql | ||
bundle: | ||
reference: getporter/mysql | ||
- name: mysqlLatest | ||
bundle: | ||
reference: getporter/mysql:latest | ||
install: | ||
- exec: | ||
description: "Install Hello World" | ||
command: ./helpers.sh | ||
arguments: | ||
- install | ||
status: | ||
- exec: | ||
description: "World Status" | ||
command: ./helpers.sh | ||
arguments: | ||
- status | ||
uninstall: | ||
- exec: | ||
description: "Uninstall Hello World" | ||
command: ./helpers.sh | ||
arguments: | ||
- uninstall |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
schemaVersion: 1.0.0-alpha.1 | ||
name: porter-hello | ||
version: 0.1.0 | ||
description: "An example Porter configuration" | ||
registry: "localhost:5000" | ||
mixins: | ||
- exec | ||
dependencies: | ||
requires: | ||
- name: mysql | ||
bundle: | ||
reference: getporter/mysql:v0.1.4 | ||
install: | ||
- exec: | ||
description: "Install Hello World" | ||
command: ./helpers.sh | ||
arguments: | ||
- install | ||
status: | ||
- exec: | ||
description: "World Status" | ||
command: ./helpers.sh | ||
arguments: | ||
- status | ||
uninstall: | ||
- exec: | ||
description: "Uninstall Hello World" | ||
command: ./helpers.sh | ||
arguments: | ||
- uninstall |