Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CloudRun configuration for skaffold requires projectid and therefore cannot be generic for deployment #158

Open
evekhm opened this issue Mar 27, 2024 · 0 comments

Comments

@evekhm
Copy link
Contributor

evekhm commented Mar 27, 2024

The skaffold yaml file for Cloud Run requires setting of the projectid.

Currently when using solutions-builder for CloudRun configuration in the generated skaffold.yaml is hardcoded. When you make this value your-project-id the sb set project-id command would not replace the value.

- &cloudrun-profile # YAML anchor used by "default" profile.
  name: cloudrun
  manifests:
    rawYaml:
      - manifests/cloudrun-service.yaml
  deploy:
    cloudrun:
      region: us-central1
      projectid: your-project-id

Therefore you cannot have a template that everyone can deploy into their own GCP environment.

The only workaround is to use manual command instead of the sb deploy:

skaffold run -p default-deploy -n default --default-repo="gcr.io/$PROJECT_ID" --cloud-run-project=$PROJECT_ID --cloud-run-location=us-central1

@evekhm evekhm changed the title CloudRun configuration is not properly supported for deployment CloudRun configuration for skaffold requires projectid and therefore cannot be generic for deployment Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant