Skip to content

Commit

Permalink
fix: panic when placing dynamic params in IR because the "artifact.co…
Browse files Browse the repository at this point in the history
…nfigs" is nil at some points (#1006)

Signed-off-by: Harikrishnan Balagopal <[email protected]>
  • Loading branch information
HarikrishnanBalagopal authored Apr 4, 2023
1 parent 7fabe36 commit c1af24d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions transformer/kubernetes/kubernetestransformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ func (t *Kubernetes) Transform(newArtifacts []transformertypes.Artifact, already
if err := newArtifact.GetConfig(ExtraParameterizersConfigType, &moreParams); err != nil {
logrus.Debugf("failed to load config of type '%s' into struct of type %T . Error: %q", ExtraParameterizersConfigType, moreParams, err)
} else {
if createdArtifact.Configs == nil {
createdArtifact.Configs = map[string]interface{}{}
}
createdArtifact.Configs[ExtraParameterizersConfigType] = moreParams
}
}
Expand Down

0 comments on commit c1af24d

Please sign in to comment.