Comments (5)
This is my first attempt of using a golang on production. so my question would be quite silly for maintainers.
I'm getting a circular import error between agent/pkg/crane/config/secret.go
and agent/pkg/crane/k8s/secret.go
during
- Create new type in a similar way for achieving similar effects using secrets into crane ConfigFromSecret pkg/crane/config/secret.go
- The new type setter in crane expects a string (namespace), from env variable: NAMESPACE - also new.
- In the setter
- If namespace not provided, attempt to use the dyrectorio namespace
- GetSecretClient function can be reused from k8s package - expose it
- Load secret value
What about moving all ConfigFromSecret related codes to agent/cmd/crane/secret.go
?
from dyrectorio.
There is nothing silly about asking questions, the most efficient way would be if you could open a draft PR with the changes you have already.
Moving into the cmd
directory is not really preferred if it used elsewhere in under pkg, but isolating the common part is the right approach. 👍
from dyrectorio.
Hello @nandor-magyar , I'm interested in this issue.
During the initial investigation of below todo, I have no idea that how to save the output from initContainer's stdout to k8s opaque secret in yaml form.
- Save the output to a k8s opaque secret
Do I need to store it directly through the Kube API? or Call kubectl create
on Makefile
?
from dyrectorio.
The new type setter in crane expects a string (namespace), from env variable: NAMESPACE - also new.
Oh, maybe I need to implement it as first way ("directly through the Kube API" in crane itself.)
from dyrectorio.
Correct. You can use crane's functions, though I would assume you won't need much of the code, only a secret client that is mentioned in the issue.
from dyrectorio.
Related Issues (20)
- Backup HOT 4
- Review README.mds HOT 7
- Add fuzzing tests for agent version validation HOT 5
- Refactor agent image url parse helper unit tests HOT 3
- Fix Broken Logo link in Readme HOT 15
- Add code coverage report to web/crux scope HOT 6
- dyrector.io Hacktoberfest Swag 2023 🏆 HOT 5
- replace the twitter old logo HOT 5
- Please prodive multi-arch docker images HOT 3
- Create yup validation unit tests for registrySchema() HOT 4
- Docs: Add contributors section in Readme.md HOT 2
- Refactor golang package builder to options HOT 2
- Validation error on initContainers command HOT 4
- Update Twitter logo to its latest one (X) HOT 1
- Add show password icon to password input fields HOT 4
- The URL for the webhook is too strict HOT 1
- Troubleshooting the Crux Container Error in Release 0.11.0: Resolving Login Issues in Docker Compose Deployment HOT 4
- Hardcoded URL in Rocket.Chat notifications
- active menu is not working since team slug was added HOT 1
- OIDC authentication 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 dyrectorio.