Documentation ¶
Index ¶
Constants ¶
View Source
const ( PROBE_TYPE_READINESS = "readiness" PROBE_TYPE_LIVENESS = "liveness" )
Variables ¶
View Source
var ( ProbeCmd = &cobra.Command{ Use: "probe", Short: "probe alameda admission-controller server", Long: "", RunE: func(cmd *cobra.Command, args []string) error { flag.Parse() initConfig() initLog() startProbing() return nil }, } )
View Source
var RootCmd = &cobra.Command{ Use: "admission-controller", Short: "alameda admission-controller", Long: "", TraverseChildren: true, }
View Source
var ( RunCmd = &cobra.Command{ Use: "run", Short: "start alameda admission-controller server", Long: "", TraverseChildren: true, RunE: func(cmd *cobra.Command, args []string) error { flag.Parse() initConfig() initLog() if err := initOwnerReferenceOfControllerOwningAdmissionController(); err != nil { panic(err) } if err := prepareRequirements(); err != nil { panic(err) } if err := setupRequirements(); err != nil { panic(err) } datahubResourceRecommendator, err := datahub.NewDatahubResourceRecommendatorWithConfig(config.Datahub) if err != nil { panic(err.Error()) } admissionController, err := server.NewAdmissionControllerWithConfig(server.Config{Enable: config.Enable}, datahubResourceRecommendator) if err != nil { panic(err.Error()) } mux := http.NewServeMux() registerHandlerFunc(mux, admissionController) server := newHTTPServer(*config, mux) if err := server.ListenAndServeTLS("", ""); err != nil { panic(err.Error()) } return nil }, } )
View Source
var ( VersionCmd = &cobra.Command{ Use: "version", Short: "Display the alameda admission-controller version", Long: "", Run: func(cmd *cobra.Command, args []string) { app.PrintSoftwareVer() }, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.