-
Notifications
You must be signed in to change notification settings - Fork 2
Add helm #14
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
Merged
Merged
Add helm #14
Changes from 83 commits
Commits
Show all changes
88 commits
Select commit
Hold shift + click to select a range
4745ae3
helm create
dan-fernandes 44fb70c
Redo helm create with pollux?
dan-fernandes 9e7344e
Add Dockerfile, Cargo.lock
dan-fernandes 37d1ff4
Add ci.yml with container build
dan-fernandes d9e6a2a
Make CI run on all branches and pushes
dan-fernandes c35c67d
No longer run on ubunut-latest
dan-fernandes cd54673
Generate metadata, add tag to built image
dan-fernandes 44ad103
Remove duplicate build-push-actions
dan-fernandes 8eb85fd
Use rust 1.90-slim, add target x86_64-unknown-linux-musl
dan-fernandes 728f01f
Add install of musl-tools and musl-dev
dan-fernandes 3877519
Add login to gchr
dan-fernandes 0b95a6b
Make log in non conditional
dan-fernandes d87673a
Set image to deploy glazed from ghcr
dan-fernandes cd09e23
Fix entrypoint and cmd
dan-fernandes 878afcf
Change pullPolicy to Always
dan-fernandes 41a9b16
Add printlns to main
dan-fernandes acd2b7b
Set service.port to 3000
dan-fernandes 64efe6b
Fix reference to null value
dan-fernandes 114da28
Merge branch 'main' into add-helm
dan-fernandes 8bfe7bd
Add conditional containers.name.args to deployment
dan-fernandes 29d6393
Revert "Fix reference to null value"
dan-fernandes 2bc4c8a
Revert "Add conditional containers.name.args to deployment"
dan-fernandes 8b1cd75
Add config.toml as config map available to pod
dan-fernandes 914033e
Make config_filepath arg global
dan-fernandes 8fb6ad7
Correct config filepath
dan-fernandes 7899c8c
Add config volume mount, fix start commands
dan-fernandes f5e02a3
Remove unused file from container
dan-fernandes 02af3ad
Format fix
dan-fernandes ddef05d
Change service to LoadBalancer
dan-fernandes fa611e3
Disable liveness and readiness probes
dan-fernandes ed13001
Update tiled_client.address
dan-fernandes 6da8d5a
Add apps.yaml
dan-fernandes a8a0a00
Add chart publish to ci
dan-fernandes c27c19f
Move helm to Charts/glazed
dan-fernandes 2d2aa76
Split CI jobs into _helm _rust and _container
dan-fernandes 6a93f8c
Fix filepath in CI
dan-fernandes 9336dbf
Rename Chart.yaml.name from helm to glazed
dan-fernandes 520775e
Add tags as trigger for CI
dan-fernandes 3789c02
Update Cargo.lock
dan-fernandes dcb7434
Merge branch 'main' into add-helm
dan-fernandes 8d62c87
Update Cargo.lock again?
dan-fernandes 103918d
Add overrideConfig option
dan-fernandes 64a4452
Fix variable reference
dan-fernandes f66944c
Remove apps.yaml
dan-fernandes ca9480f
Add eof newline
dan-fernandes ba9f46e
Remove image.tag value
dan-fernandes c76d825
Add eof newline
dan-fernandes 455b366
Add eof newline
dan-fernandes df96f01
Set appVersion to 0.1.0
dan-fernandes f4968c8
Cherry pick from Creating glazed, to fix accidental Creating helm
dan-fernandes e61d00c
Consolidate customConfig values
dan-fernandes 21307d9
Move config.toml into new files dir
dan-fernandes ff28fb3
Update Charts/glazed/templates/configmap.yaml
dan-fernandes a4e284d
Fix casing
dan-fernandes 9854d9a
Upgrade to rust:1.91-slim
dan-fernandes b723f97
Do not persist git credentials
dan-fernandes 34a60a9
Simplify chart package and publishing
dan-fernandes 1f21c7a
Add gcr log in
dan-fernandes e677ce8
Order execution of CI jobs
dan-fernandes 31b2aba
Set CI to use latest helm
dan-fernandes 93317c2
Merge branch 'main' into add-helm
dan-fernandes efb5451
Rerun helm create to att httproute
dan-fernandes 4293cbf
Update Cargo.lock
dan-fernandes c027901
Update Cargo.lock again
dan-fernandes 09cafaa
Update default config file location
dan-fernandes ad650a8
Change image.pullPolicy to IfNotPresent
dan-fernandes 4dd843a
Make persist-credentials flase for all checkout
dan-fernandes 1d94cbb
Reformat
dan-fernandes 2231519
Add GlazedConfig::default
dan-fernandes 7d2d29e
Add default config to main
dan-fernandes eb18c67
Move config.toml to repo root
dan-fernandes 763d692
Remove config.toml packaging in helm
dan-fernandes 0e5f019
Remove unused env
dan-fernandes 6e79d2d
Typo
dan-fernandes 2fa1dcf
Fix chart name
dan-fernandes 5d24abc
Move config-toml volumeMount into deployment
dan-fernandes 1897a0b
Correct config map name
dan-fernandes 1292bdc
Simplify volumes values
dan-fernandes ae0bbd7
Correct config toml key name
dan-fernandes 60b42b2
refactor: Adjust Helm push (#25)
DiamondJoseph f39ae9e
Set default tiled address to localhost
dan-fernandes 41ea7d7
Remove error handling on infallible GlazedConfig::default
dan-fernandes 2287c33
Remove on.tags in ci
dan-fernandes bc26f5f
Typo
dan-fernandes ad8558d
Add on.tags back to CI
dan-fernandes e273656
Merge branch 'main' into add-helm
dan-fernandes e901199
Remove unused import
dan-fernandes e082148
Update Cargo.lock
dan-fernandes 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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,52 @@ | ||
| on: | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Generate Metadata | ||
| id: meta | ||
| uses: docker/metadata-action@v5 | ||
| with: | ||
| images: ghcr.io/${{ github.repository }} | ||
| tags: | | ||
| type=raw,value=latest | ||
| type=semver,pattern={{version}} | ||
| type=semver,pattern={{major}}.{{minor}} | ||
| type=semver,pattern={{major}} | ||
|
|
||
| - name: Build and export to Docker local cache | ||
| uses: docker/build-push-action@v6 | ||
| env: | ||
| DOCKER_BUILD_RECORD_UPLOAD: false | ||
| with: | ||
| # Need load and tags so we can test it below | ||
| load: true | ||
| tags: test_tag | ||
|
|
||
| - name: Test cli works in cached runtime image | ||
| run: docker run --rm test_tag --version | ||
|
|
||
| - name: Log in to GHCR | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: ghcr.io/${{ github.repository_owner }} | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| # This does not build the image again, it will find the image in the | ||
| # Docker cache and publish it | ||
| - name: Push cached image to container registry | ||
| uses: docker/build-push-action@v6 | ||
| env: | ||
| DOCKER_BUILD_RECORD_UPLOAD: false | ||
| with: | ||
| push: ${{ github.event_name == 'push' && github.ref_type == 'tag' }} | ||
| tags: ${{ steps.meta.outputs.tags }} | ||
| labels: ${{ steps.meta.outputs.labels }} | ||
This file contains hidden or 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,42 @@ | ||
| name: Package helm charts | ||
|
|
||
| on: | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| package-helm-charts: | ||
| name: Package and Push Helm Chart | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
dan-fernandes marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| persist-credentials: false | ||
|
|
||
| - name: Generate Metadata | ||
| id: meta | ||
| uses: docker/metadata-action@v5 | ||
| with: | ||
| tags: | | ||
| type=semver,pattern={{version}} | ||
|
|
||
| - name: Install helm | ||
| uses: Azure/setup-helm@v4 | ||
|
|
||
| - name: Login to chart registry | ||
| run: | | ||
| echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ghcr.io --username ${{ github.repository_owner }} --password-stdin | ||
|
|
||
| - name: Package chart | ||
| run: | | ||
| helm dependencies update Charts/glazed | ||
| helm package Charts/glazed --version "${{ steps.meta.outputs.version }}" --app-version "${{ steps.meta.outputs.version }}" -d /tmp/ | ||
|
|
||
| - name: Publish chart | ||
| env: | ||
| REPO: ${{ github.repository_owner }} | ||
| if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }} | ||
| # Helm push requires the registry name is all lowercase | ||
| run: | | ||
| helm push /tmp/glazed-*.tgz oci://ghcr.io/${REPO@L}/charts | ||
This file contains hidden or 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,58 @@ | ||
| on: | ||
| workflow_call: | ||
|
|
||
| env: | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| jobs: | ||
| format: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| toolchain: nightly | ||
| components: rustfmt | ||
| - name: Check formatting | ||
| # Use nightly for formatting to enable unstable formatting styles | ||
| # * group imports | ||
| # * import_granularity | ||
| run: cargo +nightly fmt -- --check | ||
|
|
||
| lint: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| toolchain: stable | ||
| components: clippy | ||
| - uses: Swatinem/rust-cache@v2 | ||
| - name: Clippy | ||
| run: | | ||
| cargo --version | ||
| cargo clippy --version | ||
| cargo clippy --all-targets --all-features -- --deny warnings | ||
|
|
||
| test: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| toolchain: stable | ||
| - uses: Swatinem/rust-cache@v2 | ||
|
|
||
| - name: Build Everything | ||
| run: cargo build --all-targets | ||
| - name: Run tests | ||
| run: cargo test --all-targets --verbose | ||
| # Ensure that no files (most likely the Cargo.lock file) have changed | ||
| - name: Unstaged Changes | ||
| run: git diff --exit-code |
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.