Skip to content

Commit

Permalink
Fixed imagePullSecrets
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Feb 26, 2021
1 parent 9fb3c1c commit f97d1de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kinds/K8sPod.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function getInitContainers(bool $asInstance = true): array
*/
public function addPulledSecret(string $name)
{
return $this->addToAttribute('imagePullSecrets', ['name' => $name]);
return $this->addToSpec('imagePullSecrets', ['name' => $name]);
}

/**
Expand All @@ -138,7 +138,7 @@ public function addPulledSecrets(array $names)
*/
public function getPulledSecrets(): array
{
return $this->getAttribute('imagePullSecrets', []);
return $this->addToSpec('imagePullSecrets', []);
}

/**
Expand Down

0 comments on commit f97d1de

Please sign in to comment.