Skip to content

Conversation

@willcl-ark
Copy link
Contributor

When using warcli deploy we will now use a production image from the current version, removing the requirement to mount the source directory into minikube, which is causing some issues for MacOS users.

  • deploy tagged versions to hub.docker.com (only)
  • Add a "version" to warnet. This let's us "sync" image version with python package version.
    • add CI test for this to ensure we update both in sync
  • tidy up the CI: re-org the various workflows, and rename things where behaviour differs
  • version bump to test it out?

Developers should continue to therefore use the justfile for local dev.

Note, this does naturally make testing these CLI commands slightly harder for deverlopers, but I think we can manage :)

@willcl-ark willcl-ark marked this pull request as ready for review August 1, 2024 15:54
platforms: linux/amd64,linux/arm64
context: src/warnet/templates/rpc
push: true
push: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

7257b9c

Is the title of this commit missing the word "don't" ?

@@ -0,0 +1 @@
VERSION = "0.9.11"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e75b02d

Seems like overkill to me to have the version string required in two places and compare them all the time. Is pyproject.toml always bundled with the rest of the code? Can't we just read the version directly from the toml file? We could add warcli version to the cli?

kubectl apply -f {MANIFEST_PATH}/rbac-config.yaml
kubectl apply -f {MANIFEST_PATH}/warnet-rpc-service.yaml
kubectl apply -f {MANIFEST_PATH}/warnet-rpc-statefulset-dev.yaml
sed "s|bitcoindevproject/warnet-rpc:latest|bitcoindevproject/warnet-rpc:{VERSION}|" {MANIFEST_PATH}/warnet-rpc-statefulset.yaml | kubectl apply -f -
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2991223

making me wonder again if python-embedded-bash (plus external yaml files) can be simplified with just... python.

https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/AppsV1Api.md#create_namespaced_stateful_set

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or maybe warnet-rpc-statefulset.yaml should just always have its own version hard-coded? I'm trying to think if we'd ever need latest in prod?

@bdp-DrahtBot
Copy link
Collaborator

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #419 (warcli cluster refactors by willcl-ark)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@adamjonas adamjonas added this to the Tabconf milestone Aug 20, 2024
@pinheadmz
Copy link
Contributor

doesnt apply to helm model

@pinheadmz pinheadmz closed this Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants