docs: def kubesync():
      """Communicate with kubernetes deployment via kubectl and save image names/IDs to local files"""
  
      ecode = 0
  
      try:
          images = anchore_utils.get_images_from_kubectl()
          if images:
              anchore_print("Writing image IDs to ./anchore_imageIds.kube")
              with open("anchore_imageIds.kube", 'w') as OFH:
                  for imageId in images:
                      OFH.write(imageId + "\n")
              anchore_print("Writing image names to ./anchore_imageNames.kube")
              with open("anchore_imageNames.kube", 'w') as OFH:
                  for imageId in images:
                      OFH.write(images[imageId] + "\n")
                      
      except Exception as err:
          anchore_print_err("operation failed: " + str(err))
          ecode = 1
  
      sys.exit(ecode)