diff --git a/src/Kinds/K8sIngress.php b/src/Kinds/K8sIngress.php index 41821bf2..185c04e4 100644 --- a/src/Kinds/K8sIngress.php +++ b/src/Kinds/K8sIngress.php @@ -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 = []) diff --git a/src/Kinds/K8sPod.php b/src/Kinds/K8sPod.php index f0926dfe..bc84d2bb 100644 --- a/src/Kinds/K8sPod.php +++ b/src/Kinds/K8sPod.php @@ -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]); } /** @@ -138,7 +138,7 @@ public function addPulledSecrets(array $names) */ public function getPulledSecrets(): array { - return $this->getAttribute('imagePullSecrets', []); + return $this->getSpec('imagePullSecrets', []); } /**