Skip to content

Commit

Permalink
Merge pull request #72 from svenvanhees/master
Browse files Browse the repository at this point in the history
Changed the imagePullSecrets to a spec.
  • Loading branch information
rennokki authored Feb 26, 2021
2 parents cc0c550 + 9e94608 commit a8b3226
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Kinds/K8sIngress.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function getRules(): array
/**
* Set the spec tls.
*
* @param array $rules
* @param array $tlsData
* @return $this
*/
public function setTls(array $tlsData = [])
Expand Down
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->getSpec('imagePullSecrets', []);
}

/**
Expand Down

0 comments on commit a8b3226

Please sign in to comment.