-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pull tests instead of testim for the tag-and-digest test (#4129)
- Loading branch information
Showing
77 changed files
with
2,051 additions
and
51 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
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
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,12 @@ | ||
Name: test tag and digest no rewrite | ||
PullOptions: | ||
Namespace: app-namespace | ||
ExcludeAdminConsole: true | ||
IsAirgap: true | ||
Silent: true | ||
LocalPath: cases/taganddigest-norewrite/upstream | ||
RootDir: cases/taganddigest-norewrite/results | ||
SharedPassword: dummy-pass | ||
RewriteImages: false | ||
Downstreams: | ||
- this-cluster |
28 changes: 28 additions & 0 deletions
28
pkg/tests/pull/cases/taganddigest-norewrite/upstream/nginx-digest-multi-arch.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,28 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: example-nginx-digest-multi-arch | ||
labels: | ||
app: example | ||
component: nginx-digest-multi-arch | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: example | ||
component: nginx-digest-multi-arch | ||
template: | ||
metadata: | ||
labels: | ||
app: example | ||
component: nginx-digest-multi-arch | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx@sha256:790711e34858c9b0741edffef6ed3d8199d8faa33f2870dea5db70f16384df79 | ||
resources: | ||
limits: | ||
memory: '256Mi' | ||
cpu: '500m' | ||
requests: | ||
memory: '32Mi' | ||
cpu: '100m' |
28 changes: 28 additions & 0 deletions
28
pkg/tests/pull/cases/taganddigest-norewrite/upstream/nginx-digest-single-arch.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,28 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: example-nginx-digest-single-arch | ||
labels: | ||
app: example | ||
component: nginx-digest-single-arch | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: example | ||
component: nginx-digest-single-arch | ||
template: | ||
metadata: | ||
labels: | ||
app: example | ||
component: nginx-digest-single-arch | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx@sha256:f26fbadb0acab4a21ecb4e337a326907e61fbec36c9a9b52e725669d99ed1261 | ||
resources: | ||
limits: | ||
memory: '256Mi' | ||
cpu: '500m' | ||
requests: | ||
memory: '32Mi' | ||
cpu: '100m' |
28 changes: 28 additions & 0 deletions
28
pkg/tests/pull/cases/taganddigest-norewrite/upstream/nginx-tag-1-23.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,28 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: example-nginx-tag-1-23 | ||
labels: | ||
app: example | ||
component: nginx-tag-1-23 | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: example | ||
component: nginx-tag-1-23 | ||
template: | ||
metadata: | ||
labels: | ||
app: example | ||
component: nginx-tag-1-23 | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx:1.23 | ||
resources: | ||
limits: | ||
memory: '256Mi' | ||
cpu: '500m' | ||
requests: | ||
memory: '32Mi' | ||
cpu: '100m' |
28 changes: 28 additions & 0 deletions
28
pkg/tests/pull/cases/taganddigest-norewrite/upstream/nginx-tag-1.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,28 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: example-nginx-tag-1 | ||
labels: | ||
app: example | ||
component: nginx-tag-1 | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: example | ||
component: nginx-tag-1 | ||
template: | ||
metadata: | ||
labels: | ||
app: example | ||
component: nginx-tag-1 | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx:1 | ||
resources: | ||
limits: | ||
memory: '256Mi' | ||
cpu: '500m' | ||
requests: | ||
memory: '32Mi' | ||
cpu: '100m' |
28 changes: 28 additions & 0 deletions
28
pkg/tests/pull/cases/taganddigest-norewrite/upstream/nginx-tag-digest.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,28 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: example-nginx-tag-digest | ||
labels: | ||
app: example | ||
component: nginx-tag-digest | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: example | ||
component: nginx-tag-digest | ||
template: | ||
metadata: | ||
labels: | ||
app: example | ||
component: nginx-tag-digest | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx:1@sha256:f26fbadb0acab4a21ecb4e337a326907e61fbec36c9a9b52e725669d99ed1261 | ||
resources: | ||
limits: | ||
memory: '256Mi' | ||
cpu: '500m' | ||
requests: | ||
memory: '32Mi' | ||
cpu: '100m' |
8 changes: 8 additions & 0 deletions
8
pkg/tests/pull/cases/taganddigest-norewrite/upstream/replicated-app.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,8 @@ | ||
apiVersion: kots.io/v1beta1 | ||
kind: Application | ||
metadata: | ||
name: my-app | ||
spec: | ||
title: My App | ||
releaseNotes: | | ||
release notes |
47 changes: 47 additions & 0 deletions
47
pkg/tests/pull/cases/taganddigest-norewrite/upstream/userdata/license.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,47 @@ | ||
apiVersion: kots.io/v1beta1 | ||
kind: License | ||
metadata: | ||
name: testcustomer | ||
spec: | ||
appSlug: my-app | ||
channelID: 1vusIYZLAVxMG6q760OJmRKj5i5 | ||
channelName: My Channel | ||
customerName: Test Customer | ||
endpoint: https://replicated.app | ||
entitlements: | ||
bool_field: | ||
title: Bool Field | ||
value: true | ||
valueType: Boolean | ||
expires_at: | ||
description: License Expiration | ||
title: Expiration | ||
value: "2030-07-27T00:00:00Z" | ||
valueType: String | ||
hidden_field: | ||
isHidden: true | ||
title: Hidden Field | ||
value: this is secret | ||
valueType: String | ||
int_field: | ||
title: Int Field | ||
value: 123 | ||
valueType: Integer | ||
string_field: | ||
title: StringField | ||
value: single line text | ||
valueType: String | ||
text_field: | ||
title: Text Field | ||
value: |- | ||
multi | ||
line | ||
text | ||
valueType: Text | ||
isAirgapSupported: true | ||
isGitOpsSupported: true | ||
isSnapshotSupported: true | ||
licenseID: 1vusOokxAVp1tkRGuyxnF23PJcq | ||
licenseSequence: 7 | ||
licenseType: prod | ||
signature: eyJsaWNl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WFRtaGFiVVV5VGtSWmFXWlJQVDBpZlE9PSJ9 |
11 changes: 11 additions & 0 deletions
11
pkg/tests/pull/cases/taganddigest-norewrite/wantResults/base/kustomization.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,11 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
metadata: | ||
annotations: | ||
kots.io/kustomization: base | ||
resources: | ||
- nginx-digest-multi-arch.yaml | ||
- nginx-digest-single-arch.yaml | ||
- nginx-tag-1-23.yaml | ||
- nginx-tag-1.yaml | ||
- nginx-tag-digest.yaml |
28 changes: 28 additions & 0 deletions
28
pkg/tests/pull/cases/taganddigest-norewrite/wantResults/base/nginx-digest-multi-arch.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,28 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: example-nginx-digest-multi-arch | ||
labels: | ||
app: example | ||
component: nginx-digest-multi-arch | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: example | ||
component: nginx-digest-multi-arch | ||
template: | ||
metadata: | ||
labels: | ||
app: example | ||
component: nginx-digest-multi-arch | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx@sha256:790711e34858c9b0741edffef6ed3d8199d8faa33f2870dea5db70f16384df79 | ||
resources: | ||
limits: | ||
memory: '256Mi' | ||
cpu: '500m' | ||
requests: | ||
memory: '32Mi' | ||
cpu: '100m' |
28 changes: 28 additions & 0 deletions
28
pkg/tests/pull/cases/taganddigest-norewrite/wantResults/base/nginx-digest-single-arch.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,28 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: example-nginx-digest-single-arch | ||
labels: | ||
app: example | ||
component: nginx-digest-single-arch | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: example | ||
component: nginx-digest-single-arch | ||
template: | ||
metadata: | ||
labels: | ||
app: example | ||
component: nginx-digest-single-arch | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx@sha256:f26fbadb0acab4a21ecb4e337a326907e61fbec36c9a9b52e725669d99ed1261 | ||
resources: | ||
limits: | ||
memory: '256Mi' | ||
cpu: '500m' | ||
requests: | ||
memory: '32Mi' | ||
cpu: '100m' |
28 changes: 28 additions & 0 deletions
28
pkg/tests/pull/cases/taganddigest-norewrite/wantResults/base/nginx-tag-1-23.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,28 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: example-nginx-tag-1-23 | ||
labels: | ||
app: example | ||
component: nginx-tag-1-23 | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: example | ||
component: nginx-tag-1-23 | ||
template: | ||
metadata: | ||
labels: | ||
app: example | ||
component: nginx-tag-1-23 | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx:1.23 | ||
resources: | ||
limits: | ||
memory: '256Mi' | ||
cpu: '500m' | ||
requests: | ||
memory: '32Mi' | ||
cpu: '100m' |
Oops, something went wrong.