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 app/cli/internal/action/ocirepository_save.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ type NewOCIRepositorySaveOpts struct {
func (action *OCIRepositorySave) Run(opts *NewOCIRepositorySaveOpts) error {
client := pb.NewOCIRepositoryServiceClient(action.cfg.CPConnection)

// Disable SA1019: client.Save is deprecated: Do not use. Save the OCI repository overriding the existing one (for now) (staticcheck)
//nolint:staticcheck
_, err := client.Save(context.Background(), &pb.OCIRepositoryServiceSaveRequest{
Repository: opts.Repo,
// We currently only support raw keypairs, which does not include AWS keyparis
Expand Down
4 changes: 4 additions & 0 deletions app/controlplane/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ migration_apply: check-atlas-tool
migration_new: check-atlas-tool
atlas migrate diff --dir ${local_migrations_dir} --to "ent://internal/data/ent/schema" --dev-url "docker://postgres/15/test?search_path=public"

.PHONY: migration_hash
migration_hash: check-atlas-tool
atlas migrate hash --dir ${local_migrations_dir}

.PHONY: test
# All tests, both unit and integration
test:
Expand Down
2 changes: 1 addition & 1 deletion app/controlplane/api/buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ plugins:
- name: validate
out: .
opt: paths=source_relative,lang=go
- remote: buf.build/stephenh/plugins/ts-proto
- plugin: buf.build/community/stephenh-ts-proto:v1.151.1
Copy link
Member Author

Choose a reason for hiding this comment

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

out: ./gen/frontend
opt:
- outputClientImpl=grpc-web # client implementation it generates
Expand Down
18 changes: 9 additions & 9 deletions app/controlplane/api/controlplane/v1/oci_repository.pb.go

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

6 changes: 5 additions & 1 deletion app/controlplane/api/controlplane/v1/oci_repository.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ import "errors/v1/errors.proto";

service OCIRepositoryService {
// Save the OCI repository overriding the existing one (for now)
rpc Save (OCIRepositoryServiceSaveRequest) returns (OCIRepositoryServiceSaveResponse);
rpc Save (OCIRepositoryServiceSaveRequest) returns (OCIRepositoryServiceSaveResponse) {
// Will get replaced by CASBackends API endpoint
// We are maintaining this for compatibility reasons with old CLIs
option deprecated = true;
}
}

message OCIRepositoryServiceSaveRequest {
Expand Down

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

2 changes: 1 addition & 1 deletion app/controlplane/api/controlplane/v1/status_http.pb.go

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

4 changes: 2 additions & 2 deletions app/controlplane/api/gen/frontend/controlplane/v1/auth.ts

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

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

14 changes: 7 additions & 7 deletions app/controlplane/api/gen/frontend/controlplane/v1/context.ts

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

Loading