Skip to content

Commit ffebc53

Browse files
committed
Remove api-server's hard dependency on elasticsearch
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
1 parent 5f2a051 commit ffebc53

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

k8s/cloud/base/api_deployment.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ spec:
122122
value: vizier_image_secret.json
123123
- name: PL_ELASTIC_USERNAME
124124
value: elastic
125-
- name: PL_ELASTIC_PASSWORD
126-
valueFrom:
127-
secretKeyRef:
128-
name: pl-elastic-es-elastic-user
129-
key: elastic
125+
# - name: PL_ELASTIC_PASSWORD
126+
# valueFrom:
127+
# secretKeyRef:
128+
# name: pl-elastic-es-elastic-user
129+
# key: elastic
130130
- name: PL_ELASTIC_CA_CERT
131131
value: /elastic-certs-pub/tls.crt
132132
- name: PL_WORK_DOMAIN
@@ -140,8 +140,8 @@ spec:
140140
mountPath: /certs
141141
- name: vizier-image-secret
142142
mountPath: /vizier-image-secret
143-
- name: elastic-certs-pub
144-
mountPath: /elastic-certs-pub
143+
# - name: elastic-certs-pub
144+
# mountPath: /elastic-certs-pub
145145
securityContext:
146146
allowPrivilegeEscalation: false
147147
capabilities:
@@ -167,6 +167,6 @@ spec:
167167
- name: envoy-yaml
168168
configMap:
169169
name: proxy-envoy-config
170-
- name: elastic-certs-pub
171-
secret:
172-
secretName: pl-elastic-es-http-certs-public
170+
# - name: elastic-certs-pub
171+
# secret:
172+
# secretName: pl-elastic-es-http-certs-public

src/cloud/api/api_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func main() {
144144
}
145145
es, err := esutils.NewEsClient(esConfig)
146146
if err != nil {
147-
log.WithError(err).Fatal("Could not connect to elastic")
147+
log.WithError(err).Error("Could not connect to elastic. Autocompletion will not work")
148148
}
149149

150150
mux := http.NewServeMux()

0 commit comments

Comments
 (0)