Skip to content

Commit

Permalink
kpt live end-to-end test script
Browse files Browse the repository at this point in the history
  • Loading branch information
seans3 committed Nov 20, 2020
1 parent 6de8ff4 commit 8dca511
Show file tree
Hide file tree
Showing 32 changed files with 894 additions and 1 deletion.
463 changes: 463 additions & 0 deletions e2e/live/end-to-end-test.sh

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions e2e/live/testdata/Kptfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kpt.dev/v1alpha1
kind: Kptfile
metadata:
name: test1
upstream:
type: git
git:
commit: 786b898857bd7e9647c229d5f39b0be4de86c915
repo: git@github.com:yuwenma/blueprint-helloworld
directory: /
ref: master

34 changes: 34 additions & 0 deletions e2e/live/testdata/inventory-template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# NOTE: auto-generated. Some fields should NOT be modified.
# Date: 2020-11-19 12:50:49 PST
#
# Contains the "inventory object" template ConfigMap.
# When this object is applied, it is handled specially,
# storing the metadata of all the other objects applied.
# This object and its stored inventory is subsequently
# used to calculate the set of objects to automatically
# delete (prune), when an object is omitted from further
# applies. When applied, this "inventory object" is also
# used to identify the entire set of objects to delete.
#
# NOTE: The name of this inventory template file
# does NOT have any impact on group-related functionality
# such as deletion or pruning.
#
apiVersion: v1
kind: ConfigMap
metadata:
# DANGER: Do not change the inventory object namespace.
# Changing the namespace will cause a loss of continuity
# with previously applied grouped objects. Set deletion
# and pruning functionality will be impaired.
namespace: test-rg-namespace
# NOTE: The name of the inventory object does NOT have
# any impact on group-related functionality such as
# deletion or pruning.
name: inventory-26306433
labels:
# DANGER: Do not change the value of this label.
# Changing this value will cause a loss of continuity
# with previously applied grouped objects. Set deletion
# and pruning functionality will be impaired.
cli-utils.sigs.k8s.io/inventory-id: 46d8946c-c1fa-4e1d-9357-b37fb9bae25f
15 changes: 15 additions & 0 deletions e2e/live/testdata/migrate-1/Kptfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: kpt.dev/v1alpha1
kind: Kptfile
metadata:
name: test1
upstream:
type: git
git:
commit: 786b898857bd7e9647c229d5f39b0be4de86c915
repo: git@github.com:yuwenma/blueprint-helloworld
directory: /
ref: master
inventory:
namespace: test-rg-namespace
name: inventory-62308923
inventoryID: bad7c50de3c41e2e801032dbe4cdc111102d9ae0-1605844107990241514
7 changes: 7 additions & 0 deletions e2e/live/testdata/migrate-1/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: Namespace
metadata:
name: test-rg-namespace
14 changes: 14 additions & 0 deletions e2e/live/testdata/migrate-1/pod-a.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: Pod
metadata:
name: pod-a
namespace: test-rg-namespace
labels:
name: test-pod-label-foo
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:2.0
14 changes: 14 additions & 0 deletions e2e/live/testdata/migrate-1/pod-b.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: Pod
metadata:
name: pod-b
namespace: test-rg-namespace
labels:
name: test-pod-label
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:2.0
14 changes: 14 additions & 0 deletions e2e/live/testdata/migrate-1/pod-c.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: Pod
metadata:
name: pod-c
namespace: test-rg-namespace
labels:
name: test-pod-label
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:2.0
15 changes: 15 additions & 0 deletions e2e/live/testdata/migrate-2/Kptfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: kpt.dev/v1alpha1
kind: Kptfile
metadata:
name: test1
upstream:
type: git
git:
commit: 786b898857bd7e9647c229d5f39b0be4de86c915
repo: git@github.com:yuwenma/blueprint-helloworld
directory: /
ref: master
inventory:
namespace: test-rg-namespace
name: inventory-62308923
inventoryID: bad7c50de3c41e2e801032dbe4cdc111102d9ae0-1605844107990241514
7 changes: 7 additions & 0 deletions e2e/live/testdata/migrate-2/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: Namespace
metadata:
name: test-rg-namespace
14 changes: 14 additions & 0 deletions e2e/live/testdata/migrate-2/pod-b.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: Pod
metadata:
name: pod-b
namespace: test-rg-namespace
labels:
name: test-pod-label
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:2.0
14 changes: 14 additions & 0 deletions e2e/live/testdata/migrate-2/pod-c.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: Pod
metadata:
name: pod-c
namespace: test-rg-namespace
labels:
name: test-pod-label
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:2.0
14 changes: 14 additions & 0 deletions e2e/live/testdata/migrate-2/pod-d.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: Pod
metadata:
name: pod-d
namespace: test-rg-namespace
labels:
name: test-pod-label-foo
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:2.0
15 changes: 15 additions & 0 deletions e2e/live/testdata/migrate-3/Kptfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: kpt.dev/v1alpha1
kind: Kptfile
metadata:
name: test1
upstream:
type: git
git:
commit: 786b898857bd7e9647c229d5f39b0be4de86c915
repo: git@github.com:yuwenma/blueprint-helloworld
directory: /
ref: master
inventory:
namespace: test-rg-namespace
name: inventory-71512828
inventoryID: 94885c00356ee5beb002a465801e7fa7df4f0f69-1605818723418805142
7 changes: 7 additions & 0 deletions e2e/live/testdata/migrate-3/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: Namespace
metadata:
name: test-rg-namespace
14 changes: 14 additions & 0 deletions e2e/live/testdata/migrate-3/pod-a.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: Pod
metadata:
name: pod-a
namespace: test-rg-namespace
labels:
name: test-pod-label-foo
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:2.0
14 changes: 14 additions & 0 deletions e2e/live/testdata/migrate-3/pod-b.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: Pod
metadata:
name: pod-b
namespace: test-rg-namespace
labels:
name: test-pod-label
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:2.0
14 changes: 14 additions & 0 deletions e2e/live/testdata/migrate-3/pod-c.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: Pod
metadata:
name: pod-c
namespace: test-rg-namespace
labels:
name: test-pod-label
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:2.0
12 changes: 12 additions & 0 deletions e2e/live/testdata/test-1/Kptfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kpt.dev/v1alpha1
kind: Kptfile
metadata:
name: test1
upstream:
type: git
git:
commit: 786b898857bd7e9647c229d5f39b0be4de86c915
repo: git@github.com:yuwenma/blueprint-helloworld
directory: /
ref: master

