1
1
<Project DefaultTargets =" GenerateAfterBuild" >
2
2
<Target Name =" GenerateDockerfile" >
3
- <Message Text =" Generating Dockerfile" Importance =" high" />
4
- <Message Text =" Dockerfile path: $(KubeOpsDockerfilePath)" Importance =" normal" />
3
+ <Message Text =" Generating Dockerfile" Importance =" high" />
4
+ <Message Text =" Dockerfile path: $(KubeOpsDockerfilePath)" Importance =" normal" />
5
5
6
- <Message Condition =" Exists('$(KubeOpsDockerfilePath)')" Text =" Dockerfile already exists. Don't overwrite." Importance =" high" />
6
+ <Message Condition =" Exists('$(KubeOpsDockerfilePath)')" Text =" Dockerfile already exists. Don't overwrite."
7
+ Importance =" high" />
7
8
<Exec Condition =" !Exists('$(KubeOpsDockerfilePath)')"
8
- Command =" dotnet $(OutputPath)$(TargetFileName) generator docker --out $(KubeOpsDockerfilePath) --dotnet-tag $(KubeOpsDockerTag) --solution-dir $(SolutionDir) --target-file $(TargetFileName) --project-path $(ProjectPath)" />
9
+ Command =" dotnet $(OutputPath)$(TargetFileName) generator docker --out $(KubeOpsDockerfilePath) --dotnet-tag $(KubeOpsDockerTag) --solution-dir $(SolutionDir) --target-file $(TargetFileName) --project-path $(ProjectPath)" />
9
10
</Target >
10
11
11
12
<Target Name =" GenerateCrds" >
12
- <Message Text =" Generating CRDs" Importance =" high" />
13
- <Message Text =" Configuration path: $(KubeOpsCrdDir)" Importance =" normal" />
13
+ <Message Text =" Generating CRDs" Importance =" high" />
14
+ <Message Text =" Configuration path: $(KubeOpsCrdDir)" Importance =" normal" />
14
15
15
- <Exec Condition =" '$(KubeOpsCrdUseOldCrds)' == 'false'" Command =" dotnet $(OutputPath)$(TargetFileName) generator crds --out $(KubeOpsCrdDir) --format $(KubeOpsCrdFormat)" />
16
- <Exec Condition =" '$(KubeOpsCrdUseOldCrds)' == 'true'" Command =" dotnet $(OutputPath)$(TargetFileName) generator crds --out $(KubeOpsCrdDir) --format $(KubeOpsCrdFormat) --use-old-crds" />
16
+ <Exec Condition =" '$(KubeOpsCrdUseOldCrds)' == 'false'"
17
+ Command =" dotnet $(OutputPath)$(TargetFileName) generator crds --out $(KubeOpsCrdDir) --format $(KubeOpsCrdFormat)" />
18
+ <Exec Condition =" '$(KubeOpsCrdUseOldCrds)' == 'true'"
19
+ Command =" dotnet $(OutputPath)$(TargetFileName) generator crds --out $(KubeOpsCrdDir) --format $(KubeOpsCrdFormat) --use-old-crds" />
17
20
</Target >
18
21
19
22
<Target Name =" GenerateRbac" >
20
- <Message Text =" Generating Rbac roles" Importance =" high" />
21
- <Message Text =" Configuration path: $(KubeOpsRbacDir)" Importance =" normal" />
23
+ <Message Text =" Generating Rbac roles" Importance =" high" />
24
+ <Message Text =" Configuration path: $(KubeOpsRbacDir)" Importance =" normal" />
22
25
23
- <Exec Command =" dotnet $(OutputPath)$(TargetFileName) generator rbac --out $(KubeOpsRbacDir) --format $(KubeOpsRbacFormat)" />
26
+ <Exec
27
+ Command =" dotnet $(OutputPath)$(TargetFileName) generator rbac --out $(KubeOpsRbacDir) --format $(KubeOpsRbacFormat)" />
24
28
</Target >
25
29
26
30
<Target Name =" GenerateOperator" >
27
- <Message Text =" Generating Operator yamls" Importance =" high" />
28
- <Message Text =" Configuration path: $(KubeOpsOperatorDir)" Importance =" normal" />
31
+ <Message Text =" Generating Operator yamls" Importance =" high" />
32
+ <Message Text =" Configuration path: $(KubeOpsOperatorDir)" Importance =" normal" />
29
33
30
- <Exec Command =" dotnet $(OutputPath)$(TargetFileName) generator operator --out $(KubeOpsOperatorDir) --format $(KubeOpsOperatorFormat)" />
34
+ <Exec
35
+ Command =" dotnet $(OutputPath)$(TargetFileName) generator operator --out $(KubeOpsOperatorDir) --format $(KubeOpsOperatorFormat)" />
31
36
</Target >
32
37
33
38
<Target Name =" GenerateInstaller" >
34
- <Message Text =" Generating Installer yamls" Importance =" high" />
35
- <Message Text =" Configuration path: $(KubeOpsInstallerDir)" Importance =" normal" />
39
+ <Message Text =" Generating Installer yamls" Importance =" high" />
40
+ <Message Text =" Configuration path: $(KubeOpsInstallerDir)" Importance =" normal" />
36
41
37
- <Message Condition =" Exists('$(KubeOpsInstallerDir)')" Text =" Installer dir exists, don't overwrite contents." Importance =" high" />
42
+ <Message Condition =" Exists('$(KubeOpsInstallerDir)')" Text =" Installer dir exists, don't overwrite contents."
43
+ Importance =" high" />
38
44
<Exec Condition =" !Exists('$(KubeOpsInstallerDir)')"
39
- Command =" dotnet $(OutputPath)$(TargetFileName) generator installer --out $(KubeOpsInstallerDir) --format $(KubeOpsInstallerFormat) --crds-dir $(KubeOpsCrdDir) --rbac-dir $(KubeOpsRbacDir) --operator-dir $(KubeOpsOperatorDir)" />
45
+ Command =" dotnet $(OutputPath)$(TargetFileName) generator installer --out $(KubeOpsInstallerDir) --format $(KubeOpsInstallerFormat) --crds-dir $(KubeOpsCrdDir) --rbac-dir $(KubeOpsRbacDir) --operator-dir $(KubeOpsOperatorDir)" />
40
46
</Target >
41
47
42
48
<Target Name =" GenerateAfterBuild" AfterTargets =" Build" >
43
- <CallTarget Condition =" '$(KubeOpsSkipDockerfile)' == ''" Targets =" GenerateDockerfile" />
44
- <CallTarget Condition =" '$(KubeOpsSkipCrds)' == ''" Targets =" GenerateCrds" />
45
- <CallTarget Condition =" '$(KubeOpsSkipRbac)' == ''" Targets =" GenerateRbac" />
46
- <CallTarget Condition =" '$(KubeOpsSkipOperator)' == ''" Targets =" GenerateOperator" />
47
- <CallTarget Condition =" '$(KubeOpsSkipInstaller)' == ''" Targets =" GenerateInstaller" />
49
+ <CallTarget Condition =" '$(KubeOpsSkipDockerfile)' == ''" Targets =" GenerateDockerfile" />
50
+ <CallTarget Condition =" '$(KubeOpsSkipCrds)' == ''" Targets =" GenerateCrds" />
51
+ <CallTarget Condition =" '$(KubeOpsSkipRbac)' == ''" Targets =" GenerateRbac" />
52
+ <CallTarget Condition =" '$(KubeOpsSkipOperator)' == ''" Targets =" GenerateOperator" />
53
+ <CallTarget Condition =" '$(KubeOpsSkipInstaller)' == ''" Targets =" GenerateInstaller" />
48
54
</Target >
49
- </Project >
55
+ </Project >
0 commit comments