Skip to content

Commit f54238b

Browse files
docs: Style and formatting improvements to User Guide (argoproj#22622)
Signed-off-by: Oliver Gondža <[email protected]> Co-authored-by: rumstead <[email protected]>
1 parent a1fd1ba commit f54238b

14 files changed

+50
-50
lines changed

docs/user-guide/application_sources.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Argo CD supports several different ways in which Kubernetes manifests can be def
66

77
* [Kustomize](kustomize.md) applications
88
* [Helm](helm.md) charts
9-
* A directory of YAML/JSON/Jsonnet manifests, including [Jsonnet](jsonnet.md).
9+
* A directory of YAML, JSON, or [Jsonnet](jsonnet.md) manifests.
1010
* Any [custom config management tool](../operator-manual/config-management-plugins.md) configured as a config management plugin
1111

1212
## Development

docs/user-guide/auto_sync.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
syncPolicy:
1919
automated: {}
2020
```
21-
Application CRD now also support explicitly setting automated sync to be turn on or off by using `spec.syncPolicy.automated.enabled` flag to true or false. When `enable` field is set to true, Automated Sync is active and when set to false controller will skip automated sync even if `prune`, `self-heal` and `allowEmpty` are set.
21+
Application CRD now also support explicitly setting automated sync to be turned on or off by using `spec.syncPolicy.automated.enabled` flag to true or false. When `enable` field is set to true, Automated Sync is active and when set to false controller will skip automated sync even if `prune`, `self-heal` and `allowEmpty` are set.
2222
```yaml
2323
spec:
2424
syncPolicy:
@@ -27,7 +27,7 @@ spec:
2727
```
2828

2929
!!!note
30-
Setting `spec.syncPolicy.automated.enabled` flag to null will be treated as automated sync as enabled. When using `enabled` field set to false, fields like `prune`, `self-heal` and `allowEmpty` can be set without enabling them.
30+
Setting the `spec.syncPolicy.automated.enabled` flag to null will be treated as if automated sync is enabled. When the `enabled` field is set to false, fields like `prune`, `selfHeal` and `allowEmpty` can be set without enabling them.
3131

3232
## Temporarily toggling auto-sync for applications managed by ApplicationSets
3333

@@ -82,7 +82,7 @@ when the live cluster's state deviates from the state defined in Git, run:
8282
argocd app set <APPNAME> --self-heal
8383
```
8484

85-
Or by setting the self heal option to true in the automated sync policy:
85+
Or by setting the self-heal option to true in the automated sync policy:
8686

8787
```yaml
8888
spec:
@@ -100,7 +100,7 @@ Disabling self-heal does not guarantee that live cluster changes won't be revert
100100
* Automated sync will only attempt one synchronization per unique combination of commit SHA1 and
101101
application parameters. If the most recent successful sync in the history was already performed
102102
against the same commit-SHA and parameters, a second sync will not be attempted, unless `selfHeal` flag is set to true.
103-
* If `selfHeal` flag is set to true then sync will be attempted again after self heal timeout (5 seconds by default)
103+
* If the `selfHeal` flag is set to true, then the sync will be attempted again after self-heal timeout (5 seconds by default)
104104
which is controlled by `--self-heal-timeout-seconds` flag of `argocd-application-controller` deployment.
105105
* Automatic sync will not reattempt a sync if the previous sync attempt against the same commit-SHA
106106
and parameters had failed.

docs/user-guide/diff-strategies.md

+8-10
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,14 @@ Argo CD currently has 3 different strategies to calculate diffs:
1717

1818
## Structured-Merge Diff
1919

20-
!!! warning "Beta Feature (Since v2.5.0)"
21-
This feature is in the [Beta][1] stage. It is generally considered stable, but there may be unhandled edge cases.
20+
!!! warning "Feature Discontinued"
21+
After different issues were identified by the community, this strategy is being discontinued in favour of Server-Side Diff.
2222

2323
This diff strategy is automatically used when Server-Side Apply
2424
sync option is enabled. It uses the [structured-merge-diff][2] library
2525
used by Kubernetes to calculate diffs based on fields ownership. There
2626
are some challenges using this strategy to calculate diffs for CRDs
27-
that define default values. After different issues were identified by
28-
the community, this strategy is being discontinued in favour of
29-
Server-Side Diff.
27+
that define default values.
3028

3129
## Server-Side Diff
3230

@@ -65,7 +63,7 @@ Application.
6563

6664
Add the following entry in the argocd-cmd-params-cm configmap:
6765

68-
```
66+
```yaml
6967
apiVersion: v1
7068
kind: ConfigMap
7169
metadata:
@@ -82,7 +80,7 @@ after applying this configuration.
8280

8381
Add the following annotation in the Argo CD Application resource:
8482

85-
```
83+
```yaml
8684
apiVersion: argoproj.io/v1alpha1
8785
kind: Application
8886
metadata:
@@ -97,7 +95,7 @@ If Server-Side Diff is enabled globally in your Argo CD instance, it
9795
is possible to disable it at the application level. In order to do so,
9896
add the following annotation in the Application resource:
9997

100-
```
98+
```yaml
10199
apiVersion: argoproj.io/v1alpha1
102100
kind: Application
103101
metadata:
@@ -115,7 +113,7 @@ Server-Side Diff does not include changes made by mutation webhooks by
115113
default. If you want to include mutation webhooks in Argo CD diffs add
116114
the following annotation in the Argo CD Application resource:
117115

118-
```
116+
```yaml
119117
apiVersion: argoproj.io/v1alpha1
120118
kind: Application
121119
metadata:
@@ -128,7 +126,7 @@ Note: This annotation is only effective when Server-Side Diff is
128126
enabled. To enable both options for a given application add the
129127
following annotation in the Argo CD Application resource:
130128

131-
```
129+
```yaml
132130
apiVersion: argoproj.io/v1alpha1
133131
kind: Application
134132
metadata:

docs/user-guide/diffing.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ It is possible for an application to be `OutOfSync` even immediately after a suc
66
resulting in an `OutOfSync` status indicating a missing field was detected.
77
- The sync was performed (with pruning disabled), and there are resources which need to be deleted.
88
- A controller or [mutating webhook](https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#mutatingadmissionwebhook) is altering the object after it was
9-
submitted to Kubernetes in a manner which contradicts Git.
9+
submitted to Kubernetes so it differs from the one in Git.
1010
- A Helm chart is using a template function such as [`randAlphaNum`](https://github.com/helm/charts/blob/master/stable/redis/templates/secret.yaml#L16),
1111
which generates different data every time `helm template` is invoked.
1212
- For Horizontal Pod Autoscaling (HPA) objects, the HPA controller is known to reorder `spec.metrics`
@@ -94,7 +94,7 @@ data:
9494
- '.webhooks[]?.clientConfig.caBundle'
9595
```
9696

97-
Resource customization can also be configured to ignore all differences made by a managedField.manager at the system level. The example below shows how to configure Argo CD to ignore changes made by `kube-controller-manager` in `Deployment` resources.
97+
Resource customization can also be configured to ignore all differences made by a `managedField.manager` at the system level. The example below shows how to configure Argo CD to ignore changes made by `kube-controller-manager` in `Deployment` resources.
9898

9999
```yaml
100100
data:
@@ -103,7 +103,7 @@ data:
103103
- kube-controller-manager
104104
```
105105

106-
It is possible to configure ignoreDifferences to be applied to all resources in every Application managed by an Argo CD instance. In order to do so, resource customizations can be configured like in the example below:
106+
It is possible to configure `ignoreDifferences` to be applied to all resources in every Application managed by an Argo CD instance. In order to do so, resource customizations can be configured like in the example below:
107107

108108
```yaml
109109
data:
@@ -129,7 +129,8 @@ data:
129129

130130
If you rely on the status field being part of your desired state, although this is not recommended, the `ignoreResourceStatusField` setting can be used to configure this behavior.
131131

132-
**Note**: Since it is common for `CustomResourceDefinitions` to have their `status` commited to Git, consider using `crd` over `none`.
132+
!!! note
133+
Since it is common for `CustomResourceDefinitions` to have their `status` commited to Git, consider using `crd` over `none`.
133134

134135
### Ignoring RBAC changes made by AggregateRoles
135136

docs/user-guide/gpg-verification.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ argocd proj remove-signature-key myproj 4AEE18F83AFDEB23
211211
#### Showing allowed key IDs for a project
212212

213213
To see which key IDs are allowed for a given project, you can inspect the
214-
output of the `argocd proj get` command, i.e for a project named `gpg`:
214+
output of the `argocd proj get` command, i.e. for a project named `gpg`:
215215

216216
```bash
217217
$ argocd proj get gpg

docs/user-guide/helm.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,9 @@ RUN helm plugin install ${GCS_PLUGIN_REPO} --version ${GCS_PLUGIN_VERSION}
390390
ENV HELM_PLUGINS="/home/argocd/.local/share/helm/plugins/"
391391
```
392392

393-
You have to remember about `HELM_PLUGINS` environment property - this is required for plugins to work correctly.
393+
The `HELM_PLUGINS` environment property required for ArgoCD to locale plugins correctly.
394394

395-
After that you have to use your custom image for ArgoCD installation.
395+
Once built, use the custom image for ArgoCD installation.
396396

397397
### Using `initContainers`
398398
Another option is to install Helm plugins via Kubernetes `initContainers`.
@@ -519,7 +519,6 @@ spec:
519519
```
520520

521521

522-
523522
## Helm `--skip-tests`
524523

525524
By default, Helm includes test manifests when rendering templates. Argo CD currently skips manifests that include hooks not supported by Argo CD, including [Helm test hooks](https://helm.sh/docs/topics/chart_tests/). While this feature covers many testing use cases, it is not totally congruent with --skip-tests, so the --skip-tests option can be used.
@@ -537,4 +536,4 @@ spec:
537536
source:
538537
helm:
539538
skipTests: true # or false
540-
```
539+
```

docs/user-guide/multiple_sources.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ If the `path` field is set in the `$values` source, Argo CD will attempt to gene
8080
at that URL. If the `path` field is not set, Argo CD will use the repository solely as a source of value files.
8181

8282
!!! note
83-
Sources with the `ref` field set must not also specify the `chart` field. Argo CD does not currently support using
84-
another Helm chart as a source for value files.
83+
Sources with the `ref` field set cannot include the `chart` field. Currently, Argo CD does not support using another Helm chart as a source for value files.
8584

8685
!!! note
8786
Even when the `ref` field is configured with the `path` field, `$value` still represents the root of sources with the `ref` field. Consequently, `valueFiles` must be specified as relative paths from the root of sources.

docs/user-guide/parameters.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ argocd app set guestbook -p ingress.enabled=true
2626
argocd app set guestbook -p ingress.hosts[0]=guestbook.myclusterurl
2727
```
2828

29-
The `argocd app set` [command](./commands/argocd_app_set.md) supports more tool-specific flags such as `--kustomize-image`, `--jsonnet-ext-var-str` etc
30-
flags. You can also specify overrides directly in the source field on application spec. Read more about supported options in corresponded tool [documentation](./application_sources.md).
29+
The `argocd app set` [command](./commands/argocd_app_set.md) supports more tool-specific flags such as `--kustomize-image`, `--jsonnet-ext-var-str`, etc.
30+
You can also specify overrides directly in the source field on the application spec. Read more about supported options in the corresponding tool [documentation](./application_sources.md).
3131

3232
## When To Use Overrides?
3333

@@ -81,7 +81,7 @@ are sourcing multiple applications from a single path in your repository.
8181
The application specific file must be named `.argocd-source-<appname>.yaml`,
8282
where `<appname>` is the name of the application the overrides are valid for.
8383

84-
If there exists an non-application specific `.argocd-source.yaml`, parameters
84+
If there exists a non-application specific `.argocd-source.yaml`, parameters
8585
included in that file will be merged first, and then the application specific
8686
parameters are merged, which can also contain overrides to the parameters
8787
stored in the non-application specific file.

docs/user-guide/private-repositories.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Of course, you can also use this in combination with the `--username` and `--pas
6363
Your TLS client certificate and corresponding key can also be configured using the UI, see instructions for adding Git repos using HTTPS.
6464

6565
!!! note
66-
Your client certificate and key data must be in PEM format, other formats (such as PKCS12) are not understood. Also make sure that your certificate's key is not password protected, otherwise it cannot be used by Argo CD.
66+
Your client certificate and key data must be in PEM format, other formats (such as PKCS12) are not supported. Also make sure that your certificate's key is not password protected, otherwise it cannot be used by Argo CD.
6767

6868
!!! note
6969
When pasting TLS client certificate and key in the text areas in the web UI, make sure they contain no unintended line breaks or additional characters.

docs/user-guide/projects.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ argocd proj role create-token PROJECT ROLE-NAME
195195
argocd proj role delete-token PROJECT ROLE-NAME ISSUED-AT
196196
```
197197

198-
Since the JWT tokens aren't stored in Argo CD, they can only be retrieved when they are created. A user can leverage them in the cli by either passing them in using the `--auth-token` flag or setting the ARGOCD_AUTH_TOKEN environment variable. The JWT tokens can be used until they expire or are revoked. The JWT tokens can created with or without an expiration, but the default on the cli is creates them without an expirations date. Even if a token has not expired, it cannot be used if the token has been revoked.
198+
Since the JWT tokens aren't stored in Argo CD, they can only be retrieved when they are created. A user can leverage them in the cli by either passing them in using the `--auth-token` flag or setting the ARGOCD_AUTH_TOKEN environment variable. The JWT tokens can be used until they expire or are revoked. The JWT tokens can be created with or without an expiration. By default, the cli creates them without an expirations date. Even if a token has not expired, it cannot be used if the token has been revoked.
199199

200200
Below is an example of leveraging a JWT token to access a guestbook application. It makes the assumption that the user already has a project named myproject and an application called guestbook-default.
201201

@@ -297,7 +297,7 @@ It is possible to offer a self-service process for developers so that they can a
297297
For this purpose Argo CD supports project-scoped repositories and clusters.
298298

299299
To begin the process, Argo CD admins must configure RBAC security to allow this self-service behavior.
300-
For example, to allow users to add project scoped repositories and admin would have to add the following RBAC rules:
300+
For example, to allow users to add project scoped repositories an admin would have to add the following RBAC rules:
301301

302302
```
303303
p, proj:my-project:admin, repositories, create, my-project/*, allow
@@ -335,12 +335,12 @@ stringData:
335335
```
336336

337337
!!! warning
338-
Please keep in mind when using a project-scoped repository, only applications or applicationsets with a matching project
339-
name can make use of it. When using an applicationset with a Git generator that also makes use of a templated `project`
340-
(i.e. it contains ``{{ ... }}``) only non-scoped repositories can be used with the applicationset (i.e. repositories
341-
that do _not_ have a `project` set).
338+
Please keep in mind when using a project-scoped repository, only applications or applicationsets with a matching project
339+
name can make use of it. When using an applicationset with a Git generator that also makes use of a templated `project`
340+
(i.e. it contains ``{{ ... }}``) only non-scoped repositories can be used with the applicationset (i.e. repositories
341+
that do _not_ have a `project` set).
342342

343-
All the examples above talk about Git repositories, but the same principles apply to clusters as well.
343+
All the examples above concern Git repositories, but the same principles apply to clusters as well.
344344

345345
```yaml
346346
apiVersion: v1

docs/user-guide/selective_sync.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ A *selective sync* is one where only some resources are sync'd. You can choose w
44

55
![selective sync](../assets/selective-sync.png)
66

7-
When doing so, bear in mind:
7+
When doing so, bear in mind that:
88

99
* Your sync is not recorded in the history, and so rollback is not possible.
10-
* Hooks are not run.
10+
* [Hooks](resource_hooks.md) are not run.
1111

1212
## Selective Sync Option
1313

docs/user-guide/sync-options.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Sync Options
22

3-
Argo CD allows users to customize some aspects of how it syncs the desired state in the target cluster. Some Sync Options can be defined as annotations in a specific resource. Most of the Sync Options are configured in the Application resource `spec.syncPolicy.syncOptions` attribute. Multiple Sync Options which are configured with the `argocd.argoproj.io/sync-options` annotation can be concatenated with a `,` in the annotation value; white spaces will be trimmed.
3+
Argo CD allows users to customize some aspects of how it syncs the desired state in the target cluster. Some Sync Options can be defined as annotations in a specific resource. Most of the Sync Options are configured in the Application resource `spec.syncPolicy.syncOptions` attribute. Multiple Sync Options which are configured with the `argocd.argoproj.io/sync-options` annotation can be concatenated with a `,` in the annotation value; white-space will be trimmed.
44

55
Below you can find details about each available Sync Option:
66

@@ -43,7 +43,7 @@ annotation to the application.
4343

4444
## Disable Kubectl Validation
4545

46-
For a certain class of objects, it is necessary to `kubectl apply` them using the `--validate=false` flag. Examples of this are Kubernetes types which uses `RawExtension`, such as [ServiceCatalog](https://github.com/kubernetes-incubator/service-catalog/blob/master/pkg/apis/servicecatalog/v1beta1/types.go#L497). You can do using this annotations:
46+
For a certain class of objects, it is necessary to `kubectl apply` them using the `--validate=false` flag. Examples of this are Kubernetes types which uses `RawExtension`, such as [ServiceCatalog](https://github.com/kubernetes-incubator/service-catalog/blob/master/pkg/apis/servicecatalog/v1beta1/types.go#L497). You can do using this annotation:
4747

4848

4949
```yaml
@@ -58,8 +58,8 @@ If you want to exclude a whole class of objects globally, consider setting `reso
5858

5959
When syncing a custom resource which is not yet known to the cluster, there are generally two options:
6060

61-
1) The CRD manifest is part of the same sync. Then Argo CD will automatically skip the dry run, the CRD will be applied and the resource can be created.
62-
2) In some cases the CRD is not part of the sync, but it could be created in another way, e.g. by a controller in the cluster. An example is [gatekeeper](https://github.com/open-policy-agent/gatekeeper),
61+
1. The CRD manifest is part of the same sync. Then Argo CD will automatically skip the dry run, the CRD will be applied and the resource can be created.
62+
2. In some cases the CRD is not part of the sync, but it could be created in another way, e.g. by a controller in the cluster. An example is [gatekeeper](https://github.com/open-policy-agent/gatekeeper),
6363
which creates CRDs in response to user defined `ConstraintTemplates`. Argo CD cannot find the CRD in the sync and will fail with the error `the server could not find the requested resource`.
6464

6565
To skip the dry run for missing resource types, use the following annotation:
@@ -100,7 +100,7 @@ annotation to the application.
100100

101101
## Selective Sync
102102

103-
Currently when syncing using auto sync Argo CD applies every object in the application.
103+
Currently, when syncing using auto sync Argo CD applies every object in the application.
104104
For applications containing thousands of objects this takes quite a long time and puts undue pressure on the api server.
105105
Turning on selective sync option which will sync only out-of-sync resources.
106106

0 commit comments

Comments
 (0)