Skip to content

Commit

Permalink
docs(update): Adding an example for deeplinks in using property that …
Browse files Browse the repository at this point in the history
…contains - or / (#18119)

* Extending deeplinks documentation with examples for labels or annotations that use / or - 

Signed-off-by: Daan Verstraten <104772968+DaanQ42@users.noreply.github.com>

* Fixing double quotes

Signed-off-by: Daan Verstraten <104772968+DaanQ42@users.noreply.github.com>

* Update docs/operator-manual/deep_links.md

Signed-off-by: Dan Garfield <dan@codefresh.io>

Signed-off-by: Dan Garfield <dan@codefresh.io>

---------

Signed-off-by: Daan Verstraten <104772968+DaanQ42@users.noreply.github.com>
Signed-off-by: Dan Garfield <dan@codefresh.io>
Co-authored-by: Dan Garfield <dan@codefresh.io>
  • Loading branch information
DaanQ42 and todaywasawesome committed May 8, 2024
1 parent 20fada8 commit 2727aec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/operator-manual/deep_links.md
Expand Up @@ -75,4 +75,9 @@ An example `argocd-cm.yaml` file with deep links and their variations :
- url: https://mycompany.splunk.com?search={{.resource.metadata.name}}&env={{.project.metadata.labels.env}}
title: Splunk
if: resource.kind == "Pod" || resource.kind == "Deployment"
# sample checking a tag exists that contains - or / and how to alternatively access it
- url: https://mycompany.splunk.com?tag={{ index .resource.metadata.labels "some.specific.kubernetes.like/tag" }}
title: Tag Service
if: resource.metadata.labels["some.specific.kubernetes.like/tag"] != nil && resource.metadata.labels["some.specific.kubernetes.like/tag"] != ""
```

0 comments on commit 2727aec

Please sign in to comment.