Skip to content

Commit

Permalink
docs: add CRD specification example files to docs (#14021)
Browse files Browse the repository at this point in the history
* docs: add CRD specification example files to docs

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

* pages for declarative files, too

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

---------

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Co-authored-by: pasha-codefresh <pavel@codefresh.io>
  • Loading branch information
crenshaw-dev and pasha-codefresh authored Jun 19, 2023
1 parent a952b01 commit 698aef3
Show file tree
Hide file tree
Showing 13 changed files with 95 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ApplicationSet Specification

The following describes all the available fields of an ApplicationSet:

```yaml
{!docs/operator-manual/applicationset.yaml!}
```
7 changes: 7 additions & 0 deletions docs/operator-manual/argocd-cm-yaml.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# argocd-cm.yaml example

An example of an argocd-cm.yaml file:

```yaml
{!docs/operator-manual/argocd-cm.yaml!}
```
7 changes: 7 additions & 0 deletions docs/operator-manual/argocd-cmd-params-cm-yaml.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# argocd-cmd-params-cm.yaml example

An example of an argocd-cmd-params-cm.yaml file:

```yaml
{!docs/operator-manual/argocd-cmd-params-cm.yaml!}
```
7 changes: 7 additions & 0 deletions docs/operator-manual/argocd-rbac-cm-yaml.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# argocd-rbac-cm.yaml example

An example of an argocd-rbac-cm.yaml file:

```yaml
{!docs/operator-manual/argocd-rbac-cm.yaml!}
```
7 changes: 7 additions & 0 deletions docs/operator-manual/argocd-repo-creds-yaml.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# argocd-repo-creds.yaml example

An example of an argocd-repo-creds.yaml file:

```yaml
{!docs/operator-manual/argocd-repo-creds.yaml!}
```
7 changes: 7 additions & 0 deletions docs/operator-manual/argocd-repositories-yaml.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# argocd-repositories.yaml example

An example of an argocd-repositories.yaml file:

```yaml
{!docs/operator-manual/argocd-repositories.yaml!}
```
7 changes: 7 additions & 0 deletions docs/operator-manual/argocd-secret-yaml.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# argocd-secret.yaml example

An example of an argocd-secret.yaml file:

```yaml
{!docs/operator-manual/argocd-secret.yaml!}
```
7 changes: 7 additions & 0 deletions docs/operator-manual/argocd-ssh-known-hosts-cm-yaml.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# argocd-ssh-known-hosts-cm.yaml example

An example of an argocd-ssh-known-hosts-cm.yaml file:

```yaml
{!docs/operator-manual/argocd-ssh-known-hosts-cm.yaml!}
```
7 changes: 7 additions & 0 deletions docs/operator-manual/argocd-tls-certs-cm-yaml.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# argocd-tls-certs-cm.yaml example

An example of an argocd-tls-certs-cm.yaml file:

```yaml
{!docs/operator-manual/argocd-tls-certs-cm.yaml!}
```
30 changes: 15 additions & 15 deletions docs/operator-manual/declarative-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ All resources, including `Application` and `AppProject` specs, have to be instal

### Atomic configuration

| Sample File | Resource Name | Kind | Description |
|-------------|---------------|------|-------------|
| [`argocd-cm.yaml`](argocd-cm.yaml) | argocd-cm | ConfigMap | General Argo CD configuration |
| [`argocd-repositories.yaml`](argocd-repositories.yaml) | my-private-repo / istio-helm-repo / private-helm-repo / private-repo | Secrets | Sample repository connection details |
| [`argocd-repo-creds.yaml`](argocd-repo-creds.yaml) | argoproj-https-creds / argoproj-ssh-creds / github-creds / github-enterprise-creds | Secrets | Sample repository credential templates |
| [`argocd-cmd-params-cm.yaml`](argocd-cmd-params-cm.yaml) | argocd-cmd-params-cm | ConfigMap | Argo CD env variables configuration |
| [`argocd-secret.yaml`](argocd-secret.yaml) | argocd-secret | Secret | User Passwords, Certificates (deprecated), Signing Key, Dex secrets, Webhook secrets |
| [`argocd-rbac-cm.yaml`](argocd-rbac-cm.yaml) | argocd-rbac-cm | ConfigMap | RBAC Configuration |
| [`argocd-tls-certs-cm.yaml`](argocd-tls-certs-cm.yaml) | argocd-tls-certs-cm | ConfigMap | Custom TLS certificates for connecting Git repositories via HTTPS (v1.2 and later) |
| [`argocd-ssh-known-hosts-cm.yaml`](argocd-ssh-known-hosts-cm.yaml) | argocd-ssh-known-hosts-cm | ConfigMap | SSH known hosts data for connecting Git repositories via SSH (v1.2 and later) |
| Sample File | Resource Name | Kind | Description |
|-----------------------------------------------------------------------|------------------------------------------------------------------------------------|-----------|--------------------------------------------------------------------------------------|
| [`argocd-cm.yaml`](argocd-cm-yaml.md) | argocd-cm | ConfigMap | General Argo CD configuration |
| [`argocd-repositories.yaml`](argocd-repositories-yaml.md) | my-private-repo / istio-helm-repo / private-helm-repo / private-repo | Secrets | Sample repository connection details |
| [`argocd-repo-creds.yaml`](argocd-repo-creds.yaml) | argoproj-https-creds / argoproj-ssh-creds / github-creds / github-enterprise-creds | Secrets | Sample repository credential templates |
| [`argocd-cmd-params-cm.yaml`](argocd-cmd-params-cm-yaml.md) | argocd-cmd-params-cm | ConfigMap | Argo CD env variables configuration |
| [`argocd-secret.yaml`](argocd-secret-yaml.md) | argocd-secret | Secret | User Passwords, Certificates (deprecated), Signing Key, Dex secrets, Webhook secrets |
| [`argocd-rbac-cm.yaml`](argocd-rbac-cm-yaml.md) | argocd-rbac-cm | ConfigMap | RBAC Configuration |
| [`argocd-tls-certs-cm.yaml`](argocd-tls-certs-cm-yaml.md) | argocd-tls-certs-cm | ConfigMap | Custom TLS certificates for connecting Git repositories via HTTPS (v1.2 and later) |
| [`argocd-ssh-known-hosts-cm.yaml`](argocd-ssh-known-hosts-cm-yaml.md) | argocd-ssh-known-hosts-cm | ConfigMap | SSH known hosts data for connecting Git repositories via SSH (v1.2 and later) |

For each specific kind of ConfigMap and Secret resource, there is only a single supported resource name (as listed in the above table) - if you need to merge things you need to do it before creating them.

Expand All @@ -26,11 +26,11 @@ For each specific kind of ConfigMap and Secret resource, there is only a single

### Multiple configuration objects

| Sample File | Kind | Description |
|-------------|------|-------------|
| [`application.yaml`](application.yaml) | Application | Example application spec |
| [`project.yaml`](project.yaml) | AppProject | Example project spec |
| - | Secret | Repository credentials |
| Sample File | Kind | Description |
|------------------------------------------------------------------|-------------|--------------------------|
| [`application.yaml`](../user-guide/application-specification.md) | Application | Example application spec |
| [`project.yaml`](./project-specification.md) | AppProject | Example project spec |
| - | Secret | Repository credentials |

For `Application` and `AppProject` resources, the name of the resource equals the name of the application or project within Argo CD. This also means that application and project names are unique within a given Argo CD installation - you cannot have the same application name for two different applications.

Expand Down
7 changes: 7 additions & 0 deletions docs/operator-manual/project-specification.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Project Specification

The following describes all the available fields of a Project:

```yaml
{!docs/operator-manual/project.yaml!}
```
7 changes: 7 additions & 0 deletions docs/user-guide/application-specification.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Application Specification

The following describes all the available fields of an Application:

```yaml
{!docs/operator-manual/application.yaml!}
```
3 changes: 3 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ nav:
- Application Pruning & Resource Deletion: operator-manual/applicationset/Application-Deletion.md
- Progressive Syncs: operator-manual/applicationset/Progressive-Syncs.md
- Git File Generator Globbing: operator-manual/applicationset/Generators-Git-File-Globbing.md
- ApplicationSet Specification Reference: operator-manual/applicationset/applicationset-specification.md
- Server Configuration Parameters:
- operator-manual/server-commands/argocd-server.md
- operator-manual/server-commands/argocd-application-controller.md
Expand All @@ -135,6 +136,7 @@ nav:
- operator-manual/upgrading/1.2-1.3.md
- operator-manual/upgrading/1.1-1.2.md
- operator-manual/upgrading/1.0-1.1.md
- Project Specification Reference: operator-manual/project-specification.md
- User Guide:
- user-guide/index.md
- user-guide/application_sources.md
Expand Down Expand Up @@ -172,6 +174,7 @@ nav:
- user-guide/extra_info.md
- Notification subscriptions: user-guide/subscriptions.md
- Command Reference: user-guide/commands/argocd.md
- Application Specification Reference: user-guide/application-specification.md
- Developer Guide:
- developer-guide/index.md
- Architecture:
Expand Down

0 comments on commit 698aef3

Please sign in to comment.