You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @robertcoltheart
Thanks for the issue, this was removed in the big refactoring for V8.
However as a workaround, you can just not install the CLI tool, then the cli will not run.
Or you could overwrite the "KubeOpsCli" prop to something that does not exist.
In the build targets file:
<TargetName="GenerateKustomizationConfig"DependsOnTargets="BaseConfig">
<MessageText="Generating Kustomization Configuration"Importance="high" />
<MessageText="Configuration path: $(KubeOpsConfigOut)"Importance="normal" />
<ExecCommand="$(KubeOpsCli) generate operator --out $(KubeOpsConfigOut) $(OperatorName) $(MSBuildProjectFullPath)" />
</Target>
<TargetName="GenerateOperatorResources"AfterTargets="CopyFilesToOutputDirectory"DependsOnTargets="BaseConfig"Condition="'$(OutputType.ToLowerInvariant())' == 'exe' And ('$(KubeOpsAssemblyTimestampBeforeCompile)' != '$(KubeOpsAssemblyTimestampAfterCompile)' Or '$(Configuration)' == 'Release')">
<ExecIgnoreExitCode="true"StandardOutputImportance="low"StandardErrorImportance="low"Command="$(KubeOpsCli) -h">
<OutputTaskParameter="ExitCode"PropertyName="CliInstalled" />
</Exec>
<MessageImportance="high"Condition="$(CliInstalled) == 1"Text="KubeOps CLI is not installed as tool, cannot generate stuff for projects. Please install it with 'dotnet tool install KubeOps.Cli' to use automatic build generation." />
<CallTargetContinueOnError="true"Targets="GenerateKustomizationConfig"Condition="$(CliInstalled) == 0" />
</Target>
Yeah, i've removed the tool for now, and that seems to solve the issue. There is a bit of a pause during the build while it tries to find the CLI, but its acceptable.
Is your feature request related to a problem? Please describe.
Previously you could use the
KubeOpsSkipOperator
project properties to control if the CLI runs or notDescribe the solution you would like
Ideally a project property that can disable the CLI during build
Additional Context
No response
The text was updated successfully, but these errors were encountered: