-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: update container definition casing to match Kilt's expected format * Add a couple of unit tests for entrypoint and env (fails due to env order) * Update tests to sort env before comparing * Check for correct capitalization on volumesFrom * Add conversion of linuxParameters to CFN capitalized keys * lint: add missing err checks * fix: remove debug * Add error checking for updateKeys * Update test to use consistent capitalization
- Loading branch information
Showing
13 changed files
with
599 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"name": "test", | ||
"image": "test_image:latest", | ||
"entryPoint": [ | ||
"/bin/test" | ||
], | ||
"command": [ | ||
"test", | ||
"--test-arg", | ||
"test-arg-value" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
[ | ||
{ | ||
"name": "test", | ||
"Image": "test_image:latest", | ||
"EntryPoint": [ | ||
"/opt/draios/bin/instrument" | ||
], | ||
"Command": [ | ||
"/bin/test", | ||
"test", | ||
"--test-arg", | ||
"test-arg-value" | ||
], | ||
"Environment": [ | ||
{ | ||
"Name": "SYSDIG_ORCHESTRATOR_PORT", | ||
"Value": "orchestrator_port" | ||
}, | ||
{ | ||
"Name": "SYSDIG_COLLECTOR", | ||
"Value": "collector_host" | ||
}, | ||
{ | ||
"Name": "SYSDIG_COLLECTOR_PORT", | ||
"Value": "collector_port" | ||
}, | ||
{ | ||
"Name": "SYSDIG_ACCESS_KEY", | ||
"Value": "sysdig_access_key" | ||
}, | ||
{ | ||
"Name": "SYSDIG_LOGGING", | ||
"Value": "" | ||
}, | ||
{ | ||
"Name": "SYSDIG_ORCHESTRATOR", | ||
"Value": "orchestrator_host" | ||
} | ||
], | ||
"LinuxParameters": { | ||
"Capabilities": { | ||
"Add": [ | ||
"SYS_PTRACE" | ||
] | ||
} | ||
}, | ||
"VolumesFrom": [ | ||
{ | ||
"ReadOnly": true, | ||
"SourceContainer": "SysdigInstrumentation" | ||
} | ||
] | ||
}, | ||
{ | ||
"EntryPoint": [ | ||
"/opt/draios/bin/logwriter" | ||
], | ||
"Image": "workload_agent_image", | ||
"Name": "SysdigInstrumentation", | ||
"RepositoryCredentials": { | ||
"CredentialsParameter": "image_auth_secret" | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[ | ||
{ | ||
"name": "test", | ||
"image": "test_image:latest", | ||
"entryPoint": [ | ||
"/bin/test" | ||
], | ||
"command": [ | ||
"test", | ||
"--test-arg", | ||
"test-arg-value" | ||
], | ||
"environment": [ | ||
{ | ||
"name": "TMP", | ||
"value": "temporary" | ||
}, | ||
{ | ||
"name": "SYSDIG_CUSTOM", | ||
"value": "custom" | ||
} | ||
], | ||
"volumesFrom": [ | ||
{ | ||
"sourceContainer": "test_container", | ||
"readOnly": true | ||
} | ||
] | ||
} | ||
] |
Oops, something went wrong.