Skip to content

Commit

Permalink
Using discovery service poll_interval for access graph sync (#48556)
Browse files Browse the repository at this point in the history
* Using discovery service poll_interval for access graph sync

* Adding a new poll_interval field to access graph sync config

* Update lib/srv/discovery/access_graph.go

Co-authored-by: Ryan Clark <[email protected]>

* Adding default poll interval

* Make fix-imports

* Updating derived functions for config

* Apply suggestions from code review

Co-authored-by: Tiago Silva <[email protected]>

* Followup from PR comments

* Applying protobuf tags to avoid conversion

* Removing conversion

* Regen grpc from rebase

* Adding warning message and checking for nil config

---------

Co-authored-by: Ryan Clark <[email protected]>
Co-authored-by: Tiago Silva <[email protected]>
  • Loading branch information
3 people committed Nov 12, 2024
1 parent 383f2bb commit 828b57d
Show file tree
Hide file tree
Showing 6 changed files with 352 additions and 269 deletions.
6 changes: 6 additions & 0 deletions api/proto/teleport/legacy/types/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7404,6 +7404,12 @@ message OktaOptions {
message AccessGraphSync {
// AWS is a configuration for AWS Access Graph service poll service.
repeated AccessGraphAWSSync AWS = 1 [(gogoproto.jsontag) = "aws,omitempty"];
// PollInterval is the frequency at which to poll for AWS resources
google.protobuf.Duration PollInterval = 2 [
(gogoproto.jsontag) = "poll_interval,omitempty",
(gogoproto.nullable) = false,
(gogoproto.stdduration) = true
];
}

// AccessGraphAWSSync is a configuration for AWS Access Graph service poll service.
Expand Down
3 changes: 2 additions & 1 deletion api/types/discoveryconfig/derived.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 828b57d

Please sign in to comment.