Skip to content

Commit f3dec39

Browse files
authored
chore(controlplane): s/oci_repository/cas_backend/g (#236)
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
1 parent 669878e commit f3dec39

File tree

84 files changed

+5472
-5107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+5472
-5107
lines changed

app/cli/internal/action/ocirepository_save.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ type NewOCIRepositorySaveOpts struct {
3636
func (action *OCIRepositorySave) Run(opts *NewOCIRepositorySaveOpts) error {
3737
client := pb.NewOCIRepositoryServiceClient(action.cfg.CPConnection)
3838

39+
// Disable SA1019: client.Save is deprecated: Do not use. Save the OCI repository overriding the existing one (for now) (staticcheck)
40+
//nolint:staticcheck
3941
_, err := client.Save(context.Background(), &pb.OCIRepositoryServiceSaveRequest{
4042
Repository: opts.Repo,
4143
// We currently only support raw keypairs, which does not include AWS keyparis

app/controlplane/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ migration_apply: check-atlas-tool
3737
migration_new: check-atlas-tool
3838
atlas migrate diff --dir ${local_migrations_dir} --to "ent://internal/data/ent/schema" --dev-url "docker://postgres/15/test?search_path=public"
3939

40+
.PHONY: migration_hash
41+
migration_hash: check-atlas-tool
42+
atlas migrate hash --dir ${local_migrations_dir}
43+
4044
.PHONY: test
4145
# All tests, both unit and integration
4246
test:

app/controlplane/api/buf.gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ plugins:
1616
- name: validate
1717
out: .
1818
opt: paths=source_relative,lang=go
19-
- remote: buf.build/stephenh/plugins/ts-proto
19+
- plugin: buf.build/community/stephenh-ts-proto:v1.151.1
2020
out: ./gen/frontend
2121
opt:
2222
- outputClientImpl=grpc-web # client implementation it generates

app/controlplane/api/controlplane/v1/oci_repository.pb.go

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/controlplane/v1/oci_repository.proto

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ import "errors/v1/errors.proto";
2323

2424
service OCIRepositoryService {
2525
// Save the OCI repository overriding the existing one (for now)
26-
rpc Save (OCIRepositoryServiceSaveRequest) returns (OCIRepositoryServiceSaveResponse);
26+
rpc Save (OCIRepositoryServiceSaveRequest) returns (OCIRepositoryServiceSaveResponse) {
27+
// Will get replaced by CASBackends API endpoint
28+
// We are maintaining this for compatibility reasons with old CLIs
29+
option deprecated = true;
30+
}
2731
}
2832

2933
message OCIRepositoryServiceSaveRequest {

app/controlplane/api/controlplane/v1/oci_repository_grpc.pb.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/controlplane/v1/status_http.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/gen/frontend/controlplane/v1/auth.ts

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/gen/frontend/controlplane/v1/cas_credentials.ts

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/gen/frontend/controlplane/v1/context.ts

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)