Skip to content

Commit

Permalink
Merge pull request #287 from acend/fix-colors
Browse files Browse the repository at this point in the history
fix NOTE alert background color
  • Loading branch information
phil-pona authored Sep 19, 2023
2 parents d25a9c0 + b925406 commit 19b6a01
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions content/en/docs/01/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ The first thing we're going to do is to explore our lab environment and get in t

The namespace with the name corresponding to your username is going to be used for all the hands-on labs. And you will be using the `argocd tool` or the ArgoCD webconsole, to verify what resources and objects Argo CD created for you.

{{% alert title="Note" color="info" %}}You can also use your local installation of the cli tools. Make sure you completed [the setup](../../setup/) before you continue with this lab.{{% /alert %}}
{{% alert title="Note" color="primary" %}}You can also use your local installation of the cli tools. Make sure you completed [the setup](../../setup/) before you continue with this lab.{{% /alert %}}

{{% alert title="Note" color="info" %}}The URL and Credentials to the Web IDE will provided by the teacher. Use Chrome for the best experience.{{% /alert %}}
{{% alert title="Note" color="primary" %}}The URL and Credentials to the Web IDE will provided by the teacher. Use Chrome for the best experience.{{% /alert %}}


Once you're successfully logged into the web IDE open a new Terminal by hitting `CTRL + SHIFT + ¨` or clicking the Menu button --> Terminal --> new Terminal and check the installed {{% param cliToolName %}}version by executing the following command:
Expand Down Expand Up @@ -149,7 +149,7 @@ argocd app create --help

### Task {{% param sectionnumber %}}.2: Autocompletion

{{% alert title="Note" color="info" %}}This step is only needed, when you're not working with the Web IDE we've provided. The autocompletion is already installed in the Web IDE{{% /alert %}}
{{% alert title="Note" color="primary" %}}This step is only needed, when you're not working with the Web IDE we've provided. The autocompletion is already installed in the Web IDE{{% /alert %}}

A productivity booster when working with the CLI is the autocompletion feature. It can be used for `bash` and `zsh` shells. You can enable the autocompletion for the current `bash` with the following command:

