Exemplo n.º 1
0
 /**
  * Get the logs for a pod.
  *
  * @param  \Maclof\Kubernetes\Models\Pod $pod
  * @param  array $options
  * @return string
  */
 public function logs(Pod $pod, array $options = [])
 {
     $response = $this->client->sendRequest('GET', '/' . $this->uri . '/' . $pod->getMetadata('name') . '/log', $options);
     return $response;
 }
Exemplo n.º 2
0
 public function test_get_metadata()
 {
     $pod = new Pod(['metadata' => ['name' => 'test']]);
     $metadata = $pod->getMetadata('name');
     $this->assertEquals($metadata, 'test');
 }