Skip to content

Commit

Permalink
Adding a check to a cast to the Recipe object (radius-project#7797)
Browse files Browse the repository at this point in the history
  • Loading branch information
ytimocin authored Aug 9, 2024
1 parent 83f57c2 commit 3d96ee6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/applications-rp/radius-cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ featureFlags:
- "PLACEHOLDER"
ucp:
kind: kubernetes
# Logging configuration
# Logging configuration
logging:
level: "info"
json: false
Expand Down
4 changes: 2 additions & 2 deletions cmd/controller/controller-self-hosted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ server:
host: "0.0.0.0"
port: 8083

# workerServer port specifies port set for Health Checks
# workerServer port specifies port set for Health Checks
workerServer:
port: 3000
ucp:
Expand All @@ -22,4 +22,4 @@ ucp:
endpoint: "http://localhost:9000/apis/api.ucp.dev/v1alpha3"
logging:
level: "info"
json: false
json: false
5 changes: 4 additions & 1 deletion pkg/controller/reconciler/deployment_reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,10 @@ func (r *DeploymentReconciler) saveState(ctx context.Context, deployment *appsv1
}

func (r *DeploymentReconciler) findDeploymentsForRecipe(ctx context.Context, obj client.Object) []reconcile.Request {
recipe := obj.(*radappiov1alpha3.Recipe)
recipe, ok := obj.(*radappiov1alpha3.Recipe)
if !ok {
return []reconcile.Request{}
}

deployments := &appsv1.DeploymentList{}
options := &client.ListOptions{
Expand Down

0 comments on commit 3d96ee6

Please sign in to comment.