agent-claw: automated task changes
This commit is contained in:
26
cdk/node_modules/aws-cdk-lib/custom-resource-handlers/dist/aws-eks-v2/kubectl-handler/index.py
generated
vendored
Normal file
26
cdk/node_modules/aws-cdk-lib/custom-resource-handlers/dist/aws-eks-v2/kubectl-handler/index.py
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import json
|
||||
import logging
|
||||
|
||||
from apply import apply_handler
|
||||
from helm import helm_handler
|
||||
from patch import patch_handler
|
||||
from get import get_handler
|
||||
|
||||
def handler(event, context):
|
||||
print(json.dumps(dict(event, ResponseURL='...')))
|
||||
|
||||
resource_type = event['ResourceType']
|
||||
if resource_type == 'Custom::AWSCDK-EKS-KubernetesResource':
|
||||
return apply_handler(event, context)
|
||||
|
||||
if resource_type == 'Custom::AWSCDK-EKS-HelmChart':
|
||||
return helm_handler(event, context)
|
||||
|
||||
if resource_type == 'Custom::AWSCDK-EKS-KubernetesPatch':
|
||||
return patch_handler(event, context)
|
||||
|
||||
if resource_type == 'Custom::AWSCDK-EKS-KubernetesObjectValue':
|
||||
return get_handler(event, context)
|
||||
|
||||
raise Exception("unknown resource type %s" % resource_type)
|
||||
|
||||
Reference in New Issue
Block a user