• Geoff Simmons's avatar
    Another breaking change to fix & complete self-sharding with conditions. · f2f71758
    Geoff Simmons authored
    The self-sharding field in VarnishConfig now has a mandatory field
    rules. This is an array of at least one object with a mandatory
    field shard and an optional field conditions.
    
    spec.self-sharding.rules[n].shard configures sharding in the fields
    key, digest and primaryOnly (all optional).
    
    spec.self-sharding.rules[n].conditions, if specified, is an array
    of at least one condition, which specifies a boolean expression.
    It is the same as conditions used for other contexts such as
    rewrites.
    
    The rules array is evaluated in order as an if-elsif-else sequence.
    This means that if any element of the array specifies no conditions,
    it MUST be the last rule in the array. In an array of length > 1,
    it becomes the else case. This constraint is trivially satisfied
    if there is only one rule. It is currently *not* enforced (would be
    suitable for a webhook validation).
    
    The fields probe and max2ndttl are now top-level fields under
    self-sharding, both optional.
    f2f71758
Name
Last commit
Last update
charts Loading commit data...
cmd Loading commit data...
container Loading commit data...
deploy Loading commit data...
docs Loading commit data...
examples Loading commit data...
hack Loading commit data...
pkg Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.kind-gitlab.yaml Loading commit data...
COPYING Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...