Skip to content
Open
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ __pycache__/

# Distribution / packaging
.Python
venv/
.venv/

.DS_Store

# Specific
config_environment.txt
customer-samples/
venv/
generated-lambda/
pluskube-samples/
sandbox-samples/
3 changes: 3 additions & 0 deletions lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ def lambda_handler(event, context):

# Template for pod information
def sysPodTemplate(pod_name, container_name, pull_string, is_exposed):
if pull_string is None or len(pull_string) < 2:
pull_string = "unknown"

return {
"name": pod_name,
"ips": [],
Expand Down
2 changes: 1 addition & 1 deletion readme.MD
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ Please note that it is limited to Kubernetes deployments for now.

1. Set env vars (read above).

2. python-lambda-local -t 15 -f lambda_handler lambda_function.py <desired-params>
2. python-lambda-local -t 15 -f lambda_handler lambda_function.py event.json