Fork me on GitHub
#beginners
<
2023-04-09
>
Pratik17:04:55

Since last few days, when I connect to a k8s pod using port-forwarding, I am noticing that when I load the file, the changes are only saved locally. So, if I run it from the editor’s repl(which is calva, btw), the changes are there. But, the changes are not “saved” in the pod. So, if I hit an API for example and I start throwing an exception from the handler function, the API doesn’t return with exception. But if I invoke the handler function directly from the repl(while being connected to the pod by port-forwarding), it does throw an exception. This used to work some time back(API would also start throwing an exception if I connect to the pod and make such changes) and this might be related to something changing at my workplace but since I don’t have much idea on how this works, would be great if someone can point me in the right direction ✌️

Drew Verlee05:04:30

If you want to update the pod(s) you need to use the k8 api. Might want to ask for more help in a channel specific to that, as I'm not sure how many k8 users you will find here.

Paavo Pokkinen18:04:03

I have some issue using macros via :refer-macros.

(ns generator.contentful
  (:require
   [graphql-builder.parser :refer-macros [defgraphql]] 
   [graphql-builder.core :as core]))

(defgraphql graphql-queries "contentful/getNavTree.graphql")
(graphql-builder.parser/defgraphql testing2 "contentful/getNavTree.graphql")
Last line works in repl, second last fails with “Unable to resolve symbol: defgraphql in this context”. And yes, ns macro has been evaluated. What could be wrong here?

Paavo Pokkinen18:04:43

oh dear, this is some sort of difference between clojure and cljs. 😐

Jakub Šťastný18:04:59

Well macros definitely works differently in CLJS.

Jakub Šťastný18:04:12

You probably need :require-macros.