Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Fix annotation bugs #252

Merged

Conversation

gerrywastaken
Copy link
Contributor

Before this change, if you tried providing a ServiceAccount annotation
you will get the following error from Helm:
coalesce.go:199: warning: destination for annotations is a table. Ignoring non-table value <nil>

This fixes the default value so this issue doesn't happen.

There is also another fix for the annotations in the deployment so that it's more consistent with other areas. Without this, we generate an empty annotations section in the deployment when no podAnnotations are provided.

If podAnnotations is empty then we should not try to add the annotations
at all as they will be empty.
Before this change, if you tried providing a ServiceAccount annotation
you will get the following error:
`coalesce.go:199: warning: destination for annotations is a table.
Ignoring non-table value <nil>`

This addresses this by replacing the default for annotations with an empty
object.
@gerrywastaken gerrywastaken changed the title Gc/fix annotation bugs Fix annotation bugs Dec 16, 2019
@Flydiverny Flydiverny merged commit b163a69 into external-secrets:master Dec 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants