Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
d54530a
add sts and cj kinds
isemerkhanov May 6, 2025
8a07bed
make waketime optional
isemerkhanov May 6, 2025
db3d7b2
feat: Update Github workflow
May 7, 2025
a11508e
feat: Small fixes
May 7, 2025
eb6a7ee
feat: Update workflow
May 7, 2025
2d52034
feat: Update workflow
May 7, 2025
db9b1e3
fix: Update permissions
May 7, 2025
e2a1981
fix: Update permissions
May 7, 2025
f5195ef
feat: Update helm chart
May 7, 2025
c044a08
fix: Update role
May 7, 2025
0cccaec
feat: Update web ui
May 7, 2025
26f2726
fix: Update naming for statefulset
May 7, 2025
0784bc8
feat: change naming for cronjobs
May 7, 2025
d23d214
fix: Update web ui
May 7, 2025
e16060e
fix: Update clusterrole
May 7, 2025
ef69056
feat: Add logs
May 7, 2025
5147bba
feat: Increase timeout to 30s
May 7, 2025
795c2a7
fix: Update logs
May 7, 2025
d145f23
fix: Update funxtion to check status_asleep
May 7, 2025
1d00a52
feat: Update logging
May 7, 2025
6857392
feat: Small fixes
May 7, 2025
4191dab
feat: Save original replicas in annotations
May 7, 2025
c610204
fix: Update logs metadata
May 7, 2025
b5fe4b2
fix: Update StatefulSet module call
May 7, 2025
067c8c5
feat: Update status in ui
May 7, 2025
fac07a1
feat: Update web ui
May 7, 2025
9e4340c
fix: Fix web ui
May 7, 2025
43dea7c
feat: Rename annotation
May 7, 2025
78b9a63
fix: Update save_original_replicas functions
May 7, 2025
e8e8bb8
fix: Fix build
May 7, 2025
66fa18a
feat: Add enable/disable schedule button
May 8, 2025
5769250
feat: Update dependencies
May 8, 2025
29f1da7
fix: Update enable/disable field
May 8, 2025
03e2d02
fix: Add update_sleep_schedule function
May 8, 2025
835617b
fix: Update event handle
May 8, 2025
9397ab1
fix: Fix naming
May 8, 2025
a7fffa5
feat: Update versioning
May 8, 2025
91bab49
feat: Update versioning
May 8, 2025
f8ac6ac
fix: Enabled/Disabled feature
May 8, 2025
ba99f28
feat: Update versioning
May 8, 2025
d9c3ea9
fix: Update enabled/disabled
May 8, 2025
32e78a1
feat: Add logs
May 8, 2025
dbbd9b7
fix: Update crd
May 8, 2025
c98e22e
feat: Update some actions flow
May 8, 2025
ec4ab43
fix: Small fixes
May 8, 2025
e894c1d
fix: Remove unused metadata
May 8, 2025
94d8f75
feat: Update ui for enabled/disabled
May 8, 2025
37f9e37
feat: Remove detailed information from main page
May 8, 2025
5302285
fix: Rewrite logic for main page
May 8, 2025
7d9fc46
fix: Restore ui
May 8, 2025
2cccd4f
fix: Update html code
May 8, 2025
0a9cf58
feat: Show componencts only if not empty
May 8, 2025
efb0295
feat: Remove apps icons from all pages except schedule page
May 8, 2025
642a0d7
fix: Small fixes for the workflow
May 8, 2025
aedf3ae
feat: Add Table of Contents
May 8, 2025
140e4f5
feat: redesign table of contents with cloud-shaped floating UI and mo…
May 8, 2025
2aebbce
feat: improve table of contents layout and responsiveness in home page
May 8, 2025
9dd53e7
fix: update support for watching all namespaces using __ALL__ flag
May 8, 2025
ecade17
fix: update support for watching all namespaces using __ALL__ flag
May 8, 2025
031e2fe
fix: format HTML template with consistent indentation and line breaks
May 8, 2025
3734a91
feat: add disabled state emoji indicator
May 8, 2025
310c3b3
fix: rename statefuleset.ex to correct spelling statefulset.ex
May 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CODEOWNERS file allows us to set owners for specific files and directories
# https://docs.github.com/en/enterprise-cloud@latest/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

33 changes: 33 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: 2
updates:
# Maintain dependencies of docker images
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "daily"

# Maintain dependencies of GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
commit-message:
prefix: "ci:"
schedule:
interval: "daily"
labels:
- "Type: Dependencies"
- "Component: CI/CD"

# Maintain dependencies of elixir applications
- package-ecosystem: "mix"
directory: "/"
commit-message:
prefix: "build:"
schedule:
interval: "daily"
labels:
- "Type: Dependencies"
- "Implementation: Elixir"
groups:
elixir-deps:
patterns:
- "*"
36 changes: 36 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## Motivation

<!-- Why did you make the changes, i.e. the motivation for the changes. -->

...

## Proposed changes

<!-- What are the changes, i.e. A list of the issues addressed by the changes. -->

...

## Unrelated changes (optional)

<!-- What are the changes not related to the PR, i.e. rename, add more tests, fix unrelated bug.
In case if there are no such leave this empty. -->

