Skip to content

Commit

Permalink
Don't move velero v1 plugins to new proto dir
Browse files Browse the repository at this point in the history
To preserve backwards compatibility, don't move velero
v1 plugins to new proto dir.

Signed-off-by: Scott Seago <[email protected]>
  • Loading branch information
sseago committed Aug 30, 2022
1 parent 94a9a7c commit f53b6d8
Show file tree
Hide file tree
Showing 7 changed files with 118 additions and 120 deletions.
1 change: 0 additions & 1 deletion hack/update-2proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ echo "Updating plugin proto"

echo protoc --version
protoc pkg/plugin/proto/*.proto --go_out=plugins=grpc:pkg/plugin/generated/ --go_opt=module=github.com/vmware-tanzu/velero/pkg/plugin/generated -I pkg/plugin/proto/
protoc pkg/plugin/proto/backupitemaction/v1/*.proto --go_out=plugins=grpc:pkg/plugin/generated/ --go_opt=module=github.com/vmware-tanzu/velero/pkg/plugin/generated -I pkg/plugin/proto/

echo "Updating plugin proto - done!"
2 changes: 1 addition & 1 deletion pkg/plugin/framework/backup_item_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"golang.org/x/net/context"
"google.golang.org/grpc"

protobiav1 "github.com/vmware-tanzu/velero/pkg/plugin/generated/backupitemaction/v1"
protobiav1 "github.com/vmware-tanzu/velero/pkg/plugin/generated"
)

// BackupItemActionPlugin is an implementation of go-plugin's Plugin
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/framework/backup_item_action_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"

api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
protobiav1 "github.com/vmware-tanzu/velero/pkg/plugin/generated/backupitemaction/v1"
protobiav1 "github.com/vmware-tanzu/velero/pkg/plugin/generated"
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/framework/backup_item_action_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
protobiav1 "github.com/vmware-tanzu/velero/pkg/plugin/generated/backupitemaction/v1"
protobiav1 "github.com/vmware-tanzu/velero/pkg/plugin/generated"
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
biav1 "github.com/vmware-tanzu/velero/pkg/plugin/velero/backupitemaction/v1"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/framework/backup_item_action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
v1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/backup/mocks"
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
protobiav1 "github.com/vmware-tanzu/velero/pkg/plugin/generated/backupitemaction/v1"
protobiav1 "github.com/vmware-tanzu/velero/pkg/plugin/generated"
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
)
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";
package v1;
option go_package = "github.com/vmware-tanzu/velero/pkg/plugin/generated/backupitemaction/v1";
package generated;
option go_package = "github.com/vmware-tanzu/velero/pkg/plugin/generated";

import "Shared.proto";

Expand All @@ -12,7 +12,7 @@ message ExecuteRequest {

message ExecuteResponse {
bytes item = 1;
repeated generated.ResourceIdentifier additionalItems = 2;
repeated ResourceIdentifier additionalItems = 2;
}

service BackupItemAction {
Expand All @@ -25,5 +25,5 @@ message BackupItemActionAppliesToRequest {
}

message BackupItemActionAppliesToResponse {
generated.ResourceSelector ResourceSelector = 1;
ResourceSelector ResourceSelector = 1;
}

0 comments on commit f53b6d8

Please sign in to comment.