• 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
..
README.md Loading commit data...
backendconfig.go Loading commit data...
controller.go Loading commit data...
doc.go Loading commit data...
endpoints.go Loading commit data...
ingress.go Loading commit data...
ingress_test.go Loading commit data...
metrics.go Loading commit data...
secret.go Loading commit data...
secret_test.go Loading commit data...
service.go Loading commit data...
svc_event.go Loading commit data...
templateconfig.go Loading commit data...
utils.go Loading commit data...
varnishconfig.go Loading commit data...
varnishconfig_test.go Loading commit data...
worker.go Loading commit data...