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

Add CRD for template references #184

Merged
merged 19 commits into from
Apr 10, 2024
Merged

Add CRD for template references #184

merged 19 commits into from
Apr 10, 2024

Conversation

petar-cvit
Copy link
Collaborator

To make develoeper experience smoother when creating modules, we added a dropdown when selecting which template you want to use. You can now prepare a templates you will use in the future and just select them in the dropdown instead of writing it each time.

Not to introduce a database to Cyclops, template references were implemented as another CRD which you can apply into the cluster. A single template ref would look like this:

apiVersion: cyclops-ui.com/v1alpha1
kind: TemplateStore
metadata:
  name: demo-template
  namespace: cyclops
spec:
  path: demo
  repo: https://github.com/cyclops-ui/templates
  version: main

@petar-cvit petar-cvit self-assigned this Apr 2, 2024
@petar-cvit petar-cvit marked this pull request as ready for review April 6, 2024 15:42
@petar-cvit
Copy link
Collaborator Author

petar-cvit commented Apr 6, 2024

kubectl apply -f https://raw.githubusercontent.com/cyclops-ui/cyclops/template-ref-crd/install/cyclops-install.yaml && \ kubectl apply -f https://raw.githubusercontent.com/cyclops-ui/cyclops/template-ref-crd/install/demo-templates.yaml

Copy link
Collaborator

@KaradzaJuraj KaradzaJuraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work!

@KaradzaJuraj KaradzaJuraj merged commit 35f90eb into main Apr 10, 2024
1 check passed
@KaradzaJuraj KaradzaJuraj deleted the template-ref-crd branch April 10, 2024 12:21
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

Successfully merging this pull request may close these issues.

2 participants