def _create_secrets(pyk_client, app_name, namespace, secrets, verbose):
    """
    Creates a Secret with a number of entries.
    """
    secret = {}
    secret["kind"] = "Secret"
    secret["apiVersion"] = "v1"
    secret["metadata"] = {}
    secret["metadata"]["name"] = "kploy-secrets"
    secret["metadata"]["labels"] = {}
    secret["metadata"]["labels"]["guard"] = "pyk"
    secret["type"] = "Opaque"
    secret["data"] = {}
    for k, v in secrets.iteritems():
        secret["data"][k] = v
    if verbose: logging.info((secret) %"Created secret: %s")
    secrets_path = "".join(["/api/v1/namespaces/", namespace, "/secrets"])
    pyk_client.execute_operation(method='POST', ops_path=secrets_path, payload=util.serialize_tojson(secret))
dataset/ETHPy150Open kubernauts/kploy/kploycommon.py/_create_secrets/swapped operands of `%`