Skip to content

Commit

Permalink
feat(STONEINTG-1006): adding to component status.lastPromotedImage
Browse files Browse the repository at this point in the history
Signed-off-by: Kasem Alem <[email protected]>
  • Loading branch information
kasemAlem committed Aug 6, 2024
1 parent be06193 commit f4ac470
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/v1alpha1/component_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ type ComponentStatus struct {
// Example: 41fbdb124775323f58fd5ce93c70bb7d79c20650.
LastBuiltCommit string `json:"lastBuiltCommit,omitempty"`

// The last digest image component promoted with.
// Example: quay.io/someorg/somerepository@sha256:5ca85b7f7b9da18a9c4101e81ee1d9bac35ac2b0b0221908ff7389204660a262.
LastPromotedImage string `json:"lastPromotedImage,omitempty"`

// The list of names of Components whose builds nudge this resource (their spec.build-nudges-ref[] references this component)
BuildNudgedBy []string `json:"build-nudged-by,omitempty"`
}
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/appstudio.redhat.com_components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ spec:
description: 'The last built commit id (SHA-1 checksum) from the latest
component build. Example: 41fbdb124775323f58fd5ce93c70bb7d79c20650.'
type: string
lastPromotedImage:
description: 'The last digest image component promoted with. Example:
quay.io/someorg/somerepository@sha256:5ca85b7f7b9da18a9c4101e81ee1d9bac35ac2b0b0221908ff7389204660a262.'
type: string
webhook:
description: Webhook URL generated by Builds
type: string
Expand Down
4 changes: 4 additions & 0 deletions manifests/application-api-customresourcedefinitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,10 @@ spec:
description: 'The last built commit id (SHA-1 checksum) from the latest
component build. Example: 41fbdb124775323f58fd5ce93c70bb7d79c20650.'
type: string
lastPromotedImage:
description: 'The last digest image component promoted with. Example:
quay.io/someorg/somerepository@sha256:5ca85b7f7b9da18a9c4101e81ee1d9bac35ac2b0b0221908ff7389204660a262.'
type: string
webhook:
description: Webhook URL generated by Builds
type: string
Expand Down

0 comments on commit f4ac470

Please sign in to comment.