Skip to content

Commit e09b45f

Browse files
author
Christoph Bühler
committed
fix(crd generator): use correct deployment api group (fixes #14)
1 parent 22d707f commit e09b45f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/KubeOps/Operator/Commands/Generators/OperatorGenerator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ public OperatorGenerator(EntitySerializer serializer)
2222
public async Task<int> OnExecuteAsync(CommandLineApplication app)
2323
{
2424
var output = _serializer.Serialize(new V1Deployment(
25-
V1Deployment.KubeApiVersion,
25+
$"{V1Deployment.KubeGroup}/{V1Deployment.KubeApiVersion}",
2626
V1Deployment.KubeKind,
2727
new V1ObjectMeta(name: "operator"),
2828
new V1DeploymentSpec
2929
{
3030
Replicas = 1,
31+
RevisionHistoryLimit = 0,
3132
Template = new V1PodTemplateSpec
3233
{
3334
Spec = new V1PodSpec

0 commit comments

Comments
 (0)