Skip to content

Bug [2099580] - This fix will take care of deletion part of CR in java Operator. #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 22, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,18 +456,11 @@ Below your `labelsForMemcached(Memcached m)` block in the

```
private Deployment createMemcachedDeployment(Memcached m) {
return new DeploymentBuilder()
Deployment deployment = new DeploymentBuilder()
.withMetadata(
new ObjectMetaBuilder()
.withName(m.getMetadata().getName())
.withNamespace(m.getMetadata().getNamespace())
.withOwnerReferences(
new OwnerReferenceBuilder()
.withApiVersion("v1")
.withKind("Memcached")
.withName(m.getMetadata().getName())
.withUid(m.getMetadata().getUid())
.build())
.build())
.withSpec(
new DeploymentSpecBuilder()
Expand Down Expand Up @@ -495,6 +488,8 @@ Below your `labelsForMemcached(Memcached m)` block in the
.build())
.build())
.build();
deployment.addOwnerReference(m);
return deployment;
}
```

Expand Down