Replies: 3 comments 1 reply
-
Do you mean you want to setup a common deployment spec that is used like a template by other files? I have a possible example you can see here we define the deployment: https://github.com/Nalum/cert-manager-module/blob/main/templates/deployment.cue#L12-L99 This is then used further down in the file where we override specific values: https://github.com/Nalum/cert-manager-module/blob/main/templates/deployment.cue#L101-L115 The https://github.com/Nalum/cert-manager-module/blob/main/templates/deploymentSpecController.cue#L11 |
Beta Was this translation helpful? Give feedback.
-
here is sample template that I created for CUE , I'm trying to understand how it will work with timoni . what I am think I will have set of template deployment , services and HPA. and when I run pipeline , in the values will provide name of Deployment and other information for example , not sure how ti will work in timoni. Can I connect somebody on teams chat to understand in more , or if you have examples to see , tryin to get head around it values: {
} package kube deployment: [ID=_]: {
} |
Beta Was this translation helpful? Give feedback.
-
I was able to get through Now I think I understand how it works |
Beta Was this translation helpful? Give feedback.
-
There is flag enabled in our helm template if it true it will install that particular workload . for if in the value file deployment is enabled it will install deployment. basically we have common helm templates which is used by all the application. can you do same in timoni also , do we need this packages timoniv1 "timoni.sh/core/v1alpha1" , corev1 "k8s.io/api/core/v1" , appsv1 "k8s.io/api/apps/v1" part of the template
Beta Was this translation helpful? Give feedback.
All reactions