-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87cc205
commit b2786b9
Showing
19 changed files
with
242 additions
and
94 deletions.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
TODO |
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 |
---|---|---|
@@ -1 +1 @@ | ||
# binderhub-service | ||
# binderhub-service |
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,48 @@ | ||
# How to make a release | ||
|
||
`binderhub-service` is a Helm chart available in the Helm chart repository | ||
`https://2i2c.org/binderhub-service`. | ||
|
||
## Pre-requisites | ||
|
||
- Push rights to [2i2c-org/binderhub-service] | ||
|
||
## Steps to make a release | ||
|
||
1. Create a PR updating `docs/source/changelog.md` with [github-activity] and | ||
continue only when its merged. | ||
|
||
```shell | ||
pip install github-activity | ||
|
||
github-activity --heading-level=3 2i2c-org/binderhub-service | ||
``` | ||
|
||
1. Checkout main and make sure it is up to date. | ||
|
||
```shell | ||
git checkout main | ||
git fetch origin main | ||
git reset --hard origin/main | ||
``` | ||
|
||
1. Update the version, make commits, and push a git tag with `tbump`. | ||
|
||
```shell | ||
pip install tbump | ||
tbump --dry-run ${VERSION} | ||
|
||
tbump ${VERSION} | ||
``` | ||
|
||
Following this, the [CI system] will build and publish a release. | ||
|
||
1. Reset the version back to dev, e.g. `1.1.0-0.dev` after releasing `1.0.0` | ||
|
||
```shell | ||
tbump --no-tag ${NEXT_VERSION}-0.dev | ||
``` | ||
|
||
[2i2c-org/binderhub-service]: https://github.com/2i2c-org/binderhub-service | ||
[github-activity]: https://github.com/executablebooks/github-activity | ||
[ci system]: https://github.com/2i2c-org/binderhub-service/actions/workflows/release.yaml |
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 |
---|---|---|
@@ -1,24 +1,14 @@ | ||
# Chart.yaml v2 reference: https://helm.sh/docs/topics/charts/#the-chartyaml-file | ||
apiVersion: v2 | ||
name: binderhub-service | ||
description: A Helm chart for Kubernetes | ||
|
||
# A chart can be either an 'application' or a 'library' chart. | ||
# | ||
# Application charts are a collection of templates that can be packaged into versioned archives | ||
# to be deployed. | ||
# | ||
# Library charts provide useful utilities or functions for the chart developer. They're included as | ||
# a dependency of application charts to inject those utilities and functions into the rendering | ||
# pipeline. Library charts do not define any templates and therefore cannot be deployed. | ||
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.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: "1.16.0" | ||
version: 0.0.1-set.by.chartpress | ||
appVersion: "1.0.0" | ||
description: A BinderHub installation separate from JupyterHub | ||
keywords: [binderhub, binderhub-service, repo2docker, jupyterhub, jupyter] | ||
home: https://2i2c.org/binderhub-service | ||
sources: [https://github.com/2i2c-org/binderhub-service] | ||
icon: https://binderhub.readthedocs.io/en/latest/_static/logo.png | ||
kubeVersion: ">=1.23.0-0" | ||
maintainers: | ||
- name: Erik Sundell | ||
email: [email protected] |
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,26 @@ | ||
# This schema (a JSONSchema in YAML format) is used to generate | ||
# values.schema.json to be packaged with the Helm chart. | ||
# | ||
# This schema is also planned to be used by our documentation system to build | ||
# the configuration reference section based on the description fields. See | ||
# docs/source/conf.py for that logic in the future! | ||
# | ||
# We look to document everything we have default values for in values.yaml, but | ||
# we don't look to enforce the perfect validation logic within this file. | ||
# | ||
# ref: https://helm.sh/docs/topics/charts/#schema-files | ||
# ref: https://json-schema.org/learn/getting-started-step-by-step.html | ||
# | ||
$schema: http://json-schema.org/draft-07/schema# | ||
type: object | ||
additionalProperties: true | ||
required: | ||
- global | ||
properties: | ||
nameOverride: | ||
type: string | ||
fullnameOverride: | ||
type: string | ||
global: | ||
type: object | ||
additionalProperties: true |
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 |
---|---|---|
@@ -1,82 +1,60 @@ | ||
# Default values for binderhub-service. | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
# General configuration | ||
# ----------------------------------------------------------------------------- | ||
# | ||
nameOverride: "" | ||
fullnameOverride: "" | ||
global: {} | ||
|
||
# Deployment resource | ||
# ----------------------------------------------------------------------------- | ||
# | ||
replicaCount: 1 | ||
|
||
image: | ||
repository: nginx | ||
pullPolicy: IfNotPresent | ||
# Overrides the image tag whose default is the chart appVersion. | ||
tag: "" | ||
repository: quay.io/2i2c/binderhub-service | ||
tag: "set-by-chartpress" | ||
pullPolicy: "" | ||
pullSecrets: [] | ||
securityContext: | ||
capabilities: | ||
drop: | ||
- ALL | ||
readOnlyRootFilesystem: true | ||
runAsNonRoot: true | ||
runAsUser: 1000 | ||
resources: {} | ||
|
||
imagePullSecrets: [] | ||
nameOverride: "" | ||
fullnameOverride: "" | ||
podAnnotations: {} | ||
podSecurityContext: {} | ||
nodeSelector: {} | ||
tolerations: [] | ||
affinity: {} | ||
|
||
# ServiceAccount resource | ||
# ----------------------------------------------------------------------------- | ||
# | ||
serviceAccount: | ||
# Specifies whether a service account should be created | ||
create: true | ||
# Annotations to add to the service account | ||
annotations: {} | ||
# The name of the service account to use. | ||
# If not set and create is true, a name is generated using the fullname template | ||
name: "" | ||
|
||
podAnnotations: {} | ||
|
||
podSecurityContext: {} | ||
# fsGroup: 2000 | ||
|
||
securityContext: {} | ||
# capabilities: | ||
# drop: | ||
# - ALL | ||
# readOnlyRootFilesystem: true | ||
# runAsNonRoot: true | ||
# runAsUser: 1000 | ||
|
||
# Service resource | ||
# ----------------------------------------------------------------------------- | ||
# | ||
service: | ||
type: ClusterIP | ||
port: 80 | ||
|
||
# Ingress resource | ||
# ----------------------------------------------------------------------------- | ||
# | ||
ingress: | ||
enabled: false | ||
className: "" | ||
annotations: {} | ||
# kubernetes.io/ingress.class: nginx | ||
# kubernetes.io/tls-acme: "true" | ||
hosts: | ||
- host: chart-example.local | ||
paths: | ||
- path: / | ||
pathType: ImplementationSpecific | ||
tls: [] | ||
# - secretName: chart-example-tls | ||
# hosts: | ||
# - chart-example.local | ||
|
||
resources: {} | ||
# We usually recommend not to specify default resources and to leave this as a conscious | ||
# choice for the user. This also increases chances charts run on environments with little | ||
# resources, such as Minikube. If you do want to specify resources, uncomment the following | ||
# lines, adjust them as necessary, and remove the curly braces after 'resources:'. | ||
# limits: | ||
# cpu: 100m | ||
# memory: 128Mi | ||
# requests: | ||
# cpu: 100m | ||
# memory: 128Mi | ||
|
||
autoscaling: | ||
enabled: false | ||
minReplicas: 1 | ||
maxReplicas: 100 | ||
targetCPUUtilizationPercentage: 80 | ||
# targetMemoryUtilizationPercentage: 80 | ||
|
||
nodeSelector: {} | ||
|
||
tolerations: [] | ||
|
||
affinity: {} |
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,83 @@ | ||
# NOTE: This github repository houses a Helm chart and some Python based scripts | ||
# - not a python package. This file is only used to provide configuration | ||
# for misc Python based utilities. | ||
# | ||
|
||
# autoflake is used for autoformatting Python code | ||
# | ||
# ref: https://github.com/PyCQA/autoflake#readme | ||
# | ||
[tool.autoflake] | ||
ignore-init-module-imports = true | ||
remove-all-unused-imports = true | ||
remove-duplicate-keys = true | ||
remove-unused-variables = true | ||
|
||
|
||
# isort is used for autoformatting Python code | ||
# | ||
# ref: https://pycqa.github.io/isort/ | ||
# | ||
[tool.isort] | ||
profile = "black" | ||
|
||
|
||
# black is used for autoformatting Python code | ||
# | ||
# ref: https://black.readthedocs.io/en/stable/ | ||
# | ||
[tool.black] | ||
target_version = [ | ||
"py310", | ||
"py311", | ||
] | ||
|
||
|
||
# pytest is used for running Python based tests | ||
# | ||
# ref: https://docs.pytest.org/en/stable/ | ||
# | ||
[tool.pytest.ini_options] | ||
addopts = "--verbose --color=yes --durations=10" | ||
asyncio_mode = "auto" | ||
|
||
|
||
# tbump is a tool to update version fields that we use | ||
# to update baseVersion in chartpress.yaml as documented | ||
# in RELEASE.md | ||
# | ||
# Config reference: https://github.com/your-tools/tbump#readme | ||
# | ||
[tool.tbump] | ||
github_url = "https://github.com/2i2c-org/binderhub-service" | ||
|
||
[tool.tbump.version] | ||
current = "0.1.0-0.dev" | ||
|
||
# match our prerelease prefixes | ||
# -alpha.1 | ||
# -beta.2 | ||
# -0.dev | ||
regex = ''' | ||
(?P<major>\d+) | ||
\. | ||
(?P<minor>\d+) | ||
\. | ||
(?P<patch>\d+) | ||
(\- | ||
(?P<prelease> | ||
( | ||
(alpha|beta|rc)\.\d+| | ||
0\.dev | ||
) | ||
) | ||
)? | ||
''' | ||
|
||
[tool.tbump.git] | ||
message_template = "Bump to {new_version}" | ||
tag_template = "{new_version}" | ||
|
||
[[tool.tbump.file]] | ||
src = "chartpress.yaml" | ||
search = 'baseVersion: "{current_version}"' |
Oops, something went wrong.