Skip to content

Commit

Permalink
Merge pull request #58 from appuio/feat/controller-webhook-dir
Browse files Browse the repository at this point in the history
Expose controller webhook server certificate directory configuration
  • Loading branch information
simu authored Mar 29, 2022
2 parents 7b842e1 + 245601d commit ccf2388
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func ControllerCommand() *cobra.Command {
usernamePrefix := cmd.Flags().String("username-prefix", "", "Prefix prepended to username claims. Usually the same as \"--oidc-username-prefix\" of the Kubernetes API server")
rolePrefix := cmd.Flags().String("role-prefix", "control-api:user:", "Prefix prepended to generated cluster roles and bindings to prevent name collisions.")
memberRoles := cmd.Flags().StringSlice("member-roles", []string{}, "ClusterRoles to assign to every organization member for its namespace")
webhookCertDir := cmd.Flags().String("webhook-cert-dir", "", "Directory holding TLS certificate and key for the webhook server. If left empty, {TempDir}/k8s-webhook-server/serving-certs is used")

cmd.Run = func(*cobra.Command, []string) {
scheme := runtime.NewScheme()
Expand All @@ -69,6 +70,7 @@ func ControllerCommand() *cobra.Command {
HealthProbeBindAddress: *probeAddr,
LeaderElection: *enableLeaderElection,
LeaderElectionID: "d9e2acbf.control-api.appuio.io",
CertDir: *webhookCertDir,
})
if err != nil {
setupLog.Error(err, "unable to setup manager")
Expand Down

0 comments on commit ccf2388

Please sign in to comment.