Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cmd/ark/main.go
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this new CLI entry point so that the platform-admin will see a process called ark agent.
Otherwise they'd see a process called preflight agent which I predict would cause confusion and concern.

$ ps faux
...

root        1694  0.0  0.1 2046892 12404 ?       Sl   09:42   0:02 /usr/bin/containerd-shim-runc-v2 -namespace moby -id 4d4fe02905a090aa92a0ed239d4871be0bc17f2344976baac8a15473573e2834 -addr
root        1718  0.0  0.1  21856 13348 ?        Ss   09:42   0:01  \_ /sbin/init
...

root        2836  0.0  0.1 1238320 15532 ?       Sl   09:42   0:07      \_ /usr/local/bin/containerd-shim-runc-v2 -namespace k8s.io -id 87aee87b7aca372983184ef29d38c80101cd6b7a2291a58ac406eb
65535       2916  0.0  0.0   1028   704 ?        Ss   09:42   0:00      |   \_ /pause
65532       3609  0.0  0.6 1290388 55160 ?       Ssl  09:43   0:13      |   \_ /ko-app/ark agent -c /etc/cyberark-disco-agent/config.yaml --machine-hub --logging-format=json --enable-metrics
r

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main

import "github.com/jetstack/preflight/cmd"

func main() {
cmd.Execute()
}
23 changes: 23 additions & 0 deletions deploy/charts/cyberark-disco-agent/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
18 changes: 18 additions & 0 deletions deploy/charts/cyberark-disco-agent/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: v2
name: cyberark-disco-agent
description: |-
The cyberark-disco-agent connects your Kubernetes or Openshift cluster to CyberArk Discovery and Context.
maintainers:
- name: CyberArk
email: [email protected]
url: https://cyberark.com

sources:
- https://github.com/jetstack/jetstack-secure

# These versions are meant to be overridden by `make helm-chart`. No `v` prefix
# for the `version` because Helm doesn't support auto-determining the latest
# version for OCI Helm charts that use a `v` prefix.
version: 0.0.0
appVersion: "v0.0.0"
Loading