-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* More updates to get bioscfg ready Update config, making it uniform with other controllers Remove "store" interface Add BMC interface for later use Update rivets * clean up helm chart * update docker * clean up makefile * Huge Refactor Refactor CMD Replace old tasks and steps with new Task Replace slog with logrus. I know we want to move off logrus, but I think we need to do this at a later date. Move handler to bioscfg move publisher to bioscfg, in its own file * PR fixes
- Loading branch information
1 parent
a39842b
commit c4174d5
Showing
38 changed files
with
1,391 additions
and
1,252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FROM alpine:3.8 as runner | ||
FROM alpine:latest | ||
|
||
COPY bioscfg /usr/sbin/bioscfg | ||
RUN chmod +x /usr/sbin/bioscfg | ||
|
||
ENTRYPOINT bioscfg | ||
ENTRYPOINT ["/usr/sbin/bioscfg"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
apiVersion: v2 | ||
name: bioscfg | ||
description: A helm chart for deploying the bioscfg controller. | ||
type: application | ||
version: 0.0.1 | ||
appVersion: "0.0.1" | ||
description: A chart to control BMCs | ||
version: v0.1.1 | ||
keywords: | ||
- bmc | ||
- bios | ||
home: "https://github.com/metal-toolbox/bioscfg" | ||
sources: | ||
- "https://github.com/metal-toolbox/bioscfg" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{ if .Values.enable }} | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: bioscfg-config | ||
data: | ||
config.yaml: |- | ||
{{ toYaml .Values.env | indent 4 }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,29 @@ | ||
location: "sandbox" | ||
enable: true | ||
image: | ||
repository: "localhost:5001/bioscfg" | ||
tag: latest | ||
pullPolicy: Always | ||
repository: | ||
tag: latest | ||
url: localhost:5001 | ||
env: | ||
FLEETDB_ENDPOINT: http://fleetdb:8000 | ||
FLEETDB_DISABLE_OAUTH: true | ||
NATS_URL: "nats://nats:4222" | ||
NATS_CONNECT_TIMEOUT: 60s | ||
NATS_KV_REPLICAS: 1 | ||
# telemetry configuration | ||
OTEL_EXPORTER_OTLP_ENDPOINT: jaeger:4317 | ||
OTEL_EXPORTER_OTLP_INSECURE: true | ||
test: myTest | ||
test1: myFirstTest | ||
facility: sandbox | ||
log_level: debug | ||
concurrency: 5 | ||
dryrun: false | ||
endpoints: | ||
fleetdb: | ||
authenticate: false | ||
oidc_audience_url: | ||
oidc_client_id: | ||
oidc_issuer_url: | ||
oidc_client_scopes: | ||
url: http://fleetdb:8000 | ||
nats: | ||
connect_timeout: 60s | ||
kv_replication: 1 | ||
creds_file: /etc/nats/nats.creds | ||
url: nats://nats:4222 | ||
otel: | ||
authenticate: false | ||
url: jaeger:4317 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package cmd | ||
|
||
import ( | ||
"fmt" | ||
"os" | ||
|
||
"github.com/metal-toolbox/bioscfg/internal/bioscfg" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
// bioscfgCmd represents the bioscfg command | ||
var bioscfgCmd = &cobra.Command{ | ||
Use: "run", | ||
Short: "Run the BiosCfg Controller", | ||
Run: func(cmd *cobra.Command, _ []string) { | ||
err := bioscfg.Run(cmd.Context(), ConfigFile, LogLevel, EnableProfiling) | ||
if err != nil { | ||
fmt.Println(err) | ||
os.Exit(1) | ||
} | ||
}, | ||
} | ||
|
||
func init() { | ||
rootCmd.AddCommand(bioscfgCmd) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.