Skip to content

Commit adda3e6

Browse files
authored
Merge pull request #10 from cloudify-incubator/0.1.3-build
republish manylinux and 1.5 DSL
2 parents b02be3f + 6698709 commit adda3e6

File tree

8 files changed

+178
-27
lines changed

8 files changed

+178
-27
lines changed

.circleci/config.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,19 @@ commands:
4848
echo "Failed to get manager status";
4949
exit 1
5050
fi
51+
- run: pip3 install urllib3==1.26.15 requests-toolbelt==0.10.1
5152
- run: pip3 install https://github.com/cloudify-incubator/cloudify-ecosystem-test/archive/refs/heads/master.zip
5253
- run: git submodule update --init --recursive --remote
5354

5455
prepare_test_manager:
5556
steps:
56-
- run: ecosystem-test prepare-remote-test-manager -es aws_access_key_id=$aws_access_key_id -es aws_secret_access_key=$aws_secret_access_key -p $(find ~/project/workspace/build/ -name *centos-Core*x86_64.wgn) ~/project/plugin.yaml
57+
- run: ecosystem-test prepare-remote-test-manager -es aws_access_key_id=$aws_access_key_id -es aws_secret_access_key=$aws_secret_access_key -p $(find ~/project/workspace/build/ -name *manylinux-py311-none-linux_x86_64.wgn*) ~/project/plugin_1_5.yaml
58+
- run: ecosystem-test remote-upload-plugin -PN kubernetes --wagon-type manylinux
59+
- run: ecosystem-test remote-upload-plugin -PN helm --wagon-type manylinux
5760

5861
run_blueprint:
5962
steps:
60-
- run: ecosystem-test remote-blueprint-test -b examples/blueprint.yaml --test-id=hello-world-example --on-failure=uninstall-force --timeout=1800
63+
- run: ecosystem-test remote-blueprint-test -b examples/blueprint.yaml --test-id=hwe$CIRCLE_BUILD_NUM --on-failure=uninstall-force --timeout=1800
6164

6265
jobs:
6366

@@ -67,7 +70,9 @@ jobs:
6770
CLOUDIFY_SSL_TRUST_ALL: true
6871
steps:
6972
- checkout
70-
- managerorb/create_manager_container_latest
73+
- attach_workspace:
74+
at: workspace
75+
- setup_manager
7176
- prepare_test_manager
7277
- run_blueprint
7378

@@ -101,10 +106,7 @@ workflows:
101106
context:
102107
- plugins-inputs
103108
requires:
104-
- wagonorb/wagon
105109
- wagonorb/wagon_311
106-
- wagonorb/arch64_wagon
107-
- wagonorb/rhel_wagon
108110
filters:
109111
branches:
110112
only: /([0-9\.]*\-build|master)/
@@ -145,30 +147,15 @@ workflows:
145147
- node/unittests_job:
146148
context:
147149
- plugins-inputs
148-
- wagonorb/wagon:
149-
filters:
150-
branches:
151-
only: /([0-9\.]*\-build|master)/
152150
- wagonorb/wagon_311:
153151
filters:
154152
branches:
155153
only: /([0-9\.]*\-build|master)/
156-
- wagonorb/arch64_wagon:
157-
filters:
158-
branches:
159-
only: /([0-9\.]*\-build|master|dev)/
160-
- wagonorb/rhel_wagon:
161-
filters:
162-
branches:
163-
only: /([0-9\.]*\-build|master)/
164154
- integration_tests_py3:
165155
context:
166156
- plugins-inputs
167157
requires:
168-
- wagonorb/wagon
169158
- wagonorb/wagon_311
170-
- wagonorb/arch64_wagon
171-
- wagonorb/rhel_wagon
172159
filters:
173160
branches:
174161
only: /([0-9\.]*\-build|master)/

CHANGELOG.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
0.1.0: Productized release.
33
0.1.1: add __version__.py file
44
0.1.2: py311 wagon & remote manager & context.
5+
0.1.3: Rerelease py311.

examples/blueprint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
tosca_definitions_version: cloudify_dsl_1_4
1+
tosca_definitions_version: cloudify_dsl_1_5
22

33
imports:
4-
- https://cloudify.co/spec/cloudify/6.4.0/types.yaml
4+
- cloudify/types/types.yaml
55
- plugin:cloudify-serverless-plugin
66

77
node_templates:

plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins:
22
sl:
33
executor: central_deployment_agent
44
package_name: cloudify-serverless-plugin
5-
package_version: 0.1.2
5+
package_version: 0.1.3
66
data_types:
77
cloudify.types.serverless.ServerlessConfig:
88
properties:

plugin_1_4.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins:
33
sl:
44
executor: central_deployment_agent
55
package_name: cloudify-serverless-plugin
6-
package_version: '0.1.2'
6+
package_version: '0.1.3'
77

88
data_types:
99

