Skip to content

Commit

Permalink
docs(jobs): add code block patterns to link check config (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeeu authored Oct 17, 2023
1 parent cf1a87d commit 6147f9d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .mlc_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,20 @@
{
"pattern": "^https:\/\/api.github.com"
},
{
"pattern": "((http([s]){0,1}:\/\/){0,1}(localhost|127.0.0.1){1}(([:]){0,1}[\0-9]{4}){0,1}\/{0,1}){1}"
},
{
"pattern": "^#[a-zA-Z0-9-]*"
},
{
"pattern": "(?s) *({{< highlight [^>]* ?>}}.*?{{< ?/ ?highlight >}})"
},
{
"pattern": "(?s) *(\x60\x60\x60.*?\x60\x60\x60)"
},
{
"pattern": "^https:\/\/twitter.com"
}
],
"aliveStatusCodes": [
Expand Down
2 changes: 0 additions & 2 deletions content/en/deployment/kubernetes/argo-rollouts.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ See {{< linkWithTitle "reference/deployment/_index.md" >}} if you want to create

You can use webhooks in `afterDeployment` constraints to add specific logic for Argo Rollouts to finish deploying before starting integration tests. For example:

<!-- markdown-link-check-disable -->
{{< highlight yaml "linenos=table,hl_lines=9-12 15-28" >}}
# armoryDeployment.yaml
version: v1
Expand Down Expand Up @@ -141,7 +140,6 @@ webhooks:
"callbackURL": "{{armory.callbackUri}}/callback"
}
{{< /highlight >}}
<!-- markdown-link-check-enable-->

This example employs [cmd-hook](https://hub.docker.com/r/demoimages/cmd-hook), which is an open source service deployed in the cluster to execute `kubectl` commands. CD-as-a-Service employs RNA to execute `kubectl` commands for monitoring the state of rollout objects. You can view the source code for `cmd-hook` in the [public repository](https://github.com/stephenatwell/cmdHook).

Expand Down

0 comments on commit 6147f9d

Please sign in to comment.