-
Notifications
You must be signed in to change notification settings - Fork 169
Remove JFS references + secrets engine injection #247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release/4.54
Are you sure you want to change the base?
Changes from 8 commits
bc38cfe
9154242
49d560d
51295fb
5854556
1a546dd
d2602e1
527a07f
d888b86
baae072
e890cf7
312e404
c90a282
724f259
6cd8aa8
5939775
261cd00
5b06909
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,9 @@ | ||
| package backup | ||
|
|
||
| import "github.com/docker/mcp-gateway/pkg/desktop" | ||
|
|
||
| type Backup struct { | ||
| Config string `json:"config"` | ||
| Registry string `json:"registry"` | ||
| Catalog string `json:"catalog"` | ||
| CatalogFiles map[string]string `json:"catalogFiles"` | ||
| Tools string `json:"tools"` | ||
| Secrets []desktop.Secret `json:"secrets"` | ||
| Policy string `json:"policy"` | ||
| } |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,7 +40,6 @@ func Root(ctx context.Context, cwd string, dockerCli command.Cli) *cobra.Command | |
| HiddenDefaultCmd: true, | ||
| }, | ||
| PersistentPreRunE: func(cmd *cobra.Command, args []string) error { | ||
| cmd.SetContext(ctx) | ||
| if err := plugin.PersistentPreRunE(cmd, args); err != nil { | ||
| return err | ||
| } | ||
|
|
@@ -60,6 +59,7 @@ func Root(ctx context.Context, cwd string, dockerCli command.Cli) *cobra.Command | |
| }, | ||
| Version: version.Version, | ||
| } | ||
| cmd.SetContext(ctx) | ||
|
||
| cmd.SetVersionTemplate("{{.Version}}\n") | ||
| cmd.Flags().BoolP("version", "v", false, "Print version information and quit") | ||
| cmd.SetHelpTemplate(helpTemplate) | ||
|
|
@@ -80,7 +80,6 @@ func Root(ctx context.Context, cwd string, dockerCli command.Cli) *cobra.Command | |
| cmd.AddCommand(featureCommand(dockerCli)) | ||
| cmd.AddCommand(gatewayCommand(dockerClient, dockerCli)) | ||
| cmd.AddCommand(oauthCommand()) | ||
| cmd.AddCommand(policyCommand()) | ||
| cmd.AddCommand(registryCommand()) | ||
| cmd.AddCommand(secretCommand(dockerClient)) | ||
| cmd.AddCommand(serverCommand(dockerClient, dockerCli)) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we get rid of the entire backup package. It's superseded by profiles and secrets and now that the policy dump and set commands are gone, can we verify whether this entire package can be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, I think we are safe to remove it. Could be another PR though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good, will address in a follow-up PR