-
Notifications
You must be signed in to change notification settings - Fork 208
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
[GEN-1702] Add odigos UI beta flag #1760
[GEN-1702] Add odigos UI beta flag #1760
Conversation
[GEN-1340] chore: connect form validation
[GEN-1359] chore: merge upstream
[GEN-1341] chore: delete old setup files
[GEN-1136] chore: overview header
[GEN-1361] feat: get destination - gql
[GEN-1400] feat: get actual sources
[GEN-1402] chore: get actual actions
[GEN-1043] chore: insert destinations and action to cp and create resolvers
[GEN-1405] chore: change api to new schema and delete unused files
[GEN-1406] chore: pull main
…n-1702-odigos-ui-beta-flag
frontend/main.go
Outdated
@@ -215,6 +271,8 @@ func httpFileServerWith404(fs http.FileSystem) http.Handler { | |||
}) | |||
} | |||
|
|||
////dep server |
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.
??
frontend/main.go
Outdated
@@ -204,7 +260,7 @@ func startHTTPServer(flags *Flags, odigosMetrics *collectormetrics.OdigosMetrics | |||
return r, nil | |||
} | |||
|
|||
func httpFileServerWith404(fs http.FileSystem) http.Handler { | |||
func httpFileDepServerWith404(fs http.FileSystem) http.Handler { |
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.
unused - remove
cli/cmd/ui.go
Outdated
func init() { | ||
rootCmd.AddCommand(uiCmd) | ||
uiCmd.Flags().Int("port", defaultPort, "port to listen on") | ||
uiCmd.Flags().Int("port", defaultPort, "Port to listen on 3000") |
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.
uiCmd.Flags().Int("port", defaultPort, "Port to listen on 3000") | |
uiCmd.Flags().Int("port", defaultPort, "Port to listen on") |
cli/cmd/ui.go
Outdated
uiCmd.Flags().String("address", "localhost", "Address to listen on") | ||
uiCmd.Flags().Bool("beta", false, "this flag is used to start the beta version of the UI") |
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.
uiCmd.Flags().Bool("beta", false, "this flag is used to start the beta version of the UI") | |
uiCmd.Flags().Bool("beta", false, "use new experimental ui") |
This pull request introduces several changes to the
cli/cmd/ui.go
andfrontend
directories, focusing on adding support for a beta UI, enhancing instrumentation labeling, and refactoring the code to use the Gin framework for HTTP handling.Support for Beta UI:
betaDefaultPort
and modified theuiCmd
to include abeta
flag that allows port-forwarding the beta UI pod on port 3001. (cli/cmd/ui.go
) [1] [2] [3]frontend/main.go
to support running a separate server for the beta UI, including embedding the beta UI files and handling GraphQL requests. (frontend/main.go
) [1] [2] [3] [4] [5] [6] [7]Instrumentation Labeling Enhancements:
WorkloadLabeled
toAppInstrumentationLabeled
and introduced new fieldsNsInstrumentationLabeled
andInstrumentationEffective
to track instrumentation status more accurately. (frontend/endpoints/applications.go
) [1] [2] [3] [4] [5]frontend/endpoints/applications.go
)Refactoring to Use Gin Framework:
frontend/endpoints/config.go
,frontend/endpoints/destinations.go
,frontend/endpoints/namespaces.go
,frontend/endpoints/sources.go
) [1] [2] [3] [4] [5]Dockerfile Update:
frontend/Dockerfile
)These changes collectively improve the functionality and maintainability of the code, providing better support for a beta UI and enhancing the instrumentation labeling mechanism.