-
Notifications
You must be signed in to change notification settings - Fork 18
/
createUseridsSecret.xml
executable file
·26 lines (23 loc) · 1.18 KB
/
createUseridsSecret.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<project name="createUseridsSecret" default="createUseridsSecret" basedir=".">
<target name="createUseridsSecret">
<echo message="creating liberty-userids secret" />
<mkdir dir="target/manifests" />
<copy file="manifests/deploy-ssoservice.yaml" tofile="target/manifests/deploy-ssoservice.yaml" overwrite="true" />
<exec osfamily="windows" dir="target/manifests" failonerror="true" executable="cmd">
<arg value="/c"/>
<arg value="kubectl"/>
<arg value="create"/>
<arg value="secret"/>
<arg value="generic"/>
<arg value="liberty-userids"/>
<arg value="--dry-run"/>
<arg value="-o"/>
<arg value="yaml"/>
<arg value="--from-file=../../src/main/liberty/userids.xml" />
<arg value=">ssousers.yaml" />
</exec>
<exec osfamily="unix" dir="target/manifests" failonerror="true" executable="kubectl" output="manifests/ssousers.yaml" >
<arg line="create secret generic liberty-userids --dry-run -o yaml --from-file=../../src/main/liberty/userids.xml"/>
</exec>
</target>
</project>