Skip to content

Commit

Permalink
adding specific steps to argocd integration
Browse files Browse the repository at this point in the history
  • Loading branch information
iceal lim committed Jan 12, 2021
1 parent e3016dc commit e0e6bd7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/cicd.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ Terrascan can be configured as a job during the application sync process using [
![picture](img/terrascan-argo-cd-pipeline.png)
### step 1: configure presync resource hook
See example hooks yaml where one can simply add it to an existing kubernetes configuration.
Expand All @@ -82,7 +85,7 @@ spec:
secretName: ssh-key-secret
containers:
- name: terrascan-argocd
image: accurics/terrascan-argocd:latest
image: <your container namespace>/<your container build from steps below>:latest
command: ["/bin/ash", "-c"]
args:
- >
Expand Down Expand Up @@ -111,6 +114,8 @@ Configuring the job to delete only after the specified time see `ttlSecondsAfter

![picture](img/terrascan-argo-cd-resource-hook-logs.png)

### step 2: create container with the following files (known_hosts, notify_slack.sh, Dockerfile)

Below is the full example of building the terrascan-argo-cd integration container.

`known_hosts`
Expand Down

0 comments on commit e0e6bd7

Please sign in to comment.