diff --git a/pom.xml b/pom.xml index 8bc6e814a0..ad3f0abd98 100644 --- a/pom.xml +++ b/pom.xml @@ -675,6 +675,7 @@ *.ini *.mustache *.smp + *.tpl *.txt mvnw mvnw.cmd diff --git a/scm-packaging/helm/pom.xml b/scm-packaging/helm/pom.xml new file mode 100644 index 0000000000..3a7fc3ca4f --- /dev/null +++ b/scm-packaging/helm/pom.xml @@ -0,0 +1,143 @@ + + + + + 4.0.0 + + + sonia.scm.packaging + scm-packaging + 2.0.0-SNAPSHOT + + + helm + helm + 2.0.0-SNAPSHOT + + + 3.2.0 + + + + + + + org.codehaus.gmavenplus + gmavenplus-plugin + 1.9.0 + + + org.codehaus.groovy + groovy-all + 3.0.3 + pom + runtime + + + + + add-helm-url + validate + + execute + + + + + + + + + + + + org.apache.maven.plugins + maven-resources-plugin + 3.1.0 + + + copy-resources + process-resources + + copy-resources + + + ${basedir}/target/chart + + + src/main/chart + false + + values.yaml + + + + src/main/chart + true + + values.yaml + + + + + + + + + + com.kiwigrid + helm-maven-plugin + 5.4 + true + + ${project.basedir}/target/chart + ${project.version} + false + ${project.version} + https://get.helm.sh/helm-v${helm.version}-${helm.os}-${helm.arch}.tar.gz + + + + + + + diff --git a/deployments/helm/.helmignore b/scm-packaging/helm/src/main/chart/.helmignore similarity index 100% rename from deployments/helm/.helmignore rename to scm-packaging/helm/src/main/chart/.helmignore diff --git a/deployments/helm/Chart.yaml b/scm-packaging/helm/src/main/chart/Chart.yaml similarity index 100% rename from deployments/helm/Chart.yaml rename to scm-packaging/helm/src/main/chart/Chart.yaml diff --git a/deployments/helm/templates/NOTES.txt b/scm-packaging/helm/src/main/chart/templates/NOTES.txt similarity index 100% rename from deployments/helm/templates/NOTES.txt rename to scm-packaging/helm/src/main/chart/templates/NOTES.txt diff --git a/deployments/helm/templates/_helpers.tpl b/scm-packaging/helm/src/main/chart/templates/_helpers.tpl similarity index 100% rename from deployments/helm/templates/_helpers.tpl rename to scm-packaging/helm/src/main/chart/templates/_helpers.tpl diff --git a/deployments/helm/templates/configmap.yaml b/scm-packaging/helm/src/main/chart/templates/configmap.yaml similarity index 100% rename from deployments/helm/templates/configmap.yaml rename to scm-packaging/helm/src/main/chart/templates/configmap.yaml diff --git a/deployments/helm/templates/deployment.yaml b/scm-packaging/helm/src/main/chart/templates/deployment.yaml similarity index 100% rename from deployments/helm/templates/deployment.yaml rename to scm-packaging/helm/src/main/chart/templates/deployment.yaml diff --git a/deployments/helm/templates/ingress.yaml b/scm-packaging/helm/src/main/chart/templates/ingress.yaml similarity index 100% rename from deployments/helm/templates/ingress.yaml rename to scm-packaging/helm/src/main/chart/templates/ingress.yaml diff --git a/deployments/helm/templates/pvc.yaml b/scm-packaging/helm/src/main/chart/templates/pvc.yaml similarity index 100% rename from deployments/helm/templates/pvc.yaml rename to scm-packaging/helm/src/main/chart/templates/pvc.yaml diff --git a/deployments/helm/templates/scripts.yaml b/scm-packaging/helm/src/main/chart/templates/scripts.yaml similarity index 100% rename from deployments/helm/templates/scripts.yaml rename to scm-packaging/helm/src/main/chart/templates/scripts.yaml diff --git a/deployments/helm/templates/service.yaml b/scm-packaging/helm/src/main/chart/templates/service.yaml similarity index 100% rename from deployments/helm/templates/service.yaml rename to scm-packaging/helm/src/main/chart/templates/service.yaml diff --git a/deployments/helm/values.yaml b/scm-packaging/helm/src/main/chart/values.yaml similarity index 85% rename from deployments/helm/values.yaml rename to scm-packaging/helm/src/main/chart/values.yaml index 84561cd619..9dc2d9db95 100644 --- a/deployments/helm/values.yaml +++ b/scm-packaging/helm/src/main/chart/values.yaml @@ -29,15 +29,10 @@ # replicaCount: 1 image: - repository: cloudogu/scm-manager - # TODO change after release, to something more stable - tag: latest + repository: scmmanager/scm-manager + tag: ${project.version} pullPolicy: Always -# plugins: -# - name: scm-review-plugin -# url: https://oss.cloudogu.com/jenkins/job/scm-manager/job/scm-manager-bitbucket/job/scm-review-plugin/job/develop/lastSuccessfulBuild/artifact/target/scm-review-plugin-2.0.0-SNAPSHOT.smp - nameOverride: "" fullnameOverride: "" @@ -72,19 +67,19 @@ persistence: ## # storageClass: "-" accessMode: ReadWriteOnce - size: 12Gi + size: 40Gi -resources: +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: 2000m - memory: 2048Mi - requests: - cpu: 50m - memory: 256Mi + #limits: + # cpu: 2000m + # memory: 2048Mi + #requests: + # cpu: 50m + # memory: 256Mi nodeSelector: {} diff --git a/scm-packaging/pom.xml b/scm-packaging/pom.xml index 972fe84ec2..4a593d2f81 100644 --- a/scm-packaging/pom.xml +++ b/scm-packaging/pom.xml @@ -45,6 +45,7 @@ unix windows docker + helm diff --git a/scm-packaging/unix/pom.xml b/scm-packaging/unix/pom.xml index 32ae14ad7e..5c41717a2b 100644 --- a/scm-packaging/unix/pom.xml +++ b/scm-packaging/unix/pom.xml @@ -91,7 +91,6 @@ - org.apache.maven.plugins maven-assembly-plugin