Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ func (m *HydrateKubernetes) BuildPreviousImagesApp(

}

artifact.Metadata.Annotations.PreviousImage = artifact.Metadata.Annotations.Image

updatedFileContents, err := yaml.Marshal(artifact)
if err != nil {
return "", err
}

m.WetRepoDir.WithNewFile(targetDir+"/"+manifest, string(updatedFileContents))
}

marshaled, err := yaml.Marshal(mapImages)
Expand Down
6 changes: 3 additions & 3 deletions hydrate-orchestrator/modules/hydrate-kubernetes/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ type Metadata struct {
}

type Annotations struct {
MicroService string `yaml:"firestartr.dev/microservice"`

Image string `yaml:"firestartr.dev/image"`
MicroService string `yaml:"firestartr.dev/microservice"`
Image string `yaml:"firestartr.dev/image"`
PreviousImage string `yaml:"firestartr.dev/previous-image"`
}

type ImageMatrix struct {
Expand Down
Loading