plugin_1_5.yaml

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
plugins:
2+
3+
sl:
4+
executor: central_deployment_agent
5+
package_name: cloudify-serverless-plugin
6+
package_version: '0.1.3'
7+
8+
data_types:
9+
10+
cloudify.types.serverless.ServerlessConfig:
11+
properties:
12+
executable_path:
13+
type: string
14+
default: ''
15+
description: File path to Serverless binary. Leave blank and Cloudify will store the binary.
16+
17+
cloudify.types.serverless.ClientConfig:
18+
properties:
19+
provider:
20+
type: string
21+
description: The Serverless provider name.
22+
required: false
23+
credentials:
24+
type: dict
25+
required: false
26+
description: Credentials of the provider.
27+
28+
cloudify.types.serverless.ServiceConfig:
29+
properties:
30+
name:
31+
type: string
32+
description: The Serverless service name.
33+
required: true
34+
template:
35+
type: string
36+
description: Template for the service.
37+
required: true
38+
template_url:
39+
type: string
40+
description: Template URL for the service. Supports GitHub, BitBucket.
41+
required: false
42+
template_path:
43+
type: string
44+
description: Template local path for the service.
45+
required: false
46+
functions:
47+
type: list
48+
required: true
49+
description: List of cloudify.types.serverless.FunctionConfig.
50+
env:
51+
type: dict
52+
required: false
53+
description: >
54+
A dict of environment variables to use during execution of serverless CLI calls.
55+
# For example, you can provide AWS credentials:
56+
# env:
57+
# AWS_ACCESS_KEY_ID: { get_secret: AWS_ACCESS_KEY_ID }
58+
# AWS_SECRET_ACCESS_KEY: { get_secret: AWS_SECRET_ACCESS_KEY }
59+
60+
cloudify.types.serverless.FunctionConfig:
61+
properties:
62+
name:
63+
type: string
64+
description: The Serverless function name.
65+
required: true
66+
handler:
67+
type: string
68+
description: The Serverless function handelr.
69+
required: true
70+
events:
71+
type: list
72+
description: List of events assoicated with the function.
73+
required: false
74+
environment:
75+
type: dict
76+
description: Function environment variables.
77+
required: false
78+
79+
dsl_definitions:
80+
81+
serverless_configuration: &serverless_config
82+
serverless_config:
83+
type: cloudify.types.serverless.ServerlessConfig
84+
85+
use_external_resource_desc: &use_external_resource_desc >
86+
Indicate whether the resource exists or if Cloudify should create the resource,
87+
true if you are bringing an existing resource, false if you want cloudify to create it.
88+
89+
external_resource: &external_resource
90+
use_external_resource:
91+
description: *use_external_resource_desc
92+
type: boolean
93+
default: false
94+
95+
node_types:
96+
97+
cloudify.nodes.serverless.Binary:
98+
derived_from: cloudify.nodes.SoftwareComponent
99+
properties:
100+
<<: *serverless_config
101+
<<: *external_resource
102+
installation_source:
103+
type: string
104+
default: 'https://github.com/serverless/serverless/releases/download/v3.22.0/serverless-linux-x64'
105+
description: >
106+
Location to download the Helm installation from. Ignored if 'use_existing_resource' is true.
107+
max_sleep_time:
108+
type: integer
109+
default: 300
110+
interfaces:
111+
cloudify.interfaces.lifecycle:
112+
create:
113+
implementation: sl.serverless_plugin.tasks.install_binary
114+
delete:
115+
implementation: sl.serverless_plugin.tasks.uninstall_binary
116+
117+
cloudify.nodes.serverless.Service:
118+
derived_from: cloudify.nodes.SoftwareComponent
119+
properties:
120+
<<: *serverless_config
121+
<<: *external_resource
122+
client_config:
123+
type: cloudify.types.serverless.ClientConfig
124+
description: Configure the Serverless provider and client credentials.
125+
required: true
126+
resource_config:
127+
type: cloudify.types.serverless.ServiceConfig
128+
required: true
129+
interfaces:
130+
cloudify.interfaces.lifecycle:
131+
create:
132+
implementation: sl.serverless_plugin.tasks.create
133+
configure:
134+
implementation: sl.serverless_plugin.tasks.configure
135+
start:
136+
implementation: sl.serverless_plugin.tasks.start
137+
poststart:
138+
implementation: sl.serverless_plugin.tasks.poststart
139+
stop:
140+
implementation: sl.serverless_plugin.tasks.stop
141+
delete:
142+
implementation: sl.serverless_plugin.tasks.delete
143+
serverless.interface:
144+
invoke:
145+
implementation: sl.serverless_plugin.tasks.invoke
146+
inputs:
147+
functions:
148+
default: []
149+
metrics:
150+
implementation: sl.serverless_plugin.tasks.metrics
151+
inputs:
152+
functions:
153+
default: []
154+
155+
blueprint_labels:
156+
obj-type:
157+
values:
158+
- serverless
159+
160+
labels:
161+
obj-type:
162+
values:
163+
- serverless

serverless_plugin/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = '0.1.2'
1+
version = '0.1.3'

v2_plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins:
22
sl:
33
executor: central_deployment_agent
44
package_name: cloudify-serverless-plugin
5-
package_version: 0.1.2
5+
package_version: 0.1.3
66
data_types:
77
cloudify.types.serverless.ServerlessConfig:
88
properties:

0 commit comments

Comments
 (0)