Expand Down
16 changes: 8 additions & 8 deletions content/en/docs/02/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ For this Training we've installed a Git Server under [https://{{% param giteaUrl
Open your Webbrowser and navigate to [https://{{% param giteaUrl %}}](https://{{% param giteaUrl %}}/).
Login with the training credentials provided by the trainer (Login Button is in the upper right corner).

{{% alert title="Note" color="info" %}}Users which have a personal Github account can just fork the Repository [argocd-training-examples](https://github.com/acend/argocd-training-examples) to their personal account. To fork the repository click on the top right of the Github on _Fork_.{{% /alert %}}
{{% alert title="Note" color="primary" %}}Users which have a personal Github account can just fork the Repository [argocd-training-examples](https://github.com/acend/argocd-training-examples) to their personal account. To fork the repository click on the top right of the Github on _Fork_.{{% /alert %}}

{{% /onlyWhenNot %}}

Expand All @@ -39,7 +39,7 @@ Users which have a personal Github account can just fork the Repository [argocd-

All other users can use the provided Gitea installation of the personal lab environment. Visit [https://{{% param giteaUrl %}}](https://{{% param giteaUrl %}}/) with your browser and register a new account with your personal username and a password that you can remember ;)

{{% alert title="Note" color="info" %}}All the cli commands in this chapter must be executed in the terminal of the provided Web IDE.{{% /alert %}}
{{% alert title="Note" color="primary" %}}All the cli commands in this chapter must be executed in the terminal of the provided Web IDE.{{% /alert %}}

![Register new User in Gitea](gitea-register.png)

Expand Down Expand Up @@ -71,7 +71,7 @@ echo $USER

The `USER` variable will be used as part of the commands to make the lab experience more comfortable for you.

{{% alert title="Note" color="info" %}}If you're **not** using our lab webshell to execute the labs, make sure to set the `USER` environment variable accordingly with the following command `export USER=<username>`{{% /alert %}}
{{% alert title="Note" color="primary" %}}If you're **not** using our lab webshell to execute the labs, make sure to set the `USER` environment variable accordingly with the following command `export USER=<username>`{{% /alert %}}


Clone the forked repository to your local workspace:
Expand Down Expand Up @@ -120,9 +120,9 @@ argocd app create argo-$USER --repo https://{{% param giteaUrl %}}/$USER/argocd-

Expected output: `application 'argo-<username>' created`

{{% alert title="Note" color="info" %}}We don't need to provide Git credentials because the repository is readable for non-authenticated users as well{{% /alert %}}
{{% alert title="Note" color="primary" %}}We don't need to provide Git credentials because the repository is readable for non-authenticated users as well{{% /alert %}}

{{% alert title="Note" color="info" %}}If you want to deploy it in a different namespace, make sure the namespaces exists before synching the app{{% /alert %}}
{{% alert title="Note" color="primary" %}}If you want to deploy it in a different namespace, make sure the namespaces exists before synching the app{{% /alert %}}

Once the application is created, you can view its status:

Expand Down Expand Up @@ -467,7 +467,7 @@ The result should look similar to this:
<h1 style=color:#e81198>Hello golang</h1><h2>ID: e81198</h2>
```

{{% alert title="Note" color="info" %}}Please note, that we didn't expose the application on `https` this might cause some errors, when you open the URL in certain browsers.{{% /alert %}}
{{% alert title="Note" color="primary" %}}Please note, that we didn't expose the application on `https` this might cause some errors, when you open the URL in certain browsers.{{% /alert %}}


## Task {{% param sectionnumber %}}.6: Pruning
Expand Down Expand Up @@ -571,7 +571,7 @@ Argo CD can't any longer access the protected repository without providing crede
argocd repo add https://{{% param giteaUrl %}}/$USER/argocd-training-examples.git --username $USER
```

{{% alert title="Note" color="info" %}}
{{% alert title="Note" color="primary" %}}
You can provide the password through the cli by using the flag `--password`.
{{% /alert %}}

Expand All @@ -588,7 +588,7 @@ argocd repocreds add https://{{% param giteaUrl %}}/$USER --username $USER

Finally make your personal Git repository public again for the following labs. Uncheck the option `Visibility: Make Repository Private` under `Settings -> Repository` in the Gitea UI.

{{% alert title="Note" color="info" %}}
{{% alert title="Note" color="primary" %}}
TLS certificates and SSH private keys are supported alternative authentication methods by Argo CD. Proxy support can be configured as well in the repository settings.
{{% /alert %}}

Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/06/application_sets.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ And now create the ArgoCD Application, which references the ApplicationSet defin
argocd app create argo-appset-$USER --repo https://{{% param giteaUrl %}}/$USER/argocd-training-examples.git --path 'application-set/simple-example' --dest-server https://kubernetes.default.svc --sync-policy auto --dest-namespace argocd
```

{{% alert title="Note" color="info" %}}Please notice the `dest-namespace`, ApplicationSets needs to be deployed within the `argocd` namespace{{% /alert %}}
{{% alert title="Note" color="primary" %}}Please notice the `dest-namespace`, ApplicationSets needs to be deployed within the `argocd` namespace{{% /alert %}}

You should now be able to see three ArgoCD Applications postfixed with your `<username>`:

Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/07/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Now sync the application manifest
argocd app sync project-app-$USER
```

{{% alert title="Note" color="info" %}}
{{% alert title="Note" color="primary" %}}
The feature of limiting source repositories and destination clusters/namespaces is a powerful construct of Argo CD as roles and policies can be assigned to projects. With this tool you can enforce a fine grained permission model to control the access of the users to the different clusters and namespaces.
{{% /alert %}}

Expand Down
4 changes: 2 additions & 2 deletions content/en/docs/08/sync_windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ ID STATUS KIND SCHEDULE DURATION APPLICATIONS NAMESPACES CLUSTERS MANUA
```
The window starts at 08:00 in the morning an lasts for 12 hours and denies all sync operation for all applications.

{{% alert title="Note" color="info" %}}
{{% alert title="Note" color="primary" %}}
Paste the cron expression on [Crontab Guru](https://crontab.guru/#0_8_*_*_*) to get an explanation of it.
{{% /alert %}}

Expand All @@ -70,7 +70,7 @@ This manual sync request will be blocked due to the active sync window with the
FATA[0000] rpc error: code = PermissionDenied desc = Cannot sync: Blocked by sync window
```

{{% alert title="Note" color="info" %}}
{{% alert title="Note" color="primary" %}}
If there is an active matching allow window and an active matching deny window then syncs will be denied as deny windows override allow windows.
{{% /alert %}}

Expand Down
4 changes: 2 additions & 2 deletions content/en/docs/additional/backup_restore.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ weight: 902
sectionnumber: 9.2
---

{{% alert title="Note" color="secondary" %}}
{{% alert title="Warning" color="secondary" %}}
This Lab only works on your local machine.
{{% /alert %}}

Expand Down Expand Up @@ -38,7 +38,7 @@ export VERSION=v2.6.3
docker run -v ~/.kube:/home/argocd/.kube --rm argoproj/argocd:$VERSION argocd admin export > backup.yaml
```

{{% alert title="Note" color="info" %}}
{{% alert title="Note" color="primary" %}}
If you should encounter permission errors like `error loading config file \"/home/argocd/.kube/config\": open /home/argocd/.kube/config: permission denied` you should change temporarily the permission of the kube config:

```bash
Expand Down
4 changes: 2 additions & 2 deletions content/en/docs/additional/orphaned_resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Enable visualization and monitoring of Orphaned Resources for the newly created
argocd proj set apps-$USER --orphaned-resources --orphaned-resources-warn
```

{{% alert title="Note" color="info" %}}
{{% alert title="Note" color="primary" %}}
The flag `--orphaned-resources` enables the determinability of orphaned resources in Argo CD. After a refresh you will see them in the user interface on the project when selecting the checkbox _Orphaned Resources_.
With the flag `--orphaned-resources-warn` enabled, for each Argo CD application with orphaned resources in the destination namespace a warning will be shown in the user interface.
{{% /alert %}}
Expand Down Expand Up @@ -65,7 +65,7 @@ spec:
EOF
```

{{% alert title="Note" color="info" %}}
{{% alert title="Note" color="primary" %}}
This service will be detected as orphaned resource because it is not managed by Argo CD. All resources which are managed by Argo CD are marked with the label `app.kubernetes.io/instance` per default. The key of the label can be changed with the setting `application.instanceLabelKey`. See [documentation](https://argoproj.github.io/argo-cd/faq/#why-is-my-app-out-of-sync-even-after-syncing) for further details.
{{% /alert %}}

Expand Down

0 comments on commit 19b6a01

Please sign in to comment.