34 changes: 34 additions & 0 deletions e2e/live/testdata/test-1/inventory-template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# NOTE: auto-generated. Some fields should NOT be modified.
# Date: 2020-11-17 02:17:32 PST
#
# Contains the "inventory object" template ConfigMap.
# When this object is applied, it is handled specially,
# storing the metadata of all the other objects applied.
# This object and its stored inventory is subsequently
# used to calculate the set of objects to automatically
# delete (prune), when an object is omitted from further
# applies. When applied, this "inventory object" is also
# used to identify the entire set of objects to delete.
#
# NOTE: The name of this inventory template file
# does NOT have any impact on group-related functionality
# such as deletion or pruning.
#
apiVersion: v1
kind: ConfigMap
metadata:
# DANGER: Do not change the inventory object namespace.
# Changing the namespace will cause a loss of continuity
# with previously applied grouped objects. Set deletion
# and pruning functionality will be impaired.
namespace: test-namespace
# NOTE: The name of the inventory object does NOT have
# any impact on group-related functionality such as
# deletion or pruning.
name: inventory-40897991
labels:
# DANGER: Do not change the value of this label.
# Changing this value will cause a loss of continuity
# with previously applied grouped objects. Set deletion
# and pruning functionality will be impaired.
cli-utils.sigs.k8s.io/inventory-id: 0d433e0b-d9dd-4313-a58c-53f939a38fe1
7 changes: 7 additions & 0 deletions e2e/live/testdata/test-1/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: Namespace
metadata:
name: test-namespace
14 changes: 14 additions & 0 deletions e2e/live/testdata/test-1/pod-a.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: Pod
metadata:
name: pod-a
namespace: test-namespace
labels:
name: test-pod-label-foo
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:2.0
14 changes: 14 additions & 0 deletions e2e/live/testdata/test-1/pod-b.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: Pod
metadata:
name: pod-b
namespace: test-namespace
labels:
name: test-pod-label
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:2.0
14 changes: 14 additions & 0 deletions e2e/live/testdata/test-1/pod-c.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0

apiVersion: v1
kind: Pod
metadata:
name: pod-c
namespace: test-namespace
labels:
name: test-pod-label
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:2.0
12 changes: 12 additions & 0 deletions e2e/live/testdata/test-2/Kptfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kpt.dev/v1alpha1
kind: Kptfile
metadata:
name: test1
upstream:
type: git
git:
commit: 786b898857bd7e9647c229d5f39b0be4de86c915
repo: git@github.com:yuwenma/blueprint-helloworld
directory: /
ref: master

Loading

0 comments on commit 8dca511

Please sign in to comment.