Comments (3)
Hey @P0t4T0o, seems like this is already possible. I wrote https://github.com/argoproj/argo-cd/blob/master/resource_customizations/external-secrets.io/ExternalSecret/actions/refresh/action.lua a while back and it uses the os
package to add an annotation with the date, which triggers a watch event on the controller.
from argo-cd.
Hi @agaudreault, that is right, os works because it is imported here. However string or math libs are not, so manipulation with strings is currently challenging. I have a working draft of necessary changes to enable this. If it is fine and everything aligns with the project's plan, I can open a PR
from argo-cd.
From #2300
Retrieving the timestamp in lua was problematic, because os.date() resides in the os lua library. The entire Lua 'os' library is a security risk because the os library can also do things like call os.exit() and read local files.
So in order to support restarts, we had to expose a subset of the lua os library to the Lua VM. The subset of functionality was copied from the go-lua implementation.
Maybe @argoproj/argo-security and @jessesuen should be involved in whether we add additional package or not.
@P0t4T0o what functions do you need? Can you share the Lua script you want to run? And have you tried to use useOpenLibs
as documented in https://argo-cd.readthedocs.io/en/stable/operator-manual/health/
from argo-cd.
Related Issues (20)
- seems no diff restfulapi?
- Argo UI for Rollout has no Promote button and action HOT 2
- Can use list values inside generator HOT 6
- UI Application Details Tree not showing the complete name of applications/resources HOT 7
- grpc: error while marshaling: proto: required field \"resourceName\" not set HOT 3
- argocd app sync --local has a 2mb HOT 7
- Argocd out of sync at part of spec.kustomize HOT 1
- [controller-runtime] log.SetLogger(...) was never called; logs will not be displayed.
- Suspended Jobs Should Not Suspend Apps (Atleast Conditionally)
- Stdlib Critical vulnerability HOT 4
- UI - Select arrow icon was hidden in create application page HOT 2
- UI - Dark mode is not working in full screen log page HOT 2
- ArgoCD didn't detect diff between desired and live manifests about Affinity Settings
- TLS certs not passed correctly if helm repo contains path in repository URL HOT 2
- UI - Health Summary icons and names are not aligned for Missing status in applications summary view HOT 1
- Add Native Functions for Rendering Helm/Kustomize in Jsonnet VM
- ApplicationSet PullRequest Generator Regex Mismatch error for webhook event
- rpc error: code = Unknown desc = error testing repository connectivity: repository "" cannot be initialized: repo URL is invalid
- argocd.argoproj.io/skip-reconcile requires argocd controller to be restarted HOT 1
- notifications controller not included in core install HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from argo-cd.