Skip to content

Commit 273700e

Browse files
Updated links
1 parent 75dbb6d commit 273700e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/2020-6-20-exploring-kubernetes-controllers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ I am by no means a Golang expert, and I'm still early in my journey to understan
7979

8080
The Controller (in action) behaves in a way I have not yet figured out because it is printing the Deployment twice when it sees the new annotation (where the arguments to these are oldObj, newObj), which could be due to the `AddFunc:` and `UpdateFunc:` both calling the function to get the deployments that match, respectively. Or it could be that there is no distinction between “Deployment” and “ReplicaSet” objects here, so both are printed (thoughts, so many thoughts). I put a couple of images below demonstrating the output you can expect if you print verbose/return deployment objects and format print the values (JSON blob).
8181

82-
![Figure 2. Controller in action](https://raw.githubusercontent.com/VariableExp0rt/VariableExp0rt.github.io/tree/master/images/controller-in-action.jpg)
82+
![Figure 2. Controller in action](https://raw.githubusercontent.com/VariableExp0rt/VariableExp0rt.github.io/master/images/controller-in-action.jpg)
8383

84-
![Figure 3. Deployment - described to view annotations](https://raw.githubusercontent.com/VariableExp0rt/VariableExp0rt.github.io/tree/master/images/deployment.jpg)
84+
![Figure 3. Deployment - described to view annotations](https://raw.githubusercontent.com/VariableExp0rt/VariableExp0rt.github.io/master/images/deployment.jpg)
8585

8686
If you see a lot of print statements "seen annotation", I verified that it is only picking up our deployment in the default namespace (if that's where you create it). However, you will see some periodic updates at an interval of 10 minutes due to the SharedIndexInformer (InformerFactory, in the `main` function) which also prints "seen annotation", this is something I'm looking at :)
8787

0 commit comments

Comments
 (0)