diff --git a/.project b/.project
new file mode 100644
index 000000000..508911243
--- /dev/null
+++ b/.project
@@ -0,0 +1,11 @@
+
+
+ wmd-bookstore
+
+
+
+
+
+
+
+
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 000000000..6cb80dd68
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,37 @@
+podTemplate(
+ label: 'mypod',
+ inheritFrom: 'default',
+ serviceAccount: 'k8s-helm',
+ containers: [
+ containerTemplate(
+ name: 'helm',
+ image: 'ianmward/k8s-helm:80ff3d2',
+ ttyEnabled: true,
+ command: 'cat'
+ )
+ ],
+ envVars: [
+ secretEnvVar(key: 'API_GATEWAY_USR', secretName: 'apigateway-cred', secretKey: 'username'),
+ secretEnvVar(key: 'API_GATEWAY_PSW', secretName: 'apigateway-cred', secretKey: 'password'),
+ ],
+ imagePullSecrets: [ 'regcred' ]
+) {
+ node('mypod') {
+ def commitId
+ stage ('Extract') {
+ checkout scm
+ commitId = sh(script: 'git rev-parse --short HEAD', returnStdout: true).trim()
+ }
+ stage ('Deploy') {
+ container ('helm') {
+ def registry = "harbor.eks.au-poc.com/library"
+ def repository = "${registry}/bookstore"
+ def tag = "795bd64"
+ sh "helm list"
+ sh "helm upgrade --install --force --timeout=10m0s --set image.repository=${repository},image.tag=${tag} -n development softwareag-bookstore softwareag-bookstore"
+ def API_ID = sh ( script: "curl -u Administrator:manage -X POST 'https://api-gateway.eks.au-poc.com/rest/apigateway/apis' -H 'accept: application/json' -H 'Content-Type: multipart/form-data' -F 'file=@bookstore.swagger' -F 'apiName=Bookstore' -F 'apiDescription=Bookstore API' -F 'apiVersion=V3' -F 'type=swagger' | jq -r '.apiResponse.api.id'",returnStdout:true).trim()
+ sh "curl -u ${API_GATEWAY_USR}:${API_GATEWAY_PSW} -X PUT 'https://api-gateway.eks.au-poc.com/rest/apigateway/apis/'${API_ID}'/activate' -H 'accept: application/json' -H 'Content-Type: multipart/form-data'"
+ }
+ }
+ }
+}
diff --git a/Jenkinsfile.unix b/Jenkinsfile.unix
deleted file mode 100644
index 89f203b75..000000000
--- a/Jenkinsfile.unix
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
-* Copyright © 2010 - 2013 Apama Ltd.
-* Copyright © 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors
-*
-* SPDX-License-Identifier: Apache-2.0
-*
-* 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.
-*
-*/
-
-pipeline {
- agent any
-
- stages {
- stage('Build'){
- steps {
- sh "${env.SAG_HOME}/common/AssetBuildEnvironment/ant/bin/ant -DSAGHome=${env.SAG_HOME} -DSAG_CI_HOME=${env.SAG_CI_HOME} -DprojectName=${env.JOB_NAME} build"
- }
- }
- stage('Deploy') {
- steps {
- sh "${env.SAG_HOME}/common/AssetBuildEnvironment/ant/bin/ant -DSAGHome=${env.SAG_HOME} -DSAG_CI_HOME=${env.SAG_CI_HOME} -DprojectName=${env.JOB_NAME} deploy"
- }
- }
- stage('Test') {
- steps {
- sh "${env.SAG_HOME}/common/AssetBuildEnvironment/ant/bin/ant -DSAGHome=${env.SAG_HOME} -DSAG_CI_HOME=${env.SAG_CI_HOME} -DprojectName=${env.JOB_NAME} test"
- junit 'report/'
- }
- }
- }
-}
diff --git a/Jenkinsfile.win b/Jenkinsfile.win
deleted file mode 100644
index 3bd53ea6c..000000000
--- a/Jenkinsfile.win
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
-* Copyright © 2010 - 2013 Apama Ltd.
-* Copyright © 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors
-*
-* SPDX-License-Identifier: Apache-2.0
-*
-* 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.
-*
-*/
-
-pipeline {
- agent any
-
- stages {
- stage('Build'){
- steps {
- bat "${env.SAG_HOME}/common/AssetBuildEnvironment/ant/bin/ant -DSAGHome=${env.SAG_HOME} -DSAG_CI_HOME=${env.SAG_CI_HOME} -DprojectName=${env.JOB_NAME} build"
- }
- }
- stage('Deploy') {
- steps {
- bat "${env.SAG_HOME}/common/AssetBuildEnvironment/ant/bin/ant -DSAGHome=${env.SAG_HOME} -DSAG_CI_HOME=${env.SAG_CI_HOME} -DprojectName=${env.JOB_NAME} deploy"
- }
- }
- stage('Test') {
- steps {
- bat "${env.SAG_HOME}/common/AssetBuildEnvironment/ant/bin/ant -DSAGHome=${env.SAG_HOME} -DSAG_CI_HOME=${env.SAG_CI_HOME} -DprojectName=${env.JOB_NAME} test"
- junit 'report/'
- }
- }
- }
-}
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index 948e5dac3..000000000
--- a/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "{}"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright 2017 SoftwareAG
-
- 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.
diff --git a/README.md b/README.md
deleted file mode 100644
index 9bfa8abb0..000000000
--- a/README.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# webmethods-sample-project-layout
-Sample project layout for webMethods assets. This sample also demostrates CI quick set up together with https://github.com/SoftwareAG/sagdevops-ci-assets
-
-## Jump Start with webMethods Structure
-The best way to start your webMethods project would be to fork this repo directly in github. This will allow you to directly have a set-up copy of layout that will be completely under your control.
-
-## Description
-
-This sample webMethods project layout should serve as a template for organising webMethods projects. It contains demo Integration Server packages with flow services and wM Unit Tests that are covering those.
-Fork the repository to easily create fundament for you webMethods project.
-
-## CI (continuous integration)
-
-Jenkinsfiles.win and Jenkinfiles.unix in the root of the project contain Jenkins Pipeline declaration. With these and our [DevOps asset library for version 9.x and 10.0](https://github.com/SoftwareAG/sagdevops-ci-assets) you will be able to set up you CI in a matter of minutes.
- ______________________
-These tools are provided as-is and without warranty or support. They do not constitute part of the Software AG product suite. Users are free to use, fork and modify them, subject to the license agreement. While Software AG welcomes contributions, we cannot guarantee to include every contribution in the master project.
-
-Contact us at [TECHcommunity](mailto:technologycommunity@softwareag.com?subject=Github/SoftwareAG) if you have any questions.
diff --git a/additional-scrape-configs.yaml b/additional-scrape-configs.yaml
new file mode 100644
index 000000000..7362e602e
--- /dev/null
+++ b/additional-scrape-configs.yaml
@@ -0,0 +1,7 @@
+apiVersion: v1
+data:
+ prometheus.yml: LSBqb2JfbmFtZTogJ2Jvb2tzdG9yZScKICBzdGF0aWNfY29uZmlnczoKICAtIHRhcmdldHM6IFsnc29mdHdhcmVhZy1ib29rc3RvcmU6NTU1NSddCi0gam9iX25hbWU6ICdtaWNyb2dhdGV3YXknCiAgc3RhdGljX2NvbmZpZ3M6CiAgLSB0YXJnZXRzOiBbJ3NvZnR3YXJlYWctbWljcm9nYXRld2F5OjQ0ODUnXQo=
+kind: Secret
+metadata:
+ creationTimestamp: null
+ name: additional-scrape-configs
diff --git a/assets/IS/Packages/Fibonachi/.classpath b/assets/IS/Packages/Fibonachi/.classpath
deleted file mode 100644
index 34b13e630..000000000
--- a/assets/IS/Packages/Fibonachi/.classpath
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/assets/IS/Packages/Fibonachi/.project b/assets/IS/Packages/Fibonachi/.project
deleted file mode 100644
index 55e3f6658..000000000
--- a/assets/IS/Packages/Fibonachi/.project
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
- Fibonachi
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- com.softwareag.is.vcsintegration.ISPackageBuilder
-
-
-
-
-
- com.softwareag.is.vcsintegration.nature
- org.eclipse.jdt.core.javanature
-
-
diff --git a/assets/IS/Packages/Fibonachi/.settings/com.softwareag.ide.eclipse.pld.bundle.builder.ui.prefs b/assets/IS/Packages/Fibonachi/.settings/com.softwareag.ide.eclipse.pld.bundle.builder.ui.prefs
deleted file mode 100644
index 524c8ff74..000000000
--- a/assets/IS/Packages/Fibonachi/.settings/com.softwareag.ide.eclipse.pld.bundle.builder.ui.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-eclipse.preferences.version=1
-project.version=1.0.0
diff --git a/assets/IS/Packages/Fibonachi/manifest.bak b/assets/IS/Packages/Fibonachi/manifest.bak
deleted file mode 100644
index c62aa628f..000000000
--- a/assets/IS/Packages/Fibonachi/manifest.bak
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
- yes
- no
- 1.0
-
-
-
-
-
- yes
-
diff --git a/assets/IS/Packages/Fibonachi/manifest.v3 b/assets/IS/Packages/Fibonachi/manifest.v3
deleted file mode 100644
index aab4f72d7..000000000
--- a/assets/IS/Packages/Fibonachi/manifest.v3
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
- yes
- no
- 2.0
-
-
-
-
- Default
- yes
-
diff --git a/assets/IS/Packages/Fibonachi/ns/Fibonachi/node.idf b/assets/IS/Packages/Fibonachi/ns/Fibonachi/node.idf
deleted file mode 100644
index fb642f2ab..000000000
--- a/assets/IS/Packages/Fibonachi/ns/Fibonachi/node.idf
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
- interface
- Fibonachi
- false
-
diff --git a/assets/IS/Packages/Fibonachi/ns/Fibonachi/services/getFibunachiNumber/flow.xml b/assets/IS/Packages/Fibonachi/ns/Fibonachi/services/getFibunachiNumber/flow.xml
deleted file mode 100644
index eb56ac20a..000000000
--- a/assets/IS/Packages/Fibonachi/ns/Fibonachi/services/getFibunachiNumber/flow.xml
+++ /dev/null
@@ -1,1753 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/assets/IS/Packages/Fibonachi/ns/Fibonachi/services/getFibunachiNumber/flow.xml.bak b/assets/IS/Packages/Fibonachi/ns/Fibonachi/services/getFibunachiNumber/flow.xml.bak
deleted file mode 100644
index 1425a0029..000000000
--- a/assets/IS/Packages/Fibonachi/ns/Fibonachi/services/getFibunachiNumber/flow.xml.bak
+++ /dev/null
@@ -1,1634 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/assets/IS/Packages/Fibonachi/ns/Fibonachi/services/getFibunachiNumber/node.ndf b/assets/IS/Packages/Fibonachi/ns/Fibonachi/services/getFibunachiNumber/node.ndf
deleted file mode 100644
index 79f20e62a..000000000
--- a/assets/IS/Packages/Fibonachi/ns/Fibonachi/services/getFibunachiNumber/node.ndf
+++ /dev/null
@@ -1,105 +0,0 @@
-
-
-
- flow
- default
- java 3.5
-
-
- record
- unknown
-
- false
- record
- 0
- IData
- true
- false
- false
-
-
- record
- unknown
-
-
- true
- false
- false
-
- false
- n
- string
- 0
-
-
- true
- false
- false
-
-
- true
-
-
- record
- unknown
-
- false
- record
- 0
- IData
- true
- false
- false
-
-
- record
- unknown
-
-
- true
- false
- false
-
- false
- fibonachiNumber
- string
- 0
-
-
- true
- false
- false
-
-
- true
-
-
-
- no
- no
- no
- 15
- 1
- off
- no
- $null
-
- no
- 0
- 0
- none
- none
- 0
-
-
-
- 0
- false
- false
- true
-
- 1
-
- true
- false
-
diff --git a/assets/IS/Packages/Fibonachi/ns/Fibonachi/services/node.idf b/assets/IS/Packages/Fibonachi/ns/Fibonachi/services/node.idf
deleted file mode 100644
index f79fea61b..000000000
--- a/assets/IS/Packages/Fibonachi/ns/Fibonachi/services/node.idf
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
- interface
- Fibonachi.services
- false
-
diff --git a/assets/IS/Packages/Fibonachi/pub/index.html b/assets/IS/Packages/Fibonachi/pub/index.html
deleted file mode 100644
index 502f1ea69..000000000
--- a/assets/IS/Packages/Fibonachi/pub/index.html
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
Welcome to the Home Page for the Fibonachi Package.
\ No newline at end of file
diff --git a/assets/IS/Tests/FibonachiTest/.classpath b/assets/IS/Tests/FibonachiTest/.classpath
deleted file mode 100644
index 3485755ac..000000000
--- a/assets/IS/Tests/FibonachiTest/.classpath
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
diff --git a/assets/IS/Tests/FibonachiTest/.classpath.swp b/assets/IS/Tests/FibonachiTest/.classpath.swp
deleted file mode 100644
index 9cd3016c3..000000000
Binary files a/assets/IS/Tests/FibonachiTest/.classpath.swp and /dev/null differ
diff --git a/assets/IS/Tests/FibonachiTest/.project b/assets/IS/Tests/FibonachiTest/.project
deleted file mode 100644
index c8e6fd4ce..000000000
--- a/assets/IS/Tests/FibonachiTest/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- FibonachiTest
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
-
- org.eclipse.jdt.core.javanature
-
-
diff --git a/assets/IS/Tests/FibonachiTest/.settings/org.eclipse.jdt.core.prefs b/assets/IS/Tests/FibonachiTest/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 8fec98aea..000000000
--- a/assets/IS/Tests/FibonachiTest/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,12 +0,0 @@
-#Thu Jan 10 14:25:20 CET 2013
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/assets/IS/Tests/FibonachiTest/bin/.gitignore b/assets/IS/Tests/FibonachiTest/bin/.gitignore
deleted file mode 100644
index 9e21f06c3..000000000
--- a/assets/IS/Tests/FibonachiTest/bin/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/PackageTest/
-/test/
diff --git a/assets/IS/Tests/FibonachiTest/resources/test/xml/data/fibExpectedOutput.xml b/assets/IS/Tests/FibonachiTest/resources/test/xml/data/fibExpectedOutput.xml
deleted file mode 100644
index 484a0545c..000000000
--- a/assets/IS/Tests/FibonachiTest/resources/test/xml/data/fibExpectedOutput.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
- 8
-
-
diff --git a/assets/IS/Tests/FibonachiTest/resources/test/xml/data/fibWrongInput.xml b/assets/IS/Tests/FibonachiTest/resources/test/xml/data/fibWrongInput.xml
deleted file mode 100644
index cdd9897ec..000000000
--- a/assets/IS/Tests/FibonachiTest/resources/test/xml/data/fibWrongInput.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
- -1
-
-
diff --git a/assets/IS/Tests/FibonachiTest/resources/test/xml/data/finInput.xml b/assets/IS/Tests/FibonachiTest/resources/test/xml/data/finInput.xml
deleted file mode 100644
index 1394e3d06..000000000
--- a/assets/IS/Tests/FibonachiTest/resources/test/xml/data/finInput.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
- 6
-
-
diff --git a/assets/IS/Tests/FibonachiTest/resources/test/xml/data/mockSubstractIntWrong.xml b/assets/IS/Tests/FibonachiTest/resources/test/xml/data/mockSubstractIntWrong.xml
deleted file mode 100644
index 3b1c44f94..000000000
--- a/assets/IS/Tests/FibonachiTest/resources/test/xml/data/mockSubstractIntWrong.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
- 5
-
-
diff --git a/assets/IS/Tests/FibonachiTest/resources/test/xml/setup/FibonachiTest.xml b/assets/IS/Tests/FibonachiTest/resources/test/xml/setup/FibonachiTest.xml
deleted file mode 100644
index afcde751a..000000000
--- a/assets/IS/Tests/FibonachiTest/resources/test/xml/setup/FibonachiTest.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
new file mode 100644
index 000000000..52d1bc64a
--- /dev/null
+++ b/azure-pipelines.yml
@@ -0,0 +1,29 @@
+# Starter pipeline
+# Start with a minimal pipeline that you can customize to build and deploy your code.
+# Add steps that build, run tests, deploy, and more:
+# https://aka.ms/yaml
+
+trigger:
+- master
+
+pool:
+ vmImage: ubuntu-latest
+
+steps:
+- script: echo Hello, world!
+ displayName: 'Run a one-line script'
+
+- task: HelmDeploy@0
+ inputs:
+ connectionType: 'Azure Resource Manager'
+ azureSubscription: 'ANZ Demo Lab(42b15b9e-f06c-4055-af2f-e24798bdf664)'
+ azureResourceGroup: 'DemoLabRG'
+ kubernetesCluster: 'DemoLabCluster'
+ namespace: 'nodetours'
+ command: 'upgrade'
+ chartType: 'Name'
+ chartName: 'softwareag-bookstore'
+ releaseName: bookstore
+ overrideValues: 'image.repository=demolabacr.azurecr.io/wmd-bookstore,image.tag=2'
+ force: true
+ arguments: '--timeout=10m0s'
diff --git a/bookstore.swagger b/bookstore.swagger
new file mode 100644
index 000000000..19e38da26
--- /dev/null
+++ b/bookstore.swagger
@@ -0,0 +1,199 @@
+---
+swagger: "2.0"
+info:
+ description: "Bookstore API Sample"
+ version: "1.0"
+ title: "Bookstore API"
+host: "softwareag-bookstore.development:5555"
+basePath: "/rad/bookstore:BooksRAD"
+schemes:
+- "http"
+consumes:
+- "application/json"
+produces:
+- "application/json"
+paths:
+ /books:
+ get:
+ operationId: "books_GET_1"
+ parameters: []
+ responses:
+ 200:
+ description: "OK"
+ schema:
+ $ref: "#/definitions/books_GET_response"
+ 401:
+ description: "Access Denied"
+ schema:
+ $ref: "#/definitions/books_GET_response"
+ /books/{isbn}:
+ get:
+ operationId: "booksisbn_GET_2"
+ parameters:
+ - name: "isbn"
+ in: "path"
+ required: true
+ type: "string"
+ responses:
+ 200:
+ description: "OK"
+ schema:
+ $ref: "#/definitions/booksisbn_GET_response"
+ 401:
+ description: "Access Denied"
+ /rating/{isbn}:
+ get:
+ operationId: "ratingisbn_GET_3"
+ parameters:
+ - name: "isbn"
+ in: "path"
+ required: true
+ type: "string"
+ responses:
+ 200:
+ description: "OK"
+ schema:
+ $ref: "#/definitions/ratingisbn_GET_response"
+ 401:
+ description: "Access Denied"
+ put:
+ operationId: "ratingisbn_PUT_3"
+ parameters:
+ - name: "isbn"
+ in: "path"
+ required: true
+ type: "string"
+ - in: "body"
+ name: "rating"
+ required: true
+ schema:
+ $ref: "#/definitions/rating_1"
+ responses:
+ 200:
+ description: "OK"
+ schema:
+ $ref: "#/definitions/ratingisbn_PUT_response"
+ 401:
+ description: "Access Denied"
+definitions:
+ ratinglist:
+ required:
+ - "ratinglist"
+ properties:
+ ratinglist:
+ $ref: "#/definitions/ratinglist_1"
+ description: "generated by webMethods"
+ ratingisbn_PUT_response:
+ required:
+ - "result"
+ properties:
+ result:
+ type: "string"
+ rating_1:
+ required:
+ - "rating"
+ properties:
+ rating:
+ $ref: "#/definitions/rating"
+ rating:
+ required:
+ - "comment"
+ - "score"
+ - "user"
+ properties:
+ score:
+ type: "string"
+ datetime:
+ type: "string"
+ comment:
+ type: "string"
+ user:
+ type: "string"
+ description: "generated by webMethods"
+ book_1:
+ required:
+ - "book"
+ properties:
+ book:
+ $ref: "#/definitions/book"
+ booklist_1:
+ required:
+ - "book"
+ properties:
+ book:
+ type: "array"
+ items:
+ $ref: "#/definitions/book"
+ books_GET_response:
+ required:
+ - "booklist"
+ properties:
+ booklist:
+ $ref: "#/definitions/booklist"
+ ratingisbn_GET_response:
+ required:
+ - "ratinglist"
+ properties:
+ ratinglist:
+ $ref: "#/definitions/ratinglist"
+ ratinglist_1:
+ required:
+ - "@isbn"
+ - "rating"
+ properties:
+ '@isbn':
+ type: "string"
+ rating:
+ type: "array"
+ items:
+ $ref: "#/definitions/rating"
+ book:
+ required:
+ - "@isbn"
+ - "author"
+ - "coverurl"
+ - "description"
+ - "detailsurl"
+ - "price"
+ - "rating"
+ - "ratingsurl"
+ - "thumbnailurl"
+ - "title"
+ - "votes"
+ properties:
+ coverurl:
+ type: "string"
+ '@isbn':
+ type: "string"
+ detailsurl:
+ type: "string"
+ author:
+ type: "string"
+ price:
+ type: "string"
+ ratingsurl:
+ type: "string"
+ rating:
+ type: "string"
+ description:
+ type: "string"
+ votes:
+ type: "string"
+ title:
+ type: "string"
+ thumbnailurl:
+ type: "string"
+ description: "generated by webMethods"
+ booklist:
+ required:
+ - "booklist"
+ properties:
+ booklist:
+ $ref: "#/definitions/booklist_1"
+ description: "generated by webMethods"
+ booksisbn_GET_response:
+ required:
+ - "book"
+ properties:
+ book:
+ $ref: "#/definitions/book_1"
diff --git a/build.xml b/build.xml
deleted file mode 100644
index eda02ba92..000000000
--- a/build.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/project.properties b/project.properties
deleted file mode 100644
index a900c1312..000000000
--- a/project.properties
+++ /dev/null
@@ -1,18 +0,0 @@
-#CI Project Layout
-#mofidy only if you diviate from the standard structure
-
-#Asset paths
-# Use slash "/" as path separator. Example: Use "C:/SoftwareAG", instead of "C:\SoftwareAG".
-isPackages=./assets/IS/Packages
-isTests=./assets/IS/Tests
-isConfigDir=./assets/IS/config
-bpmProjects=./assets/BPM/
-mwsProjects=./assets/MWS/
-rulesProjects=./assets/Rules/
-#Should always be named UniversalMessaging
-umExport=./assets/UniversalMessaging
-
-
-
-
-
diff --git a/prometheus.yaml b/prometheus.yaml
new file mode 100644
index 000000000..3ae056c56
--- /dev/null
+++ b/prometheus.yaml
@@ -0,0 +1,33 @@
+apiVersion: v1
+kind: Secret
+metadata:
+ name: exporter-msr-monitoring-secret
+ namespace: monitor
+type: Opaque
+data:
+ username: QWRtaW5pc3RyYXRvcg==
+ password: bWFuYWdl
+---
+apiVersion: monitoring.coreos.com/v1
+kind: ServiceMonitor
+metadata:
+ name: exporter-msr-monitoring
+ namespace: monitor
+ labels:
+ release: kube-prometheus
+spec:
+ jobLabel: msr
+ selector:
+ matchLabels:
+ app: softwareag-bookstore
+ endpoints:
+ - port: api
+ path: /metrics
+ interval: 15s
+ basicAuth:
+ username:
+ name: exporter-msr-monitoring-secret
+ key: username
+ password:
+ name: exporter-msr-monitoring-secret
+ key: password
\ No newline at end of file
diff --git a/prometheus.yml b/prometheus.yml
new file mode 100644
index 000000000..62974494d
--- /dev/null
+++ b/prometheus.yml
@@ -0,0 +1,6 @@
+- job_name: 'bookstore'
+ static_configs:
+ - targets: ['softwareag-bookstore:5555']
+- job_name: 'microgateway'
+ static_configs:
+ - targets: ['softwareag-microgateway:4485']
diff --git a/secrtets.yaml b/secrtets.yaml
new file mode 100644
index 000000000..bd30d7de9
--- /dev/null
+++ b/secrtets.yaml
@@ -0,0 +1,11 @@
+apiVersion: v1
+kind: List
+metadata: {}
+items:
+- apiVersion: v1
+ kind: Secret
+ metadata:
+ name: apigateway-cred
+ stringData:
+ username: Administrator
+ password: manage
diff --git a/softwareag-bookstore-0.1.0.tgz b/softwareag-bookstore-0.1.0.tgz
new file mode 100644
index 000000000..a680b805d
Binary files /dev/null and b/softwareag-bookstore-0.1.0.tgz differ
diff --git a/softwareag-bookstore-0.1.0.tgz.prov b/softwareag-bookstore-0.1.0.tgz.prov
new file mode 100644
index 000000000..be16a4d6f
--- /dev/null
+++ b/softwareag-bookstore-0.1.0.tgz.prov
@@ -0,0 +1,25 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA512
+
+apiVersion: v1
+appVersion: "1.0"
+description: A Helm chart for Kubernetes
+name: softwareag-bookstore
+version: 0.1.0
+
+...
+files:
+ softwareag-bookstore-0.1.0.tgz: sha256:9333ead8daf21031a37ed4a501ad5e8dc72e7a30885674de7f6833b119cbc734
+-----BEGIN PGP SIGNATURE-----
+
+wsDcBAEBCgAQBQJezbT+CRAnH9MhcetFMwAAVxQMADv1tjZL6T+PUZP7Rfki+l+7
+kmy3fCLR4OZh0cHT3G4hWFfNIfhCvYVnJRC5TAzdh90bLiBC+ms5VSZ7GXYwcApR
+8EJ0qM5tuZPSxI6kJjKaB9tmxptIafrm9llLH0WbuVffbteJgbEKar3O8BBAyO57
+Wdvpecc0hPD1oC7dQ/HcwlyWJxsJ6HAQjeeS0kKhoUhJw5vYyWZ68B1lOLdZ/WIt
+GGfT5sg0P38rAI3GB9lum5iWxjOwjqyrvuKwFAkGoDq9Qu5rV1SsF2yblL71p5oc
+v0PY04Almhd0C3Ae2acMZj7tO73+Z98rKao+a7mEVIPahJfogqAptBu0uL2ZoQUC
+4ZSyRzN70zoJG9mx/nhwkMR7ERtVNObeybrhWrSvK+hgoNT75D4O2T97pvqVAn8S
+6EMToqHcrJUgQ4lbjPj7XvkCE6gYPLwLy5TP2A7+kZWG+9zk62ZMn+OsBsgnRPW3
+ld5BAkd5UezGlyWdI3QZjCrsIn2f6Kk8LAd5QAFZJg==
+=xF4U
+-----END PGP SIGNATURE-----
\ No newline at end of file
diff --git a/assets/BPM/.gitignore b/softwareag-bookstore/.gnupg/S.gpg-agent
similarity index 100%
rename from assets/BPM/.gitignore
rename to softwareag-bookstore/.gnupg/S.gpg-agent
diff --git a/assets/MWS/.gitignore b/softwareag-bookstore/.gnupg/S.gpg-agent.browser
similarity index 100%
rename from assets/MWS/.gitignore
rename to softwareag-bookstore/.gnupg/S.gpg-agent.browser
diff --git a/softwareag-bookstore/.gnupg/S.gpg-agent.extra b/softwareag-bookstore/.gnupg/S.gpg-agent.extra
new file mode 100644
index 000000000..e69de29bb
diff --git a/softwareag-bookstore/.gnupg/S.gpg-agent.ssh b/softwareag-bookstore/.gnupg/S.gpg-agent.ssh
new file mode 100644
index 000000000..e69de29bb
diff --git a/softwareag-bookstore/.gnupg/my_gpg_key b/softwareag-bookstore/.gnupg/my_gpg_key
new file mode 100644
index 000000000..805debe35
--- /dev/null
+++ b/softwareag-bookstore/.gnupg/my_gpg_key
@@ -0,0 +1,11 @@
+%echo Generating a basic OpenPGP key
+Key-Type: RSA
+Key-Length: 2048
+Subkey-Type: RSA
+Subkey-Length: 2048
+Name-Real: Software AG
+Name-Comment: esiwa
+Name-Email: ian.ward@softwareag.com
+Expire-Date: 0
+%no-protection
+%commit
diff --git a/softwareag-bookstore/.gnupg/private-keys-v1.d/430AA768913AE44E8B09BDB55FFA53D18DDAEFDB.key b/softwareag-bookstore/.gnupg/private-keys-v1.d/430AA768913AE44E8B09BDB55FFA53D18DDAEFDB.key
new file mode 100644
index 000000000..e36cd7aa0
Binary files /dev/null and b/softwareag-bookstore/.gnupg/private-keys-v1.d/430AA768913AE44E8B09BDB55FFA53D18DDAEFDB.key differ
diff --git a/softwareag-bookstore/.gnupg/private-keys-v1.d/63449EF1BD0EDD77EE64019A4DE29D5E1AF35CA8.key b/softwareag-bookstore/.gnupg/private-keys-v1.d/63449EF1BD0EDD77EE64019A4DE29D5E1AF35CA8.key
new file mode 100644
index 000000000..d0060c11b
Binary files /dev/null and b/softwareag-bookstore/.gnupg/private-keys-v1.d/63449EF1BD0EDD77EE64019A4DE29D5E1AF35CA8.key differ
diff --git a/softwareag-bookstore/.gnupg/pubring.kbx.lock b/softwareag-bookstore/.gnupg/pubring.kbx.lock
new file mode 100644
index 000000000..02f4998d9
--- /dev/null
+++ b/softwareag-bookstore/.gnupg/pubring.kbx.lock
@@ -0,0 +1,2 @@
+ 25030
+SAG-DTBNPC2
diff --git a/softwareag-bookstore/.gnupg/pubring.kbx.tmp b/softwareag-bookstore/.gnupg/pubring.kbx.tmp
new file mode 100644
index 000000000..ec2b092c4
Binary files /dev/null and b/softwareag-bookstore/.gnupg/pubring.kbx.tmp differ
diff --git a/softwareag-bookstore/.gnupg/pubring.kbx~ b/softwareag-bookstore/.gnupg/pubring.kbx~
new file mode 100644
index 000000000..59b760e8a
Binary files /dev/null and b/softwareag-bookstore/.gnupg/pubring.kbx~ differ
diff --git a/softwareag-bookstore/.helmignore b/softwareag-bookstore/.helmignore
new file mode 100644
index 000000000..f0c131944
--- /dev/null
+++ b/softwareag-bookstore/.helmignore
@@ -0,0 +1,21 @@
+# Patterns to ignore when building packages.
+# This supports shell glob matching, relative path matching, and
+# negation (prefixed with !). Only one pattern per line.
+.DS_Store
+# Common VCS dirs
+.git/
+.gitignore
+.bzr/
+.bzrignore
+.hg/
+.hgignore
+.svn/
+# Common backup files
+*.swp
+*.bak
+*.tmp
+*~
+# Various IDEs
+.project
+.idea/
+*.tmproj
diff --git a/softwareag-bookstore/Chart.yaml b/softwareag-bookstore/Chart.yaml
new file mode 100644
index 000000000..c452c1880
--- /dev/null
+++ b/softwareag-bookstore/Chart.yaml
@@ -0,0 +1,5 @@
+apiVersion: v1
+appVersion: "1.0"
+description: A Helm chart for Kubernetes
+name: softwareag-bookstore
+version: 0.1.0
diff --git a/softwareag-bookstore/templates/_helpers.tpl b/softwareag-bookstore/templates/_helpers.tpl
new file mode 100644
index 000000000..6fe509ffa
--- /dev/null
+++ b/softwareag-bookstore/templates/_helpers.tpl
@@ -0,0 +1,32 @@
+{{/* vim: set filetype=mustache: */}}
+{{/*
+Expand the name of the chart.
+*/}}
+{{- define "softwareag-bookstore.name" -}}
+{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+
+{{/*
+Create a default fully qualified app name.
+We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
+If release name contains chart name it will be used as a full name.
+*/}}
+{{- define "softwareag-bookstore.fullname" -}}
+{{- if .Values.fullnameOverride -}}
+{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
+{{- else -}}
+{{- $name := default .Chart.Name .Values.nameOverride -}}
+{{- if contains $name .Release.Name -}}
+{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
+{{- else -}}
+{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+Create chart name and version as used by the chart label.
+*/}}
+{{- define "softwareag-bookstore.chart" -}}
+{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
diff --git a/softwareag-bookstore/templates/configmap.yaml b/softwareag-bookstore/templates/configmap.yaml
new file mode 100644
index 000000000..199fee3f8
--- /dev/null
+++ b/softwareag-bookstore/templates/configmap.yaml
@@ -0,0 +1,31 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: {{ .Values.name }}-properties
+data:
+ config1.toml: |-
+ message = Hello from config 1
+
+ application.properties: |-
+ artConnection.Bookstore.bookstore.connections.DBConnection.password = {AES}5WRqqeRxVlItnZq0mUycdg\=\=
+ artConnection.Bookstore.bookstore.connections.DBConnection.serverName = sqlserver.greenzone
+ jdbc.common.dbURL = jdbc\:wm\:sqlserver\://sqlserver.greenzone;databaseName\=webmdb
+ jdbc.common.password = {AES}Y5IgMqjfvkgbg7p5VUZztw\=\=
+ jdbc.common.userid = webm
+ healthindicators.Adapters.enabled = true
+ healthindicators.Cluster.enabled = true
+ healthindicators.Cluster.properties.threshold.value = 2
+ healthindicators.Diskspace.enabled = true
+ healthindicators.Diskspace.properties.threshold.value = 10
+ healthindicators.JDBC.enabled = true
+ healthindicators.JMS.enabled = true
+ healthindicators.JNDIAliases.enabled = false
+ healthindicators.Memory.enabled = true
+ healthindicators.Memory.properties.threshold.value = 10
+ healthindicators.RemoteServers.enabled = true
+ healthindicators.SFTPServers.enabled = true
+ healthindicators.ServiceThread.enabled = true
+ healthindicators.ServiceThread.properties.threshold.value = 10
+ healthindicators.Sessions.enabled = true
+ healthindicators.Sessions.properties.threshold.value = 85
+ healthindicators.UMAliases.enabled = true
\ No newline at end of file
diff --git a/softwareag-bookstore/templates/deployment.yaml b/softwareag-bookstore/templates/deployment.yaml
new file mode 100644
index 000000000..be5ea52c9
--- /dev/null
+++ b/softwareag-bookstore/templates/deployment.yaml
@@ -0,0 +1,89 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: {{ template "softwareag-bookstore.fullname" . }}
+ labels:
+ app: {{ template "softwareag-bookstore.name" . }}
+ chart: {{ template "softwareag-bookstore.chart" . }}
+ release: {{ .Release.Name }}
+ heritage: {{ .Release.Service }}
+ engine: "msr"
+spec:
+ replicas: {{ .Values.replicaCount }}
+ selector:
+ matchLabels:
+ app: {{ template "softwareag-bookstore.name" . }}
+ release: {{ .Release.Name }}
+ template:
+ metadata:
+ annotations:
+ prometheus.io/scrape: "true"
+ prometheus.io/port: "5555"
+ labels:
+ app: {{ template "softwareag-bookstore.name" . }}
+ release: {{ .Release.Name }}
+ spec:
+ securityContext:
+ runAsUser: {{ default 0 .Values.RunAsUser }}
+{{- if and (.Values.RunAsUser) (.Values.FsGroup) }}
+{{- if not (eq .Values.RunAsUser 0.0) }}
+ fsGroup: {{ .Values.FsGroup }}
+{{- end }}
+{{- end }}
+ imagePullSecrets:
+ - name: regcred
+ containers:
+ - name: {{ .Chart.Name }}
+ image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
+ env:
+ - name: SAG_IS_CONFIG_PROPERTIES
+ value: /opt/softwareag/IntegrationServer/properties/application.properties
+ volumeMounts:
+ - name: {{ .Values.name }}-properties
+ mountPath: /opt/softwareag/IntegrationServer/properties
+ imagePullPolicy: {{ .Values.image.pullPolicy }}
+ ports:
+ - name: is
+ containerPort: 5555
+ protocol: TCP
+ livenessProbe:
+ initialDelaySeconds: 30
+ periodSeconds: 5
+ failureThreshold: 20
+ httpGet:
+ path: /health
+ port: is
+ httpHeaders:
+ - name: Authorization
+ value: "Basic QWRtaW5pc3RyYXRvcjptYW5hZ2U="
+ readinessProbe:
+ initialDelaySeconds: 30
+ periodSeconds: 5
+ failureThreshold: 20
+ httpGet:
+ path: /health
+ port: is
+ httpHeaders:
+ - name: Authorization
+ value: "Basic QWRtaW5pc3RyYXRvcjptYW5hZ2U="
+ resources:
+{{ toYaml .Values.resources | indent 10 }}
+ {{- with .Values.nodeSelector }}
+ nodeSelector:
+{{ toYaml . | indent 6 }}
+ {{- end }}
+ {{- with .Values.affinity }}
+ affinity:
+{{ toYaml . | indent 8 }}
+ {{- end }}
+ {{- with .Values.tolerations }}
+ tolerations:
+{{ toYaml . | indent 8 }}
+ {{- end }}
+ volumes:
+ - name: {{ .Values.name }}-properties
+ configMap:
+ name: {{ .Values.name }}-properties
+{{- if .Values.Persistence.volumes }}
+{{ toYaml .Values.Persistence.volumes | indent 6 }}
+{{- end }}
diff --git a/softwareag-bookstore/templates/service.yaml b/softwareag-bookstore/templates/service.yaml
new file mode 100644
index 000000000..c4ecfc74a
--- /dev/null
+++ b/softwareag-bookstore/templates/service.yaml
@@ -0,0 +1,19 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ template "softwareag-bookstore.fullname" . }}
+ labels:
+ app: {{ template "softwareag-bookstore.name" . }}
+ chart: {{ template "softwareag-bookstore.chart" . }}
+ release: {{ .Release.Name }}
+ heritage: {{ .Release.Service }}
+spec:
+ type: {{ .Values.service.type }}
+ ports:
+ - port: {{ .Values.service.runtimeport }}
+ targetPort: 5555
+ protocol: TCP
+ name: api
+ selector:
+ app: {{ template "softwareag-bookstore.name" . }}
+ release: {{ .Release.Name }}
diff --git a/softwareag-bookstore/values.yaml b/softwareag-bookstore/values.yaml
new file mode 100644
index 000000000..d53ac3f71
--- /dev/null
+++ b/softwareag-bookstore/values.yaml
@@ -0,0 +1,64 @@
+# Default values for softwareag-bookstore.
+# This is a YAML-formatted file.
+# Declare variables to be passed into your templates.
+
+replicaCount: 1
+
+RunAsUser: 1724
+FsGroup: 1724
+
+name: bookstore
+
+image:
+ repository: docker.devopsinitiative.com/bookstore
+ tag: stable
+ pullPolicy: IfNotPresent
+
+service:
+ type: ClusterIP
+ runtimeport: 5555
+
+resources:
+ # We usually recommend not to specify default resources and to leave this as a conscious
+ # choice for the user. This also increases chances charts run on environments with little
+ # resources, such as Minikube. If you do want to specify resources, uncomment the following
+ # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
+ # limits:
+ # cpu: 100m
+ # memory: 128Mi
+ requests:
+ cpu: 10m
+ memory: 128Mi
+
+nodeSelector: {}
+
+tolerations: []
+
+affinity: {}
+
+Persistence:
+ Enabled: false
+ ## A manually managed Persistent Volume and Claim
+ ## Requires Persistence.Enabled: true
+ ## If defined, PVC must be created manually before volume will be bound
+ # ExistingClaim:
+
+ ## jenkins data Persistent Volume Storage Class
+ ## If defined, storageClassName:
+ ## If set to "-", storageClassName: "", which disables dynamic provisioning
+ ## If undefined (the default) or set to null, no storageClassName spec is
+ ## set, choosing the default provisioner. (gp2 on AWS, standard on
+ ## GKE, AWS & OpenStack)
+ ##
+ # StorageClass: "-"
+
+ # Annotations: {}
+ # AccessMode: ReadWriteOnce
+ # Size: 8Gi
+ # volumes:
+ # - name: nothing
+ # emptyDir: {}
+ # mounts:
+ # - mountPath: /var/nothing
+ # name: nothing
+ # readOnly: true