Skip to content

Commit c7b03d9

Browse files
committed
debug
1 parent 5820e46 commit c7b03d9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mutate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def mutatating_webhook():
9898
try:
9999
pod_generate_name = spec["metadata"]["generateName"]
100100
except KeyError:
101+
logger.debug("Request is: " + req )
101102
logger.info("Request UID: " + uid + " does not have pod generate name..")
102103
pod_generate_name = ""
103104
try:
@@ -114,7 +115,7 @@ def mutatating_webhook():
114115

115116
if namespace in list:
116117
logger.debug("Namespace " + namespace + " is not restricted. | " + " Owner Object: " + pod_owner_object_name + " | Owner Object Kind: " + pod_owner_object_kind + " | Pod Generate Name: " + pod_generate_name + " | " + " Request UID: " + uid + " | NOT MUTATED AND DEPLOYED " )
117-
logger.info("Namespace: " + namespace + "Owner Object: " + pod_owner_object_name + " | NOT MUTATED AND DEPLOYED ")
118+
logger.info("Namespace: " + namespace + " | Owner Object: " + pod_owner_object_name + " | NOT MUTATED AND DEPLOYED ")
118119
return default_response(uid)
119120
else:
120121
if (spec["spec"]["dnsPolicy"] is None) or (spec["spec"]["dnsPolicy"] == "ClusterFirst"):

resources/env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION 0.0.34-SNAPSHOT
1+
VERSION 0.0.35-SNAPSHOT

0 commit comments

Comments
 (0)