Skip to content

Commit c68166e

Browse files
author
juan.hermosillo@oracle.com
committed
generate helm chart package during build
1 parent 041af0c commit c68166e

File tree

5 files changed

+43
-4
lines changed

5 files changed

+43
-4
lines changed

docs/charts/index.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v1
2+
entries:
3+
weblogic-operator:
4+
- created: 2019-02-11T18:48:21.585588875-08:00
5+
description: Helm package for creation of the Weblogic operator.
6+
digest: de086ca50a523ec94afc216b0b45ca7d431c6c9c454ea5d26c1ccd76220a5e7f
7+
name: weblogic-operator
8+
urls:
9+
- https://oracle.github.io/weblogic-kubernetes-operator/charts/weblogic-operator-2.tgz
10+
version: "2"
11+
generated: 2019-02-11T18:48:21.584441288-08:00
17.8 KB
Binary file not shown.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
apiVersion: v1
22
entries:
33
weblogic-operator:
4-
- created: 2019-02-06T10:58:20.175515059-08:00
4+
- created: 2019-02-11T18:48:21.585588875-08:00
55
description: Helm package for creation of the Weblogic operator.
66
digest: de086ca50a523ec94afc216b0b45ca7d431c6c9c454ea5d26c1ccd76220a5e7f
77
name: weblogic-operator
88
urls:
9-
- https://oracle.github.io/weblogic-kubernetes-operator/weblogic-operator-2.tgz
9+
- https://oracle.github.io/weblogic-kubernetes-operator/charts/weblogic-operator-2.tgz
1010
version: "2"
11-
generated: 2019-02-06T10:58:20.173792276-08:00
11+
generated: 2019-02-11T18:48:21.584441288-08:00

kubernetes/package-helm-charts.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
SCRIPTPATH="$( cd "$(dirname "$0")" > /dev/null 2>&1 ; pwd -P )"
4+
5+
out="$(helm package $SCRIPTPATH/charts/weblogic-operator)"
6+
helm_package=$(echo $out | cut -d ':' -f 2)
7+
helm repo index $SCRIPTPATH/charts/weblogic-operator/ --url https://oracle.github.io/weblogic-kubernetes-operator/charts
8+
9+
cp $SCRIPTPATH/charts/weblogic-operator/index.yaml $SCRIPTPATH/../docs/charts
10+
mv $helm_package $SCRIPTPATH/../docs/charts/
11+
12+

kubernetes/pom.xml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,23 @@
4040
</execution>
4141
</executions>
4242
</plugin>
43-
43+
<plugin>
44+
<groupId>org.codehaus.mojo</groupId>
45+
<artifactId>exec-maven-plugin</artifactId>
46+
<version>1.6.0</version>
47+
<executions>
48+
<execution><!-- helm chart package-->
49+
<id>package-helm-charts</id>
50+
<phase>compile</phase>
51+
<goals>
52+
<goal>exec</goal>
53+
</goals>
54+
<configuration>
55+
<executable>${project.basedir}/package-helm-charts.sh</executable>
56+
</configuration>
57+
</execution>
58+
</executions>
59+
</plugin>
4460
</plugins>
4561
</build>
4662

0 commit comments

Comments
 (0)