Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .cloudbuild/scripts/internal/changes/changes.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,14 @@ func isCIChange(path string) bool {

func isOperatorChange(path string) bool {
path = strings.ToLower(path)
return strings.HasPrefix(path, "operator/")
// dependency updates can impact CRD generation,
// so ensure that operator tests are run when
// dependencies change
return path == "go.mod" ||
path == "go.sum" ||
strings.HasPrefix(path, "operator/") ||
strings.HasPrefix(path, "api/types") || // the operator uses directly Teleport types
strings.HasPrefix(path, "lib/tbot") // the operator embeds a tbot instance
}

func isDocChange(path string) bool {
Expand Down