Skip to content
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

feat: customize nav bar background color #7387

Merged
merged 6 commits into from
Jan 24, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
13 changes: 13 additions & 0 deletions api/jsonschema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5447,6 +5447,9 @@
},
"managedNamespace": {
"type": "string"
},
"ui": {
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.UI"
}
},
"type": "object"
Expand Down Expand Up @@ -6862,6 +6865,16 @@
],
"type": "object"
},
"io.argoproj.workflow.v1alpha1.UI": {
"description": "UI defines a config for UI",
"properties": {
"navColor": {
"description": "NavColor is an ui navigation bar theme which switch the design",
"type": "string"
}
},
"type": "object"
},
"io.argoproj.workflow.v1alpha1.UpdateCronWorkflowRequest": {
"properties": {
"cronWorkflow": {
Expand Down
13 changes: 13 additions & 0 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -9710,6 +9710,9 @@
},
"managedNamespace": {
"type": "string"
},
"ui": {
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.UI"
}
}
},
Expand Down Expand Up @@ -11124,6 +11127,16 @@
}
}
},
"io.argoproj.workflow.v1alpha1.UI": {
"description": "UI defines a config for UI",
"type": "object",
"properties": {
"navColor": {
"description": "NavColor is an ui navigation bar theme which switch the design",
"type": "string"
}
}
},
"io.argoproj.workflow.v1alpha1.UpdateCronWorkflowRequest": {
"type": "object",
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ type Config struct {
// The command/args for each image, needed when the command is not specified and the emissary executor is used.
// https://argoproj.github.io/argo-workflows/workflow-executors/#emissary-emissary
Images map[string]Image `json:"images,omitempty"`

// UI defines a config for UI
UI *wfv1.UI `json:"ui,omitempty"`
}

func (c Config) GetContainerRuntimeExecutor(labels labels.Labels) (string, error) {
Expand Down
128 changes: 95 additions & 33 deletions pkg/apiclient/info/info.pb.go

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

1 change: 1 addition & 0 deletions pkg/apiclient/info/info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ message GetInfoRequest {
message InfoResponse {
string managedNamespace = 1;
repeated github.com.argoproj.argo_workflows.v3.pkg.apis.workflow.v1alpha1.Link links = 2;
github.com.argoproj.argo_workflows.v3.pkg.apis.workflow.v1alpha1.UI ui = 3;
}

message GetVersionRequest {
Expand Down
Loading