fix: location where stage id is pulled from in the deployment
@@ -234,7 +234,9 @@ func (a *Workload) Complete(ctx context.Context) (*models.App, error) {
app.Status = fmt.Sprintf("%d/%d",
deployments.Items[0].Status.ReadyReplicas,
deployments.Items[0].Status.Replicas)
- app.StageID = deployments.Items[0].ObjectMeta.Labels["epinio.suse.org/stage-id"]
+
+ app.StageID = deployments.Items[0].
+ Spec.Template.ObjectMeta.Labels["epinio.suse.org/stage-id"]
}
app.Routes, err = a.cluster.ListIngressRoutes(ctx, app.Organization, app.Name)
