kuberig-io / kuberig

Deploy to Kubernetes/OpenShift by leveraging your developer skills - no yaml required!
https://kuberig.io
Apache License 2.0
36 stars 3 forks source link

only allow resource emits in @EnvResources annotated methods #18

Closed teyckmans closed 4 years ago

teyckmans commented 4 years ago

Make the use of emit more strict and provide information on correct use.

teyckmans commented 4 years ago

Build output now contains

> Task :deployLocaldevEnvironment FAILED
Error during execution of ingress.IngressExample.exampleIngress: 
        DslResourceEmitter.emit() not supported in this method. 
        Make sure you call DslResourceEmitter.emit() from within a method annotated with @EnvResources.
        In @EnvResource methods you need to return the resource from the method.