Skip to content

Commit

Permalink
nemerosa/ontrack#1155 Fixed license configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoraboeuf committed Jan 6, 2024
1 parent d557cfd commit ef8f94e
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 6 deletions.
26 changes: 22 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,29 @@ ontrack:

# Change log

| Version | Postgres | Elasticsearch | Kubernetes | Minimal Ontrack version |
|-----------------|----------|---------------|------------|-------------------------|
| 0.8.x | 11 | 7 | 1.24 | 4.7.13 |
| 0.9.x | 15 | 7 | 1.24 | 4.7.20 |
| Version | Postgres | Elasticsearch | Kubernetes | Minimal Ontrack version |
|----------------|----------|---------------|------------|-------------------------|
| 0.8.x | 11 | 7 | 1.24 | 4.7.13 |
| 0.9.x | 15 | 7 | 1.24 | 4.7.20 |
| [0.10.x](#010) | 15 | 7 | 1.24 | 4.8.1 |
| [0.11.x](#011) | 15 | 7 | 1.24 | 4.8.12 |

## 0.11

* Support for the `fixed` license:

```yaml
ontrack:
config:
license:
type: fixed
fixed:
name: Premium
assignee: Nemerosa
active: true
validUntil: 2024-12-31T12:00:00
maxProjects: 0
```

## 0.10

Expand Down
2 changes: 1 addition & 1 deletion charts/ontrack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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.10.0
version: 0.11.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.
Expand Down
12 changes: 12 additions & 0 deletions charts/ontrack/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,18 @@ spec:
name: {{ .Values.ontrack.config.license.stripe.secret | quote }}
key: {{ .Values.ontrack.config.license.stripe.subscription_key_name | quote }}
{{- end }}
{{ if eq .Values.ontrack.config.license.type "fixed" }}
- name: ONTRACK_CONFIG_LICENSE_FIXED_NAME
value: {{ .Values.ontrack.config.license.fixed.name | quote }}
- name: ONTRACK_CONFIG_LICENSE_FIXED_ASSIGNEE
value: {{ .Values.ontrack.config.license.fixed.assignee | quote }}
- name: ONTRACK_CONFIG_LICENSE_FIXED_VALIDUNTIL
value: {{ .Values.ontrack.config.license.fixed.validUntil | quote }}
- name: ONTRACK_CONFIG_LICENSE_FIXED_MAXPROJECTS
value: {{ .Values.ontrack.config.license.fixed.maxProjects | quote }}
- name: ONTRACK_CONFIG_LICENSE_FIXED_ACTIVE
value: {{ .Values.ontrack.config.license.fixed.active | quote }}
{{- end }}
########################################
# Arbitrary environment variables
########################################
Expand Down
14 changes: 13 additions & 1 deletion charts/ontrack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,20 @@ ontrack:
directory: "/var/ontrack/key_store"
# License management
license:
# Type of license: none, stripe
# Type of license: none, stripe, fixed
type: none
# For Fixed based configuration
fixed:
# Type of license, display name, description, etc.
name:
# Name of the assignee
assignee:
# Is the license active?
active: false
# End of validity for this license (null for unlimited)
validUntil:
# Maximum number of projects which can be created (0 for unlimited)
maxProjects: 0
# For Stripe based configuration
stripe:
# Name of the secret which contains the Stripe information
Expand Down

0 comments on commit ef8f94e

Please sign in to comment.