-
Notifications
You must be signed in to change notification settings - Fork 6
add .transpire.py #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably test this by running transpire object print in the repo root (just clone ocf/transpire and run poetry shell)
.transpire.py
Outdated
|
|
||
| ing = Ingress.from_svc( | ||
| svc = svc, | ||
| host = "//rt.ocf.berkeley.edu", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the //
.transpire.py
Outdated
| @@ -0,0 +1,78 @@ | |||
| from tkinter.filedialog import Directory | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should not depend on tkinter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i lowkey do not know how that got there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
L43:
dep.obj.spec.template.spec.volumes = [
client.V1Volume(
name = "secrets",
host_path = { "path": "/opt/share/kubernetes/secret/rt", "type": "Directory" } # <---
),
]may have been auto-imported by LSP if you hit tab at the wrong time lol
|
|
||
| name = "rt" | ||
| auto_sync = True | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no images are yielded anywhere; that needs to be in here somewhere (def images())
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait how can i check ghcr to make sure it has the image i want to yield
.transpire.py
Outdated
| def objects(): | ||
| svc = Service( | ||
| name = "rt", | ||
| selector = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
selector=dep.get_selector(),and put under
.transpire.py
Outdated
| # set the volumes in the Deployment | ||
| dep.obj.spec.template.spec.volumes = [ | ||
| client.V1Volume( | ||
| name = "secrets", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we remove the spaces around the =
should be a 1:1 translation