-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable pipeline packages with multiple files (#939)
* Enable pipeline packages with multiple files * Added tests * Initialize the variables to nil * Trying to read the archive file entry immediately * Fixed the pipeline packages used by the `TestPipelineAPI` test. Also added a failing test case. Will disable it in next commit. * Disabling the test for the UploadFile bug I've discovered * Fixed the pipeline name. * Removed the disabled extra test. * Addressed the feedback. * Removed the "header == nil" check (feedback). * Fixed typo * Addressed the PR feedback Added space before comment. Checking for the error again.
- Loading branch information
1 parent
825f64d
commit 2c2445d
Showing
11 changed files
with
114 additions
and
11 deletions.
There are no files selected for viewing
Binary file modified
BIN
+31 Bytes
(100%)
backend/src/apiserver/server/test/arguments_tarball/arguments.tar.gz
Binary file not shown.
Binary file modified
BIN
-38 Bytes
(95%)
backend/src/apiserver/server/test/arguments_zip/arguments-parameters.zip
Binary file not shown.
9 changes: 9 additions & 0 deletions
9
backend/src/apiserver/server/test/pipeline_plus_component/component.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,9 @@ | ||
name: whalesay | ||
inputs: | ||
- name: param1 | ||
- name: param2 | ||
implementation: | ||
container: | ||
image: docker/whalesay:latest | ||
command: [cowsay] | ||
args: [{inputValue: param1}, {inputValue: param2}] |
36 changes: 36 additions & 0 deletions
36
backend/src/apiserver/server/test/pipeline_plus_component/pipeline.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,36 @@ | ||
# Copyright 2018 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: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: arguments-parameters- | ||
spec: | ||
entrypoint: whalesay | ||
arguments: | ||
parameters: | ||
- name: param1 | ||
value: hello | ||
- name: param2 | ||
|
||
templates: | ||
- name: whalesay | ||
inputs: | ||
parameters: | ||
- name: param1 | ||
- name: param2 | ||
container: | ||
image: docker/whalesay:latest | ||
command: [cowsay] | ||
args: ["{{inputs.parameters.param1}}-{{inputs.parameters.param2}}"] |
Binary file added
BIN
+974 Bytes
backend/src/apiserver/server/test/pipeline_plus_component/pipeline_plus_component.tar.gz
Binary file not shown.
Binary file added
BIN
+987 Bytes
backend/src/apiserver/server/test/pipeline_plus_component/pipeline_plus_component.zip
Binary file not shown.
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
File renamed without changes.
Binary file not shown.