_None_

## Testing / Validation

<!-- Explain how you tested the changes, or include screenshots / visual aids to help reviewers understand the changes made. -->

...

## Notes (optional)

<!-- Any additional information that may be relevant to the review of the Pull Request, i.e. how to test. -->

_None_

## Dependencies (optional)

<!-- Any related PRs / issues that depend on this PR, or is a prerequisite of this PR -->

_None_
44 changes: 0 additions & 44 deletions .github/workflows/docker-build-push.yml

This file was deleted.

59 changes: 0 additions & 59 deletions .github/workflows/helm-publish.yml

This file was deleted.

136 changes: 136 additions & 0 deletions .github/workflows/pipeline-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
name: Build

on:
workflow_dispatch:
push:
branches:
- feature/sts_jobs

concurrency:
# One build per PR, do not cancel builds on main
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

env:
HOME: ${{github.workspace}}

jobs:
generate-version:
runs-on: ubuntu-latest
outputs:
service-version: ${{ steps.version.outputs.new_version }}
chart-version: ${{ steps.chart_version.outputs.new_version }}
steps:
- uses: actions/checkout@v4
- id: version
uses: chirpwireless/reusable-github-actions/.github/actions/calendar-version@main
- name: Chart Version
id: chart_version
run: |
BASE_VERSION=$(grep '^version:' chart/Chart.yaml | awk '{print $2}')
if [[ "${GITHUB_REF##*/}" == "main" ]]; then
VERSION="$BASE_VERSION"
else
VERSION="${BASE_VERSION}-${{steps.version.outputs.new_version}}"
fi
echo "new_version=$VERSION" >> $GITHUB_OUTPUT
- name: "Create a summary"
run: |
echo "Building a new revision ${{steps.version.outputs.new_version}}" >> $GITHUB_STEP_SUMMARY
echo "Building a new chart revision ${{steps.chart_version.outputs.new_version}}" >> $GITHUB_STEP_SUMMARY

build-docker-image:
runs-on: ubuntu-latest
needs: [generate-version]
permissions:
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/${{ github.repository_owner }}/drowzee:${{ needs.generate-version.outputs.service-version }}

build-helm-chart:
runs-on: ubuntu-latest
needs: [generate-version, build-docker-image]
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Update Chart Versions
run: |
sed -i "s/^version: .*/version: ${{ needs.generate-version.outputs.chart-version }}/" chart/Chart.yaml
sed -i "s/^appVersion: .*/appVersion: \"${{ needs.generate-version.outputs.service-version }}\"/" chart/Chart.yaml
- name: Retrieve existing charts
run: |
git clone --branch gh-pages https://github.com/${{ github.repository_owner }}/drowzee.git existing-charts || true
mkdir -p packaged-charts

if [[ "${GITHUB_REF##*/}" == "main" ]]; then
for file in existing-charts/*; do
if [[ ! $(basename "$file") == drowzee-${{ needs.generate-version.outputs.chart-version }}-* ]]; then
cp "$file" packaged-charts/
fi
done
else
cp -n existing-charts/*.tgz packaged-charts/ || true
fi
- name: Set up Helm
uses: azure/setup-helm@v4
- name: Package Chart
run: helm package ./chart --destination ./packaged-charts
- name: Generate Repository Index
run: |
helm repo index ./packaged-charts --url https://${{ github.repository_owner }}.github.io/drowzee
# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./packaged-charts
keep_files: true
force_orphan: true
destination_dir: .
# The following lines assign commit authorship to the official
# GH-Actions bot for deploys to `gh-pages` branch:
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
# The GH actions bot is used by default if you didn't specify the two fields.
# You can swap them out with your own user credentials.
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com

publish-version:
runs-on: ubuntu-latest
needs: [generate-version, build-docker-image, build-helm-chart]
permissions:
checks: write
steps:
- name: Publish Version
uses: chirpwireless/reusable-github-actions/.github/actions/version-publish@main
with:
commit-sha: ${{ github.event.pull_request.head.sha || github.sha }}
build-version: ${{ needs.generate-version.outputs.service-version }}

publish-release:
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: [generate-version, build-docker-image, build-helm-chart]
steps:
- uses: chirpwireless/reusable-github-actions/.github/actions/publish-release@main
with:
version: ${{ needs.generate-version.outputs.service-version }}
20 changes: 19 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,24 @@ drowzee-*.tar
npm-debug.log
/assets/node_modules/

# Elixir Language Server
.elixir_ls/

# Environment files
.env
.env.*

# Editor swap/backup files
*.swp
*.swo
*.bak

# Generic log files
*.log

# macOS
.DS_Store

# Local config/log files
local_values.yaml
dorwzee-logs.txt
drowzee-logs.txt
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ENV MIX_ENV=prod \
# && apt-get clean && rm -f /var/lib/apt/lists/*_*

RUN mix local.hex --force && \
mix local.rebar --force
mix local.rebar --force

WORKDIR /app

Expand Down
4 changes: 2 additions & 2 deletions chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.8
version: 0.2.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.1.8"
appVersion: "0.1.0"
Loading