c2cd01e5245aa7f2d33dfc47794d578c62a5d81e,perfkitbenchmarker/kubernetes/kubernetes_virtual_machine.py,KubernetesVirtualMachine,_CreateSecret,#KubernetesVirtualMachine#,269

Before Change


    create_secret_body = json.dumps(template)
    create_secret = [FLAGS.kubectl, "--kubeconfig=%s" % FLAGS.kubeconfig,
                     "create", "-f", "-"]
    process = Popen(create_secret, stdout=PIPE, stdin=PIPE, stderr=STDOUT)
    result = process.communicate(input=create_secret_body)
    logging.info(result[0].rstrip())

  def _DeleteSecret(self):
    

After Change


    create_secret_body = json.dumps(template)
    create_secret = [FLAGS.kubectl, "--kubeconfig=%s" % FLAGS.kubeconfig,
                     "create", "-f", "-"]
    output = vm_util.IssueCommand(create_secret, input=create_secret_body)
    if output[EXIT_CODE]:
      raise Exception("Creating secret failed: %s" % output[STDERR])
    logging.info(output[STDOUT].rstrip())

  def _DeleteSecret(self):
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: c2cd01e5245aa7f2d33dfc47794d578c62a5d81e
Time: 2015-09-21
Author: mateusz.blaszkowski@intel.com
File Name: perfkitbenchmarker/kubernetes/kubernetes_virtual_machine.py
Class Name: KubernetesVirtualMachine
Method Name: _CreateSecret


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: c2cd01e5245aa7f2d33dfc47794d578c62a5d81e
Time: 2015-09-21
Author: mateusz.blaszkowski@intel.com
File Name: perfkitbenchmarker/kubernetes/kubernetes_virtual_machine.py
Class Name: KubernetesVirtualMachine
Method Name: _CreatePod


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: c2cd01e5245aa7f2d33dfc47794d578c62a5d81e
Time: 2015-09-21
Author: mateusz.blaszkowski@intel.com
File Name: perfkitbenchmarker/kubernetes/kubernetes_virtual_machine.py
Class Name: KubernetesVirtualMachine
Method Name: _CreateService