Skip to content

Commit

Permalink
Merge branch 'main' into ownership_change
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanduplessis authored Oct 10, 2023
2 parents 6ac388a + cc55f39 commit c94576c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/controller/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package controller

import (
"crypto/tls"
"time"

"github.com/crossplane/upjet/pkg/config"
"github.com/crossplane/upjet/pkg/terraform"
Expand Down Expand Up @@ -38,6 +39,10 @@ type Options struct {

// ESSOptions for External Secret Stores.
ESSOptions *ESSOptions

// PollJitter adds the specified jitter to the configured reconcile period
// of the up-to-date resources in managed.Reconciler.
PollJitter time.Duration
}

// ESSOptions for External Secret Stores.
Expand Down
3 changes: 3 additions & 0 deletions pkg/pipeline/templates/controller.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error {
managed.WithConnectionPublishers(cps...),
managed.WithPollInterval(o.PollInterval),
}
if o.PollJitter != 0 {
opts = append(opts, managed.WithPollJitterHook(o.PollJitter))
}
{{- if .FeaturesPackageAlias }}
if o.Features.Enabled({{ .FeaturesPackageAlias }}EnableAlphaManagementPolicies) {
opts = append(opts, managed.WithManagementPolicies())
Expand Down

0 comments on commit c94576c

Please sign in to comment.