https://pulumi.com logo
#general
Title
# general
r

rhythmic-hair-33677

12/06/2019, 7:53 PM
One thought is this
Copy code
k8s.core.v1.ServiceAccount.get(
  'default',
  'openfaas-fn/default'
).imagePullSecrets.apply((pullSecrets) => {
  if (!pullSecrets.find((s) => s.name === 'registry-pull-secret')) {
    pullSecrets.push({ name: 'registry-pull-secret' })
  }
})