in hack/create_kptfile.py [0:0]
def create_setter(name, value, cwd, field=None):
command = ["kpt", "cfg", "create-setter", ".", name, value]
if field:
command.append("--field")
command.append(field)
logging.info("Run:\n" + " ".join(command))
subprocess.check_call(command, cwd=cwd)