Skip to content

Commit a8b3226

Browse files
authored
Merge pull request #72 from svenvanhees/master
Changed the imagePullSecrets to a spec.
2 parents cc0c550 + 9e94608 commit a8b3226

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Kinds/K8sIngress.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function getRules(): array
8585
/**
8686
* Set the spec tls.
8787
*
88-
* @param array $rules
88+
* @param array $tlsData
8989
* @return $this
9090
*/
9191
public function setTls(array $tlsData = [])

src/Kinds/K8sPod.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function getInitContainers(bool $asInstance = true): array
113113
*/
114114
public function addPulledSecret(string $name)
115115
{
116-
return $this->addToAttribute('imagePullSecrets', ['name' => $name]);
116+
return $this->addToSpec('imagePullSecrets', ['name' => $name]);
117117
}
118118

119119
/**
@@ -138,7 +138,7 @@ public function addPulledSecrets(array $names)
138138
*/
139139
public function getPulledSecrets(): array
140140
{
141-
return $this->getAttribute('imagePullSecrets', []);
141+
return $this->getSpec('imagePullSecrets', []);
142142
}
143143

144144
/**

0 commit comments

Comments
 (0)