Skip to content

Commit

Permalink
renamed e2e testcase to fix mysterious git submodule bug (#2157)
Browse files Browse the repository at this point in the history
  • Loading branch information
droot committed Jun 4, 2021
1 parent 3c5c652 commit 98e3b67
Show file tree
Hide file tree
Showing 8 changed files with 120 additions and 1 deletion.
1 change: 0 additions & 1 deletion e2e/testdata/fn-render/fnconfig-cannot-refer-subpkg
Submodule fnconfig-cannot-refer-subpkg deleted from 17877d
@@ -0,0 +1,20 @@
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

exitCode: 1
stdErr: |
Kptfile is invalid:
Field: `pipeline.mutators[0].configPath`
Value: "db/labelconfig.yaml"
Reason: functionConfig must exist in the current package
@@ -0,0 +1 @@
.expected
8 changes: 8 additions & 0 deletions e2e/testdata/fn-render/fnconfig-cannot-refer-subpkgs/Kptfile
@@ -0,0 +1,8 @@
apiVersion: kpt.dev/v1alpha2
kind: Kptfile
metadata:
name: app-with-db
pipeline:
mutators:
- image: gcr.io/kpt-fn/set-label:unstable
configPath: db/labelconfig.yaml
@@ -0,0 +1,4 @@
apiVersion: kpt.dev/v1alpha2
kind: Kptfile
metadata:
name: db
@@ -0,0 +1,19 @@
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: v1
kind: ConfigMap
metadata:
name: label-config
data:
tier: db
@@ -0,0 +1,29 @@
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: db
namespace: staging
labels:
tier: db
spec:
replicas: 3
selector:
matchLabels:
tier: db
template:
metadata:
labels:
tier: db
@@ -0,0 +1,39 @@
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
namespace: staging
labels:
tier: db
spec:
replicas: 3
selector:
matchLabels:
tier: db
template:
metadata:
labels:
tier: db
---
apiVersion: custom.io/v1
kind: Custom
metadata:
name: custom
namespace: staging
labels:
tier: db
spec:
image: nginx:1.2.3

0 comments on commit 98e3b67

Please sign in to comment.