Skip to content

CI - Issue when trying to register local-dev recipes without rad init #17

@mathieu-benoit

Description

@mathieu-benoit

I'm trying to register local-dev recipes without rad init (to avoid the interactive aspect of it, to include this in a CI pipeline), but I'm not able to.

Here is my setup on top of my Kubernetes cluster:

rad install kubernetes

rad group create default --workspace default
rad env create default --group default

Registering one local-dev recipe:

rad recipe register default --environment default --resource-type "Applications.Datastores/redisCaches" --template-kind bicep --template-path "ghcr.io/radius-project/recipes/local-dev/rediscaches:latest"

This will work if I manually run this in Codespace, but it's not working if running in GHA CI (example here https://github.com/score-spec/score-radius/actions/runs/20104150059/job/57683029300)

rad recipe register default --environment default --resource-type "Applications.Datastores/redisCaches" --template-kind bicep --template-path "ghcr.io/radius-project/recipes/local-dev/rediscaches:latest"
Error: {
  "code": "NotFound",
  "message": "The request 'GET /apis/api.ucp.dev/v1alpha3/providers/Applications.Core/environments/default' is invalid."
}

List the recipes installed:

rad recipe list
RECIPE    TYPE                                 TEMPLATE KIND  TEMPLATE VERSION  TEMPLATE
default   Applications.Datastores/redisCaches  bicep                            ghcr.io/radius-project/recipes/local-dev/rediscaches:latest

I'm sure I'm missing something or doing something wrong here, could you guide me to make it work?

JFYI: Radius version v0.54.0

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions