Browse Source

Update annotation document

Fixes #1982 to remove deprecated -c (--controller) flag from examples.
Chris Denneen 3 months ago
parent
commit
9089637efd
No account linked to committer's email address
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      site/annotations-tutorial.md

+ 6
- 6
site/annotations-tutorial.md View File

@@ -144,13 +144,13 @@ Notice that `podinfo` is on `v1.3.2` and in state `automated`.
144 144
 To check which images are avaible for podinfo run
145 145
 
146 146
 ```sh
147
-fluxctl list-images -c demo:deployment/podinfo
147
+fluxctl list-images -w demo:deployment/podinfo
148 148
 ```
149 149
 
150 150
 Now let's change the policy for `podinfo` to target `1.4.*` releases:
151 151
 
152 152
 ```sh
153
-fluxctl policy -c demo:deployment/podinfo --tag-all='1.4.*'
153
+fluxctl policy -w demo:deployment/podinfo --tag-all='1.4.*'
154 154
 ```
155 155
 
156 156
 On the command-line you should see a message just like this one:
@@ -197,7 +197,7 @@ fluxctl sync
197 197
 To check which image is current, run
198 198
 
199 199
 ```sh
200
-fluxctl list-images -c demo:deployment/podinfo
200
+fluxctl list-images -w demo:deployment/podinfo
201 201
 ```
202 202
 
203 203
 In our case this is `1.4.2` (it could be a later image too). Let's say an
@@ -207,7 +207,7 @@ That's easy.
207 207
 Rollback to `1.4.1`:
208 208
 
209 209
 ```sh
210
-fluxctl release -c demo:deployment/podinfo -i stefanprodan/podinfo:1.4.1
210
+fluxctl release --workload demo:deployment/podinfo -i stefanprodan/podinfo:1.4.1
211 211
 ```
212 212
 
213 213
 The response should be
@@ -239,7 +239,7 @@ and the diff for this is going to look like this:
239 239
 Lock to `1.4.1` with a message describing why:
240 240
 
241 241
 ```sh
242
-fluxctl lock -c demo:deployment/podinfo -m "1.4.2 does not work for us"
242
+fluxctl lock -w demo:deployment/podinfo -m "1.4.2 does not work for us"
243 243
 ```
244 244
 
245 245
 The resulting diff should look like this
@@ -271,4 +271,4 @@ kubectl logs -n default deploy/flux -f
271 271
 
272 272
 If you should have any questions, find us on Slack in the [#flux
273 273
 channel](https://weave-community.slack.com/messages/flux/), get
274
-an invite to it [here](https://slack.weave.works/).
274
+an invite to it [here](https://slack.weave.works/).

Loading…
Cancel
Save