Skip to content

Commit

Permalink
Remove --app-version flag and rely on version pkg instead
Browse files Browse the repository at this point in the history
  • Loading branch information
hjkatz committed Sep 17, 2024
1 parent 82bfd97 commit bdc608a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ func main() {

type managerOpts struct {
// flags
appVersion string
metricsAddr string
electionID string
probeAddr string
Expand Down Expand Up @@ -126,7 +125,6 @@ func cmd() *cobra.Command {
},
}

c.Flags().StringVar(&opts.appVersion, "app-version", "0.0.0", "AppVersion provided by the Helm Chart")
c.Flags().StringVar(&opts.metricsAddr, "metrics-bind-address", ":8080", "The address the metric endpoint binds to")
c.Flags().StringVar(&opts.probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
c.Flags().StringVar(&opts.electionID, "election-id", "ngrok-operator-leader", "The name of the configmap that is used for holding the leader lock")
Expand Down Expand Up @@ -531,7 +529,7 @@ func registerOperatorWithNgrokAPI(ctx context.Context, k8sClient client.Client,
Metadata: opts.metaData, // TODO(hkatz) what is the format here?
ApiURL: nConfig.BaseURL.String(),
Region: opts.region,
AppVersion: opts.appVersion,
AppVersion: version.GetVersion(),
ClusterDomain: opts.clusterDomain,
EnabledFeatures: features,
}
Expand Down
1 change: 0 additions & 1 deletion helm/ngrok-operator/templates/controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ spec:
command:
- /manager
args:
- --app-version={{ .Chart.AppVersion }}
{{- if .Values.description }}
- --description={{ .Values.description | quote }}
{{- end }}
Expand Down

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

0 comments on commit bdc608a

Please sign in to comment.