Skip to content

Commit

Permalink
Pull condition operators into a one of
Browse files Browse the repository at this point in the history
  • Loading branch information
strideynet committed Jan 10, 2025
1 parent 4ee850e commit da20152
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 50 deletions.
122 changes: 74 additions & 48 deletions api/gen/proto/go/teleport/workloadidentity/v1/resource.pb.go

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

6 changes: 4 additions & 2 deletions api/proto/teleport/workloadidentity/v1/resource.proto
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ message WorkloadIdentity {
message WorkloadIdentityCondition {
// The name of the attribute to evaluate the condition against.
string attribute = 1;
// An exact string that the attribute must match.
string equals = 2;
oneof operator {
// An exact string that the attribute must match.
string equals = 2;

Check failure on line 47 in api/proto/teleport/workloadidentity/v1/resource.proto

View workflow job for this annotation

GitHub Actions / Lint (Proto)

Field "2" with name "equals" on message "WorkloadIdentityCondition" moved from outside to inside a oneof.
}
}

// An individual rule that is evaluated during the issuance of a WorkloadIdentity.
Expand Down

0 comments on commit da20152

Please sign in to comment.