Skip to content

Commit

Permalink
sort
Browse files Browse the repository at this point in the history
  • Loading branch information
eaudetcobello committed Jun 13, 2024
1 parent 32a9fe4 commit 4637cd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/k8s/pkg/k8sd/setup/kube_apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func KubeAPIServer(snap snap.Snap, serviceCIDR string, authWebhookURL string, en

args := map[string]string{
"--allow-privileged": "true",
"--anonymous-auth": "false",
"--authentication-token-webhook-config-file": authTokenWebhookConfigFile,
"--authorization-mode": authorizationMode,
"--client-ca-file": path.Join(snap.KubernetesPKIDir(), "client-ca.crt"),
Expand All @@ -72,6 +73,8 @@ func KubeAPIServer(snap snap.Snap, serviceCIDR string, authWebhookURL string, en
"--kubelet-client-certificate": path.Join(snap.KubernetesPKIDir(), "apiserver-kubelet-client.crt"),
"--kubelet-client-key": path.Join(snap.KubernetesPKIDir(), "apiserver-kubelet-client.key"),
"--kubelet-preferred-address-types": "InternalIP,Hostname,InternalDNS,ExternalDNS,ExternalIP",
"--profiling": "false",
"--requests-timeout": "300s",
"--secure-port": "6443",
"--service-account-issuer": "https://kubernetes.default.svc",
"--service-account-key-file": path.Join(snap.KubernetesPKIDir(), "serviceaccount.key"),
Expand All @@ -80,9 +83,6 @@ func KubeAPIServer(snap snap.Snap, serviceCIDR string, authWebhookURL string, en
"--tls-cert-file": path.Join(snap.KubernetesPKIDir(), "apiserver.crt"),
"--tls-cipher-suites": strings.Join(apiserverTLSCipherSuites, ","),
"--tls-private-key-file": path.Join(snap.KubernetesPKIDir(), "apiserver.key"),
"--anonymous-auth": "false",
"--profiling": "false",
"--requests-timeout": "300s",
}

switch datastore.GetType() {
Expand Down

0 comments on commit 4637cd7

Please sign in to comment.