Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions .github/workflows/unit-tests-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- '/go.sum'
- 'operator/**'
- 'api/types/**'
- 'gen/**'
- 'lib/tbot/**'
- 'build.assets/Makefile'
- 'build.assets/Dockerfile*'
Expand All @@ -20,6 +21,7 @@ on:
- '/go.sum'
- 'operator/**'
- 'api/types/**'
- 'gen/**'
- 'lib/tbot/**'
Copy link
Copy Markdown
Contributor

@hugoShaka hugoShaka Feb 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly this should also contain lib/**. I think the gen/ dependency was added by a lib/something edition, which was likely a dependency of lib/tbot.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I was also thinking we should just run operator tests on any .go source code change to be safe. It runs fast anyway. Will fix later (after release).

- 'build.assets/Makefile'
- 'build.assets/Dockerfile*'
Expand Down
3 changes: 2 additions & 1 deletion api/types/accountrecovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ import (
"github.com/gravitational/trace"
)

// NewRecoveryCodes creates a new RecoveryCodes with the given codes and created time.
// NewRecoveryCodes creates a new RecoveryCodes with the given codes and created
// time.
func NewRecoveryCodes(codes []RecoveryCode, created time.Time, username string) (*RecoveryCodesV1, error) {
rc := &RecoveryCodesV1{
Metadata: Metadata{
Expand Down
1 change: 1 addition & 0 deletions operator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN go mod download

COPY *.go ./
COPY lib/ lib/
COPY gen/ gen/
COPY operator/apis/ operator/apis/
COPY operator/controllers/ operator/controllers/
COPY operator/sidecar/ operator/sidecar/
Expand Down