Skip to content

Commit

Permalink
v0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
azlyth committed Jun 4, 2024
1 parent 58a5c30 commit 890193e
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = 0.5.0-dev
VERSION = 0.5.0
BUNDLE_IMG = ghcr.io/moonbeam-nyc/snorlax-operator-bundle:${VERSION}
OPERATOR_IMG = ghcr.io/moonbeam-nyc/snorlax-operator:${VERSION}
PROXY_IMG = ghcr.io/moonbeam-nyc/snorlax-proxy:${VERSION}
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ As a common example, if you sleep all of your staging/ephemeral deployments for
wakeTime: '8:00am'
sleepTime: '10:00pm'
deployments:
- your-app-frontend
- your-app-db
- your-app-redis
- name: your-app-frontend
- name: your-app-db
- name: your-app-redis
# (optional) the ingresses to update and point to the snorlax wake proxy,
# which wakes your deployment when a request is received while it's
# sleeping.
ingresses:
- your-app-ingress
- name: your-app-ingress
# (optional, defaults to UTC) the timezone to use for the input times above
timezone: 'America/New_York'
Expand Down
4 changes: 2 additions & 2 deletions charts/snorlax/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ 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.4.2
version: 0.5.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.4.2"
appVersion: "0.5.0"
33 changes: 30 additions & 3 deletions charts/snorlax/templates/sleepschedule-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,44 @@ spec:
spec:
properties:
deployments:
description: The names of the deployments that will be slept/woken
description: |-
The deployments that will be slept/woken.
SHAPE: {name: "deployment-name"}
items:
type: string
properties:
name:
type: string
required:
- name
type: object
type: array
ingresses:
description: |-
The names of the ingresses that will be updated to point to the snorlax proxy
which wakes the deployments when a request is received. A copy of the originals
are stored in a configmap.
SHAPE: {name: "ingress-name", requires: [{deployment: {name: "deployment-name"}}]}
items:
type: string
properties:
name:
type: string
requires:
items:
properties:
deployment:
properties:
name:
type: string
required:
- name
type: object
required:
- deployment
type: object
type: array
required:
- name
type: object
type: array
sleepTime:
description: The time that the deployment will start sleeping
Expand Down
2 changes: 1 addition & 1 deletion charts/snorlax/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ controllerManager:
- ALL
image:
repository: ghcr.io/moonbeam-nyc/snorlax-operator
tag: 0.4.2
tag: 0.5.0
resources:
limits:
cpu: 500m
Expand Down
2 changes: 1 addition & 1 deletion operator/config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ kind: Kustomization
images:
- name: controller
newName: ghcr.io/moonbeam-nyc/snorlax-operator
newTag: 0.4.2
newTag: 0.5.0
2 changes: 1 addition & 1 deletion operator/internal/controller/sleepschedule_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ func (r *SleepScheduleReconciler) deploySnorlaxProxy(ctx context.Context, sleepS
Containers: []corev1.Container{
{
Name: "snorlax",
Image: "ghcr.io/moonbeam-nyc/snorlax-proxy:0.4.0",
Image: "ghcr.io/moonbeam-nyc/snorlax-proxy:0.5.0",
ImagePullPolicy: "IfNotPresent",
Env: []corev1.EnvVar{
{
Expand Down

0 comments on commit 890193e

Please sign in to comment.