deployers) {
47 | this.deployers = deployers;
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/main/java/org/springframework/cloud/skipper/domain/SkipperManifestKind.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2018 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springframework.cloud.skipper.domain;
17 |
18 | public enum SkipperManifestKind {
19 | SpringCloudDeployerApplication,
20 | SpringBootApp,
21 | CloudFoundryApplication
22 | }
23 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/main/java/org/springframework/cloud/skipper/domain/SkipperManifestReader.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2018 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springframework.cloud.skipper.domain;
17 |
18 | public interface SkipperManifestReader {
19 |
20 | Object read(String manifest);
21 |
22 | String[] getSupportedKinds();
23 | }
24 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/main/java/org/springframework/cloud/skipper/domain/StatusCode.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springframework.cloud.skipper.domain;
17 |
18 | /**
19 | * Release's status code definition
20 | *
21 | * @author Mark Pollack
22 | */
23 |
24 | public enum StatusCode {
25 |
26 | // Status_UNKNOWN indicates that a release is in an uncertain state.
27 | UNKNOWN,
28 |
29 | // Status_DEPLOYED indicates that the release has been pushed to the platform.
30 | DEPLOYED,
31 |
32 | // Status_DELETED indicates that a release has been deleted from the platform.
33 | DELETED,
34 |
35 | // Status_FAILED indicates that the release was not successfully deployed.
36 | FAILED
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/main/java/org/springframework/cloud/skipper/domain/Template.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springframework.cloud.skipper.domain;
17 |
18 | /**
19 | * Template represents a template file as a name/value pair. By convention, name is a
20 | * relative path within the scope of the chart's base directory.
21 | *
22 | * @author Mark Pollack
23 | */
24 | public class Template {
25 |
26 | // Name is the path-like name of the template.
27 | private String name;
28 |
29 | // Data is the template as string data.
30 | private String data;
31 |
32 | public Template() {
33 | }
34 |
35 | public String getName() {
36 | return name;
37 | }
38 |
39 | public void setName(String name) {
40 | this.name = name;
41 | }
42 |
43 | public String getData() {
44 | return data;
45 | }
46 |
47 | public void setData(String data) {
48 | this.data = data;
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/main/java/org/springframework/cloud/skipper/domain/UpgradeProperties.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springframework.cloud.skipper.domain;
17 |
18 | /**
19 | * Properties for upgrade operation.
20 | *
21 | * @author Ilayaperumal Gopinathan
22 | */
23 | public class UpgradeProperties extends CommonProperties {
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/main/java/org/springframework/cloud/skipper/domain/deployer/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | /**
17 | * Core domain classes for packages and manifests that related to the kind SpringCloudDeployerApplication.
18 | */
19 | package org.springframework.cloud.skipper.domain.deployer;
20 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/main/java/org/springframework/cloud/skipper/domain/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | /**
17 | * Core domain classes for Skipper covering Packages, Releases, and Install/Upgrade Requests.
18 | */
19 | package org.springframework.cloud.skipper.domain;
20 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/main/java/org/springframework/cloud/skipper/io/PackageFileUtils.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springframework.cloud.skipper.io;
17 |
18 | import java.io.File;
19 |
20 | import org.springframework.cloud.skipper.domain.PackageMetadata;
21 |
22 | /**
23 | * Package File methods used by Skipper.
24 | *
25 | * @author Ilayaperumal Gopinathan
26 | */
27 | public class PackageFileUtils {
28 |
29 | public static File calculatePackageZipFile(PackageMetadata packageMetadata, File targetPath) {
30 | return new File(targetPath, packageMetadata.getName() + "-" + packageMetadata.getVersion() + ".zip");
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/main/java/org/springframework/cloud/skipper/io/PackageReader.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springframework.cloud.skipper.io;
17 |
18 | import java.io.File;
19 |
20 | import org.springframework.cloud.skipper.domain.Package;
21 |
22 | /**
23 | * @author Mark Pollack
24 | */
25 | public interface PackageReader {
26 |
27 | /**
28 | * Reads the Package from the specified file
29 | * @param directory the directory containing the unzipped file
30 | * @return the corresponding Package
31 | */
32 | Package read(File directory);
33 | }
34 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/main/java/org/springframework/cloud/skipper/io/PackageWriter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springframework.cloud.skipper.io;
17 |
18 | import java.io.File;
19 |
20 | import org.springframework.cloud.skipper.domain.Package;
21 |
22 | /**
23 | * @author Mark Pollack
24 | */
25 | public interface PackageWriter {
26 |
27 | /**
28 | * Writes the package to the specified directory. File name is determined from package
29 | * metadata.
30 | * @param pkg the package to write
31 | * @param directory the directory where to create the zip file of the package.
32 | * @return the zip file in the specified directory.
33 | */
34 | File write(Package pkg, File directory);
35 | }
36 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/main/resources/org/springframework/cloud/skipper/io/cf-template.yml:
--------------------------------------------------------------------------------
1 | apiVersion: skipper.spring.io/v1
2 | kind: CloudFoundryApplication
3 | spec:
4 | resource: "{{{spec.resource}}}"
5 | version: "{{{spec.version}}}"
6 | manifest:
7 | {{#spec.manifest.entrySet}}
8 | "{{{key}}}": "{{{value}}}"
9 | {{/spec.manifest.entrySet}}
10 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/main/resources/org/springframework/cloud/skipper/io/generic-template.yml:
--------------------------------------------------------------------------------
1 | apiVersion: skipper.spring.io/v1
2 | kind: SpringCloudDeployerApplication
3 | metadata:
4 | {{#metadata.entrySet}}
5 | "{{{key}}}": "{{{value}}}"
6 | {{/metadata.entrySet}}
7 | spec:
8 | resource: "{{{spec.resource}}}"
9 | resourceMetadata: "{{{spec.resource}}}:jar:metadata:{{{spec.version}}}"
10 | version: "{{{spec.version}}}"
11 | applicationProperties:
12 | {{#spec.applicationProperties.entrySet}}
13 | "{{{key}}}": "{{{value}}}"
14 | {{/spec.applicationProperties.entrySet}}
15 | deploymentProperties:
16 | {{#spec.deploymentProperties.entrySet}}
17 | "{{{key}}}": "{{{value}}}"
18 | {{/spec.deploymentProperties.entrySet}}
19 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/test/java/org/springframework/cloud/skipper/TestResourceUtils.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springframework.cloud.skipper;
17 |
18 | import org.springframework.core.io.ClassPathResource;
19 |
20 | /**
21 | * Convenience utilities for common operations with test resources.
22 | *
23 | * @author Chris Beams
24 | */
25 | public abstract class TestResourceUtils {
26 |
27 | /**
28 | * Load a {@link ClassPathResource} qualified by the simple name of clazz, and relative to
29 | * the package for clazz.
30 | *
31 | * Example: given a clazz 'com.foo.BarTests' and a resourceSuffix of 'context.xml', this
32 | * method will return a ClassPathResource representing com/foo/BarTests-context.xml
33 | *
34 | * Intended for use loading context configuration XML files within JUnit tests.
35 | */
36 | public static ClassPathResource qualifiedResource(Class> clazz, String resourceSuffix) {
37 | return new ClassPathResource(String.format("%s-%s", clazz.getSimpleName(), resourceSuffix), clazz);
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/test/java/org/springframework/cloud/skipper/domain/PackageMetadataTests.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2018 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springframework.cloud.skipper.domain;
17 |
18 | import nl.jqno.equalsverifier.EqualsVerifier;
19 | import org.junit.Test;
20 |
21 | /**
22 | * @author Mark Pollack
23 | */
24 | public class PackageMetadataTests {
25 |
26 | @Test
27 | public void equalsContract() {
28 | EqualsVerifier.forClass(PackageMetadata.class)
29 | .withOnlyTheseFields("repositoryId", "name", "version")
30 | .verify();
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/test/resources/org/springframework/cloud/skipper/domain/CloudFoundryApplicationManifestReaderTests-manifest1.yml:
--------------------------------------------------------------------------------
1 | kind: CloudFoundryApplication
2 | spec:
3 | resource: https://github.com/my/entry
4 | version: 1.0.0
5 | manifest:
6 | buildpack: buildpack
7 | command: my command
8 | disk-quota: '2048'
9 | domains:
10 | - domain1
11 | - domain2
12 | env:
13 | key1: value1
14 | key2: value2
15 | health-check-http-endpoint: endpoint
16 | health-check-type: process
17 | hosts:
18 | - host1
19 | - host2
20 | instances: '1'
21 | memory: '1024'
22 | timeout: '180'
23 | no-hostname: false
24 | no-route: false
25 | random-route: true
26 | stack: stack
27 | services:
28 | - rabbit
29 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/test/resources/org/springframework/cloud/skipper/domain/CloudFoundryApplicationManifestReaderTests-manifest2.yml:
--------------------------------------------------------------------------------
1 | kind: CloudFoundryApplication
2 | spec:
3 | resource: https://github.com/my/entry
4 | version: 1.0.0
5 | manifest:
6 | services: [rabbit]
7 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/test/resources/org/springframework/cloud/skipper/domain/SpringCloudDeployerApplicationManifestReaderTests-erroneous-manifest.yml:
--------------------------------------------------------------------------------
1 | ---
2 | apiVersion: skipper.spring.io/v1
3 | kind: SpringBootApp1
4 | metadata:
5 | name: log-sink
6 | count: 2
7 | type: sink
8 | spec:
9 | resource: maven://org.springframework.cloud.stream.app:log-sink-rabbit:1.2.0.RELEASE
10 | resourceMetadata: maven://org.springframework.cloud.stream.app:log-sink-rabbit:jar:metadata:1.2.0.RELEASE
11 | applicationProperties:
12 | log.level: INFO
13 | log.expression: hellobaby
14 | deploymentProperties:
15 | memory: 1024
16 | disk: 2
17 | ---
18 | apiVersion: skipper.spring.io/v1
19 | kind: SpringCloudDeployerApplication
20 | metadata:
21 | name: time-source
22 | count: 5
23 | type: source
24 | spec:
25 | resource: maven://org.springframework.cloud.stream.app:time-source-rabbit:1.2.0.RELEASE
26 | resourceMetadata: maven://org.springframework.cloud.stream.app:time-source-rabbit:jar:metadata:1.2.0.RELEASE
27 | applicationProperties:
28 | log.level: DEBUG
29 | deploymentProperties:
30 | memory: 2048
31 | disk: 4
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/test/resources/org/springframework/cloud/skipper/domain/SpringCloudDeployerApplicationManifestReaderTests-manifest.yml:
--------------------------------------------------------------------------------
1 | ---
2 | apiVersion: skipper.spring.io/v1
3 | kind: SpringBootApp
4 | metadata:
5 | name: log-sink
6 | count: 2
7 | type: sink
8 | spec:
9 | resource: maven://org.springframework.cloud.stream.app:log-sink-rabbit:1.2.0.RELEASE
10 | resourceMetadata: maven://org.springframework.cloud.stream.app:log-sink-rabbit:jar:metadata:1.2.0.RELEASE
11 | applicationProperties:
12 | log.level: INFO
13 | log.expression: "hello baby"
14 | deploymentProperties:
15 | memory: 1024
16 | disk: 2
17 | ---
18 | apiVersion: skipper.spring.io/v1
19 | kind: SpringCloudDeployerApplication
20 | metadata:
21 | name: time-source
22 | count: 5
23 | type: source
24 | spec:
25 | resource: maven://org.springframework.cloud.stream.app:time-source-rabbit:1.2.0.RELEASE
26 | resourceMetadata: maven://org.springframework.cloud.stream.app:time-source-rabbit:jar:metadata:1.2.0.RELEASE
27 | applicationProperties:
28 | log.level: DEBUG
29 | deploymentProperties:
30 | memory: 2048
31 | disk: 4
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/test/resources/org/springframework/cloud/skipper/io/PackageWriterTests-generic-template.yml:
--------------------------------------------------------------------------------
1 | apiVersion: skipper.spring.io/v1
2 | kind: SpringCloudDeployerApplication
3 | metadata:
4 | {{#metadata.entrySet}}
5 | "{{{key}}}": "{{{value}}}"
6 | {{/metadata.entrySet}}
7 | spec:
8 | resource: "{{{spec.resource}}}"
9 | resourceMetadata: "{{{spec.resource}}}:jar:metadata:{{{spec.version}}}"
10 | version: "{{{spec.version}}}"
11 | applicationProperties:
12 | {{#spec.applicationProperties.entrySet}}
13 | "{{{key}}}": "{{{value}}}"
14 | {{/spec.applicationProperties.entrySet}}
15 | deploymentProperties:
16 | {{#spec.deploymentProperties.entrySet}}
17 | "{{{key}}}": "{{{value}}}"
18 | {{/spec.deploymentProperties.entrySet}}
19 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/test/resources/org/springframework/cloud/skipper/io/PackageWriterTests-package.yml:
--------------------------------------------------------------------------------
1 | !!org.springframework.cloud.skipper.domain.PackageMetadata
2 | apiVersion: null
3 | description: null
4 | displayName: null
5 | iconUrl: null
6 | kind: null
7 | maintainer: bob
8 | name: myapp
9 | origin: null
10 | packageFile: null
11 | packageHomeUrl: null
12 | packageSourceUrl: null
13 | repositoryId: null
14 | repositoryName: null
15 | sha256: null
16 | tags: null
17 | version: 1.0.0
18 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/test/resources/org/springframework/cloud/skipper/io/PackageWriterTests-values.yml:
--------------------------------------------------------------------------------
1 | fiz: faz
2 | foo: bar
3 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/test/resources/repositories/sources/test/ticktock/ticktock-1.0.0/package.yml:
--------------------------------------------------------------------------------
1 | apiVersion: skipper.spring.io/v1
2 | kind: SkipperPackageMetadata
3 | name: ticktock
4 | version: 1.0.0
5 | packageSourceUrl: https://example.com/dataflow/ticktock
6 | packageHomeUrl: https://example.com/dataflow/ticktock
7 | tags: stream, time, log
8 | maintainer: https://github.com/markpollack
9 | description: The ticktock stream sends a time stamp and logs the value.
10 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/test/resources/repositories/sources/test/ticktock/ticktock-1.0.0/packages/log/package.yml:
--------------------------------------------------------------------------------
1 | apiVersion: skipper.spring.io/v1
2 | kind: SkipperPackageMetadata
3 | name: log
4 | version: 2.0.0
5 | packageSourceUrl: https://github.com/spring-cloud-stream-app-starters/log/tree/v1.2.0.RELEASE
6 | packageHomeUrl: https://cloud.spring.io/spring-cloud-stream-app-starters/
7 | tags: logging, sink
8 | maintainer: https://github.com/sobychacko
9 | description: The log sink uses the application logger to output the data for inspection.
10 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/test/resources/repositories/sources/test/ticktock/ticktock-1.0.0/packages/log/templates/log.yml:
--------------------------------------------------------------------------------
1 | apiVersion: skipper.spring.io/v1
2 | kind: SpringCloudDeployerApplication
3 | deployment:
4 | name: log
5 | count: {{deployment.count}}
6 | applicationProperties:
7 | {{#deployment.applicationProperties.entrySet}}
8 | {{key}}: {{value}}
9 | {{/deployment.applicationProperties.entrySet}}
10 | resource: maven://org.springframework.cloud.stream.app:log-sink-rabbit:{{appVersion}}
11 | resourceMetadata: maven://org.springframework.cloud.stream.app:log-sink-rabbit:jar:metadata:{{appVersion}}
12 | deploymentProperties:
13 | {{#deployment.deploymentProperties.entrySet}}
14 | {{key}}: {{value}}
15 | {{/deployment.deploymentProperties.entrySet}}
16 |
17 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/test/resources/repositories/sources/test/ticktock/ticktock-1.0.0/packages/log/values.yml:
--------------------------------------------------------------------------------
1 | # Default values for {{name}}
2 | # This is a YAML-formatted file.
3 | # Declare variables to be passed into your templates
4 | appVersion: 1.2.0.RELEASE
5 | deployment:
6 | count: 1
7 | applicationProperties:
8 | log.level: DEBUG
9 | deploymentProperties:
10 | memory: 1024m
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/test/resources/repositories/sources/test/ticktock/ticktock-1.0.0/packages/time/package.yml:
--------------------------------------------------------------------------------
1 | apiVersion: skipper.spring.io/v1
2 | kind: SkipperPackageMetadata
3 | name: time
4 | version: 2.0.0
5 | packageSourceUrl: https://github.com/spring-cloud-stream-app-starters/time/tree/v1.2.0.RELEASE
6 | packageHomeUrl: https://cloud.spring.io/spring-cloud-stream-app-starters/
7 | tags: time, source
8 | maintainer: https://github.com/sobychacko
9 | description: The time source periodically emits a timestamp string.
10 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/test/resources/repositories/sources/test/ticktock/ticktock-1.0.0/packages/time/templates/time.yml:
--------------------------------------------------------------------------------
1 | apiVersion: skipper.spring.io/v1
2 | kind: SpringCloudDeployerApplication
3 | deployment:
4 | name: time
5 | count: {{deployment.count}}
6 | applicationProperties:
7 | {{#deployment.applicationProperties.entrySet}}
8 | {{key}}: {{value}}
9 | {{/deployment.applicationProperties.entrySet}}
10 | resource: maven://org.springframework.cloud.stream.app:time-source-rabbit:{{appVersion}}
11 | resourceMetadata: maven://org.springframework.cloud.stream.app:time-source-rabbit:jar:metadata:{{appVersion}}
12 | deploymentProperties:
13 | {{#deployment.deploymentProperties.entrySet}}
14 | {{key}}: {{value}}
15 | {{/deployment.deploymentProperties.entrySet}}
16 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/test/resources/repositories/sources/test/ticktock/ticktock-1.0.0/packages/time/values.yml:
--------------------------------------------------------------------------------
1 | # Default values for {{name}}
2 | # This is a YAML-formatted file.
3 | # Declare variables to be passed into your templates
4 | appVersion: 1.2.0.RELEASE #
5 | deployment:
6 | count: 1
7 | applicationProperties:
8 | log.level: DEBUG
9 | deploymentProperties:
10 | memory: 1024m
11 |
12 |
13 |
--------------------------------------------------------------------------------
/spring-cloud-skipper/src/test/resources/repositories/sources/test/ticktock/ticktock-1.0.0/values.yml:
--------------------------------------------------------------------------------
1 | # Default values for {{name}}
2 | # This is a YAML-formatted file.
3 | # Declare variables to be passed into your templates
4 |
5 | foo: bar
6 | biz: baz
7 |
8 | # No values to override
9 |
10 |
--------------------------------------------------------------------------------
/spring-cloud-starter-skipper-server/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 4.0.0
4 | spring-cloud-starter-skipper-server
5 | jar
6 | Spring Cloud Starter :: Skipper Server
7 |
8 |
9 | org.springframework.cloud
10 | spring-cloud-skipper-parent
11 | 2.9.4-SNAPSHOT
12 |
13 |
14 |
15 |
16 | org.springframework.cloud
17 | spring-cloud-skipper-server-core
18 |
19 |
20 | org.springframework.cloud
21 | spring-cloud-skipper-platform-kubernetes
22 |
23 |
24 | org.springframework.cloud
25 | spring-cloud-skipper-platform-cloudfoundry
26 |
27 |
28 | org.springframework.cloud
29 | spring-cloud-skipper-autoconfigure
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/src/scripts/next-minor-snapshot-version:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # ----------------------------------------------------------------------------
4 | # Script maintaining versions
5 | #
6 | # Bump up next minor development version.
7 | # ----------------------------------------------------------------------------
8 |
9 | find_basedir() {
10 | local basedir=$(cd -P -- "$(dirname -- "$0")" && cd .. && cd .. && pwd -P)
11 | echo "${basedir}"
12 | }
13 |
14 | export PROJECTBASEDIR=$(find_basedir)
15 |
16 | (cd $PROJECTBASEDIR && ./mvnw build-helper:parse-version versions:set -DprocessAllModules=false -DgenerateBackupPoms=false -DnewVersion='${parsedVersion.majorVersion}.${parsedVersion.nextMinorVersion}.0-SNAPSHOT' && ./mvnw -pl spring-cloud-skipper-dependencies build-helper:parse-version versions:set -DprocessAllModules=false -DgenerateBackupPoms=false -DnewVersion='${parsedVersion.majorVersion}.${parsedVersion.nextMinorVersion}.0-SNAPSHOT')
17 |
18 |
--------------------------------------------------------------------------------
/src/scripts/next-snapshot-version:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # ----------------------------------------------------------------------------
4 | # Script maintaining versions
5 | #
6 | # Bump up next build development version.
7 | # ----------------------------------------------------------------------------
8 |
9 | find_basedir() {
10 | local basedir=$(cd -P -- "$(dirname -- "$0")" && cd .. && cd .. && pwd -P)
11 | echo "${basedir}"
12 | }
13 |
14 | export PROJECTBASEDIR=$(find_basedir)
15 |
16 | (cd $PROJECTBASEDIR && ./mvnw build-helper:parse-version versions:set -DprocessAllModules=false -DgenerateBackupPoms=false -DnewVersion='${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.nextIncrementalVersion}-SNAPSHOT' && ./mvnw -pl spring-cloud-skipper-dependencies build-helper:parse-version versions:set -DprocessAllModules=false -DgenerateBackupPoms=false -DnewVersion='${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.nextIncrementalVersion}-SNAPSHOT')
17 |
18 |
--------------------------------------------------------------------------------