Closed kaufers closed 6 years ago
Merging #822 into master will decrease coverage by
0.03%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #822 +/- ##
==========================================
- Coverage 47.2% 47.16% -0.04%
==========================================
Files 89 89
Lines 7940 7944 +4
==========================================
- Hits 3748 3747 -1
- Misses 3832 3836 +4
- Partials 360 361 +1
Impacted Files | Coverage Δ | |
---|---|---|
pkg/template/template.go | 65.21% <100%> (+0.68%) |
:arrow_up: |
pkg/core/object.go | 63.82% <100%> (ø) |
:arrow_up: |
pkg/rpc/mux/server.go | 42.7% <0%> (-5.21%) |
:arrow_down: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 6d084ca...30e2381. Read the comment docs.
By default, if a template map key is missing, the template rendering yields a String with
<no value>
. This commit adds support to pass the templateMissingKey
option, see: https://golang.org/pkg/text/template/#Template.OptionNote that the default behavior will not change; this is opt-in.
This commit also updates the enrollment and ingress controllers to use this new Option so that an
error
is raised.Lastly, the
var
function is also updated to conditionally raise an error if the variable does not exist (if ifMissingKey
option is set toerror)
.Closes #821