Skip to content

Commit

Permalink
deploy: b29f758
Browse files Browse the repository at this point in the history
  • Loading branch information
aghilish committed May 14, 2024
1 parent 356d382 commit 064d86d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -3920,7 +3920,7 @@ <h2 id="9-implement-the-ghost-operator-logic-part-2---rbac"><a class="header" hr
<pre><code class="language-shell">make manifests
</code></pre>
<p>The generated manifest for the manager cluster role, will be generated at <code>config/rbac/role.yaml</code></p>
<h2 id="10-implement-the-ghost-operator-logic-part-2---deployment"><a class="header" href="#10-implement-the-ghost-operator-logic-part-2---deployment">10. Implement the Ghost Operator Logic, Part 2 - Deployment</a></h2>
<h2 id="10-implement-the-ghost-operator-logic-part-3---deployment"><a class="header" href="#10-implement-the-ghost-operator-logic-part-3---deployment">10. Implement the Ghost Operator Logic, Part 3 - Deployment</a></h2>
<p>Next, we add the deployment create and update logic to our controller. For that we copy the following snippet to our controller.
The logic is very similar to the previous snippet. However there is one key difference and that is that <code>addOrUpdateDeployment</code> can also update a deployment in case the deployed <code>imageTag</code> for the ghost image is different from the one coming from the <code>ghost.Spec</code> aka. desired state.</p>
<pre><code class="language-go">func (r *GhostReconciler) addOrUpdateDeployment(ctx context.Context, ghost *blogv1.Ghost) error {
Expand Down Expand Up @@ -4039,7 +4039,7 @@ <h2 id="10-implement-the-ghost-operator-logic-part-2---deployment"><a class="hea
<p>Let's make sure <code>apps/v1</code> import statement is added to the import section.</p>
<pre><code class="language-go">appsv1 &quot;k8s.io/api/apps/v1&quot;
</code></pre>
<h2 id="11-implement-the-ghost-operator-logic-part-3---service"><a class="header" href="#11-implement-the-ghost-operator-logic-part-3---service">11. Implement the Ghost Operator Logic, Part 3 - Service</a></h2>
<h2 id="11-implement-the-ghost-operator-logic-part-4---service"><a class="header" href="#11-implement-the-ghost-operator-logic-part-4---service">11. Implement the Ghost Operator Logic, Part 4 - Service</a></h2>
<p>And Lastly we need to add a service for our deployment. For now let's choose a service of type <code>NodePort</code></p>
<pre><code class="language-yaml">apiVersion: v1
kind: Service
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tutorials/extending-k8s.html
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ <h2 id="9-implement-the-ghost-operator-logic-part-2---rbac"><a class="header" hr
<pre><code class="language-shell">make manifests
</code></pre>
<p>The generated manifest for the manager cluster role, will be generated at <code>config/rbac/role.yaml</code></p>
<h2 id="10-implement-the-ghost-operator-logic-part-2---deployment"><a class="header" href="#10-implement-the-ghost-operator-logic-part-2---deployment">10. Implement the Ghost Operator Logic, Part 2 - Deployment</a></h2>
<h2 id="10-implement-the-ghost-operator-logic-part-3---deployment"><a class="header" href="#10-implement-the-ghost-operator-logic-part-3---deployment">10. Implement the Ghost Operator Logic, Part 3 - Deployment</a></h2>
<p>Next, we add the deployment create and update logic to our controller. For that we copy the following snippet to our controller.
The logic is very similar to the previous snippet. However there is one key difference and that is that <code>addOrUpdateDeployment</code> can also update a deployment in case the deployed <code>imageTag</code> for the ghost image is different from the one coming from the <code>ghost.Spec</code> aka. desired state.</p>
<pre><code class="language-go">func (r *GhostReconciler) addOrUpdateDeployment(ctx context.Context, ghost *blogv1.Ghost) error {
Expand Down Expand Up @@ -759,7 +759,7 @@ <h2 id="10-implement-the-ghost-operator-logic-part-2---deployment"><a class="hea
<p>Let's make sure <code>apps/v1</code> import statement is added to the import section.</p>
<pre><code class="language-go">appsv1 &quot;k8s.io/api/apps/v1&quot;
</code></pre>
<h2 id="11-implement-the-ghost-operator-logic-part-3---service"><a class="header" href="#11-implement-the-ghost-operator-logic-part-3---service">11. Implement the Ghost Operator Logic, Part 3 - Service</a></h2>
<h2 id="11-implement-the-ghost-operator-logic-part-4---service"><a class="header" href="#11-implement-the-ghost-operator-logic-part-4---service">11. Implement the Ghost Operator Logic, Part 4 - Service</a></h2>
<p>And Lastly we need to add a service for our deployment. For now let's choose a service of type <code>NodePort</code></p>
<pre><code class="language-yaml">apiVersion: v1
kind: Service
Expand Down

0 comments on commit 064d86d

Please sign in to comment.