You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix linting issue by bumping up build submodules to latest one
* Add support for logs that introduced in v1.17.0
* Add support for metrics that introduced in v1.16.0
* Update Delete function that required changes in v1.17.0
* Bump up go version to 1.22
Signed-off-by: Chuan-Yen Chiang <[email protected]>
app=kingpin.New(filepath.Base(os.Args[0]), "Template support for Crossplane.").DefaultEnvars()
49
60
debug=app.Flag("debug", "Run with debug logging.").Short('d').Bool()
50
-
leaderElection=app.Flag("leader-election", "Use leader election for the controller manager.").Short('l').Default("false").OverrideDefaultFromEnvar("LEADER_ELECTION").Bool()
61
+
leaderElection=app.Flag("leader-election", "Use leader election for the controller manager.").Short('l').Default("false").Envar("LEADER_ELECTION").Bool()
62
+
63
+
syncInterval=app.Flag("sync", "How often all resources will be double-checked for drift from the desired state.").Short('s').Default("1h").Duration()
64
+
pollInterval=app.Flag("poll", "How often individual resources will be checked for drift from the desired state").Default("1m").Duration()
65
+
pollStateMetricInterval=app.Flag("poll-state-metric", "State metric recording interval").Default("5s").Duration()
51
66
52
-
syncInterval=app.Flag("sync", "How often all resources will be double-checked for drift from the desired state.").Short('s').Default("1h").Duration()
53
-
pollInterval=app.Flag("poll", "How often individual resources will be checked for drift from the desired state").Default("1m").Duration()
54
67
maxReconcileRate=app.Flag("max-reconcile-rate", "The global maximum rate per second at which resources may checked for drift from the desired state.").Default("10").Int()
55
68
56
69
namespace=app.Flag("namespace", "Namespace used to set as default scope in default secret store config.").Default("crossplane-system").Envar("POD_NAMESPACE").String()
57
70
enableExternalSecretStores=app.Flag("enable-external-secret-stores", "Enable support for ExternalSecretStores.").Default("false").Envar("ENABLE_EXTERNAL_SECRET_STORES").Bool()
58
71
enableManagementPolicies=app.Flag("enable-management-policies", "Enable support for Management Policies.").Default("false").Envar("ENABLE_MANAGEMENT_POLICIES").Bool()
72
+
enableChangeLogs=app.Flag("enable-change-logs", "Enable support for capturing change logs during reconciliation.").Default("false").Envar("ENABLE_CHANGE_LOGS").Bool()
59
73
)
60
74
kingpin.MustParse(app.Parse(os.Args[1:]))
61
75
@@ -80,7 +94,7 @@ func main() {
80
94
81
95
// controller-runtime uses both ConfigMaps and Leases for leader
82
96
// election by default. Leases expire after 15 seconds, with a
83
-
// 10 second renewal deadline. We've observed leader loss due to
97
+
// 10 seconds renewal deadline. We've observed leader loss due to
84
98
// renewal deadlines being exceeded when under high load - i.e.
85
99
// hundreds of reconciles per second and ~200rps to the API
86
100
// server. Switching to Leases only and longer leases appears to
0 commit comments