Skip to content

Commit f97d1de

Browse files
committed
Fixed imagePullSecrets
1 parent 9fb3c1c commit f97d1de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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->addToSpec('imagePullSecrets', []);
142142
}
143143

144144
/**

0 commit comments

Comments
 (0)