-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: add reloader to operator-wandb, add reloader annotations to wan… #356
Open
danielpanzella
wants to merge
10
commits into
main
Choose a base branch
from
danielpanzella/tilt-and-reloader
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d669c11
feat: add reloader to operator-wandb, add reloader annotations to wan…
danielpanzella fa4bff2
fix: Disable redis auth in default test config and update lock file
danielpanzella 3f98257
chore: Bump version
danielpanzella 27ccaa2
chore: add stakater repo into the build pipeline
danielpanzella 721f3bf
chore: add stakater repo into the ct config
danielpanzella 7bdb6c7
fix: lint error
danielpanzella f1573f4
fix: lint error
danielpanzella b4056e8
Merge branch 'main' into danielpanzella/tilt-and-reloader
danielpanzella 333375f
fix: Correct a typo
danielpanzella 6e59404
Update charts/operator-wandb/values.yaml
danielpanzella File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,6 @@ license.txt | |
test-values.yaml | ||
.DS_Store | ||
secret.*.yaml | ||
.idea/ | ||
.idea/ | ||
|
||
tilt-settings.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#default values | ||
settings = { | ||
"allowedContexts": [ | ||
"docker-desktop", | ||
"minikube", | ||
"kind-kind", | ||
], | ||
"installMinio": True, | ||
"values": "./test-configs/operator-wandb/default.yaml", | ||
} | ||
|
||
# global settings | ||
settings.update(read_json( | ||
"tilt-settings.json", | ||
default={}, | ||
)) | ||
|
||
if k8s_context() in settings.get("allowedContexts"): | ||
print("Context is allowed") | ||
else: | ||
fail("Selected context is not in allow list") | ||
|
||
allow_k8s_contexts(settings.get("allowed_k8s_contexts")) | ||
|
||
if settings.get("installMinio"): | ||
k8s_yaml('./test-configs/minio/default.yaml') | ||
k8s_resource( | ||
'minio', | ||
'Minio', | ||
objects=[ | ||
'minio:service', | ||
'minio:namespace' | ||
] | ||
) | ||
|
||
k8s_yaml(helm('./charts/operator-wandb', 'wandb', values=['./charts/operator-wandb/values.yaml', settings.get("values")])) | ||
k8s_resource('wandb-app', port_forwards=8080, objects=['wandb-app:ServiceAccount:default', 'wandb-app-config:secret:default']) | ||
k8s_resource('wandb-console', port_forwards=8082, objects=['wandb-console:ServiceAccount:default', 'wandb-console:clusterrole:default', 'wandb-console:clusterrolebinding:default']) | ||
k8s_resource('wandb-otel-daemonset',objects=['wandb-otel-daemonset:ServiceAccount:default', 'wandb-otel-daemonset:clusterrole:default', 'wandb-otel-daemonset:clusterrolebinding:default']) | ||
k8s_resource('wandb-parquet',objects=['wandb-parquet:ServiceAccount:default']) | ||
k8s_resource('wandb-prometheus-server',objects=['wandb-prometheus-server:ServiceAccount:default', 'wandb-prometheus-server:clusterrole:default', 'wandb-prometheus-server:clusterrolebinding:default']) | ||
k8s_resource('wandb-redis-master',objects=['wandb-redis-master:ServiceAccount:default']) | ||
k8s_resource('wandb-weave',objects=['wandb-weave:ServiceAccount:default']) | ||
k8s_resource( | ||
new_name='wandb-configs', | ||
objects=[ | ||
'wandb-bucket-configmap:configmap:default', | ||
'wandb-bucket:secret:default', | ||
'wandb-ca-certs:configmap:default', | ||
'wandb-clickhouse:secret:default', | ||
'wandb-global-secret:secret:default', | ||
'wandb-glue-configmap:configmap:default', | ||
'wandb-glue-secret:secret:default', | ||
'wandb-gorilla-configmap:configmap:default', | ||
'wandb-gorilla-secret:secret:default', | ||
'wandb-kafka-configmap:configmap:default', | ||
'wandb-kafka:secret:default', | ||
'wandb-mysql-configmap:configmap:default', | ||
'wandb-redis-configmap:configmap:default', | ||
'wandb-redis-secret:secret:default', | ||
] | ||
) | ||
k8s_resource(new_name='DO NOT REFRESH THESE', objects=['wandb-mysql:secret:default', 'wandb-gorilla-session-key:secret:default']) | ||
k8s_resource(new_name='PVCs', objects=['wandb-mysql-data:PersistentVolumeClaim:default', 'wandb-prometheus-server:PersistentVolumeClaim:default']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,4 +87,4 @@ | |
- {{ $value }}: | ||
name: {{ $key }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"allowedContexts": [ | ||
"docker-desktop", | ||
"minikube", | ||
"kind-kind" | ||
], | ||
"installMinio": true, | ||
"values": "./test-configs/operator-wandb/default.yaml" | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🛠️ Refactor suggestion
Clarify "DO NOT REFRESH THESE" resource
The resource name "DO NOT REFRESH THESE" is concerning as it suggests special handling requirements. Add a comment explaining why these resources should not be refreshed.
📝 Committable suggestion
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.
@coderabbitai, don't complain about security issues in tiltfiles or suggestions like this relating to tilt in the future. This is for local testing.
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.
@zacharyblasczyk Understood! I'll remember that Tiltfiles are for local development purposes only and won't raise concerns about security issues or make similar suggestions for Tilt-related code in the future. Thanks for the clarification.
✏️ Learnings added