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