-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP: Continue on error test * Update continue-on-error test
- Loading branch information
Showing
6 changed files
with
85 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: kpt.dev/v1alpha1 | ||
kind: Kptfile | ||
metadata: | ||
name: continue-on-error | ||
packageMetadata: | ||
shortDescription: sample description |
34 changes: 34 additions & 0 deletions
34
e2e/live/testdata/continue-on-error/inventory-template.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,34 @@ | ||
# NOTE: auto-generated. Some fields should NOT be modified. | ||
# Date: 2021-01-15 15:23:11 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-10220562 | ||
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: 3da10960-c1d8-46ae-988e-f330acdc8e15 |
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,7 @@ | ||
# Copyright 2019 The Kubernetes Authors. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: test-namespace |
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,13 @@ | ||
# This pod description should be valid and is expected to successfully deploy | ||
|
||
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 |
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,16 @@ | ||
# This pod definition has errors and will fail to deploy | ||
|
||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
# It is invalid for a pod to be named with a capital letter | ||
# Expected error: | ||
# The Pod "pod-B" is invalid: metadata.name: Invalid value: "pod-B" | ||
name: pod-B | ||
namespace: test-namespace | ||
labels: | ||
name: test-pod-label-foo | ||
spec: | ||
containers: | ||
- name: kubernetes-pause | ||
image: k8s.gcr.io/pause:2.0 |