Sha256: ae5e6a0414c12c64660fa5b36b8636992186dd06d08fd2f0b00f69064949c60c
Contents?: true
Size: 1.05 KB
Versions: 7
Compression:
Stored size: 1.05 KB
Contents
module ThreeScaleToolbox module Tasks class BumpProxyVersionTask attr_reader :service def initialize(service:) @service = service end ## # bumps proxy config version to propagate proxy settings updates def call # Proxy update is the mechanism to increase version of the proxy, # Hence propagating (mapping rules, poicies, oidc, auth) update to # latest proxy config, making available to gateway. # Currently it is done always because mapping rules, at least, are always created # So they need to be propagated proxy_settings = { # Adding harmless attribute to avoid empty body # update_proxy cannot be done with empty body # and must be done to increase proxy version # If proxy settings have not been changed since last update, # this request will not have effect and proxy config version will not be bumped. service_id: service.id } service.update_proxy proxy_settings end end end end
Version data entries
7 entries across 7 versions & 1 rubygems