fix(CKV_K8S_121): prevent exception when args don't exist
@@ -18,6 +18,7 @@ class PeerClientCertAuthTrue(BaseK8Check):
return "{}.{}.default".format(conf["kind"], conf["metadata"]["name"])
def scan_spec_conf(self, conf, entity_type=None):
+ if conf.get("args") is not None:
if conf.get("metadata")['name'] == 'etcd':
containers = conf.get('spec')['containers']
for container in containers:
