Skip to content

Commit

Permalink
Merge pull request #1426 from cybozu/change_options
Browse files Browse the repository at this point in the history
Bump up machines-endpoints 0.9.4
  • Loading branch information
takara9 authored Sep 17, 2024
2 parents dcf4065 + fbb9a72 commit 9e2d706
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion machines-endpoints/TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.3
0.9.4
4 changes: 2 additions & 2 deletions machines-endpoints/machines-endpoints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ spec:
spec:
containers:
- name: machines-endpoints
image: ghcr.io/cybozu/machines-endpoints:0.9.3
image: ghcr.io/cybozu/machines-endpoints:0.9.4
imagePullPolicy: IfNotPresent
args:
- --monitoring-endpoints
- --bmc-configmap
- --bmc-reverse-proxy-configmap
hostNetwork: true
restartPolicy: OnFailure
serviceAccountName: machines-endpoints
12 changes: 6 additions & 6 deletions machines-endpoints/pkg/machines-endpoints/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ query search {
`

var (
flgMonitoringEndpoints = pflag.Bool("monitoring-endpoints", false, "generate Endpoints for monitoring")
flgBMCConfigMap = pflag.Bool("bmc-configmap", false, "generate ConfigMap for BMC reverse proxy")
flgNodeExporterPort = pflag.Int32("node-exporter-port", defaultNodeExporterPort, "node-exporter port")
flgEtcdMetricsPort = pflag.Int32("etcd-metrics-port", defaultEtcdMetricsPort, "etcd metrics port")
flgMonitoringEndpoints = pflag.Bool("monitoring-endpoints", false, "generate Endpoints for monitoring")
flgBMCReverseProxyConfigMap = pflag.Bool("bmc-reverse-proxy-configmap", false, "generate ConfigMap for BMC reverse proxy")
flgNodeExporterPort = pflag.Int32("node-exporter-port", defaultNodeExporterPort, "node-exporter port")
flgEtcdMetricsPort = pflag.Int32("etcd-metrics-port", defaultEtcdMetricsPort, "etcd metrics port")
)

// Machine represents a machine registered with sabakan.
Expand Down Expand Up @@ -411,8 +411,8 @@ func main() {
}
}

if *flgBMCConfigMap {
// create bmc-proxy configmap on all servers
if *flgBMCReverseProxyConfigMap {
// create bmc-reverse-proxy configmap on all servers
err = client.updateBMCProxyConfigMap(ctx, machines)
if err != nil {
log.ErrorExit(err)
Expand Down

0 comments on commit 9e2d706

Please sign in to comment.