Skip to content

Commit 6fc5a99

Browse files
committed
Always mount license secret into proxyserver
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent 3ca6784 commit 6fc5a99

File tree

4 files changed

+7
-15
lines changed

4 files changed

+7
-15
lines changed

pkg/manager/agent-manifests/license-proxyserver/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
22
description: Kubernetes license-proxyserver by AppsCode
33
name: license-proxyserver
4-
version: v2024.2.25
5-
appVersion: v0.0.8
4+
version: v2024.5.17
5+
appVersion: v0.0.9
66
home: https://github.com/bytebuilders/license-proxyserver
77
icon: https://cdn.appscode.com/images/products/searchlight/icons/android-icon-192x192.png
88
sources:

pkg/manager/agent-manifests/license-proxyserver/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
```bash
88
$ helm repo add appscode https://charts.appscode.com/stable
99
$ helm repo update
10-
$ helm search repo appscode/license-proxyserver --version=v2024.2.25
11-
$ helm upgrade -i license-proxyserver appscode/license-proxyserver -n kubeops --create-namespace --version=v2024.2.25
10+
$ helm search repo appscode/license-proxyserver --version=v2024.5.17
11+
$ helm upgrade -i license-proxyserver appscode/license-proxyserver -n kubeops --create-namespace --version=v2024.5.17
1212
```
1313

1414
## Introduction
@@ -24,7 +24,7 @@ This chart deploys a Kubernetes license proxyserver on a [Kubernetes](http://kub
2424
To install/upgrade the chart with the release name `license-proxyserver`:
2525

2626
```bash
27-
$ helm upgrade -i license-proxyserver appscode/license-proxyserver -n kubeops --create-namespace --version=v2024.2.25
27+
$ helm upgrade -i license-proxyserver appscode/license-proxyserver -n kubeops --create-namespace --version=v2024.5.17
2828
```
2929

3030
The command deploys a Kubernetes license proxyserver on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation.
@@ -89,12 +89,12 @@ The following table lists the configurable parameters of the `license-proxyserve
8989
Specify each parameter using the `--set key=value[,key=value]` argument to `helm upgrade -i`. For example:
9090

9191
```bash
92-
$ helm upgrade -i license-proxyserver appscode/license-proxyserver -n kubeops --create-namespace --version=v2024.2.25 --set replicaCount=1
92+
$ helm upgrade -i license-proxyserver appscode/license-proxyserver -n kubeops --create-namespace --version=v2024.5.17 --set replicaCount=1
9393
```
9494

9595
Alternatively, a YAML file that specifies the values for the parameters can be provided while
9696
installing the chart. For example:
9797

9898
```bash
99-
$ helm upgrade -i license-proxyserver appscode/license-proxyserver -n kubeops --create-namespace --version=v2024.2.25 --values values.yaml
99+
$ helm upgrade -i license-proxyserver appscode/license-proxyserver -n kubeops --create-namespace --version=v2024.5.17 --values values.yaml
100100
```

pkg/manager/agent-manifests/license-proxyserver/templates/deployment.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ spec:
4747
- --baseURL={{ .Values.platform.baseURL }}
4848
- --token=$(PLATFORM_API_TOKEN)
4949
{{- end }}
50-
{{- if (or .Values.licenses .Values.encodedLicenses .Values.hubKubeconfigSecretName) }}
5150
- --license-dir=/var/run/secrets/appscode/license
52-
{{- end }}
5351
{{- if .Values.hubKubeconfigSecretName }}
5452
- --hub-kubeconfig=/var/run/secrets/ocm/auth/kubeconfig
5553
{{- end }}
@@ -93,10 +91,8 @@ spec:
9391
name: cache-dir
9492
- mountPath: /var/serving-cert
9593
name: serving-cert
96-
{{- if (or .Values.licenses .Values.encodedLicenses .Values.hubKubeconfigSecretName) }}
9794
- mountPath: /var/run/secrets/appscode/license
9895
name: licenses
99-
{{- end }}
10096
{{- if .Values.hubKubeconfigSecretName }}
10197
- mountPath: /var/run/secrets/ocm/auth
10298
name: ocm-auth
@@ -108,13 +104,11 @@ spec:
108104
secret:
109105
defaultMode: 420
110106
secretName: {{ include "license-proxyserver.fullname" . }}-apiserver-cert
111-
{{- if (or .Values.licenses .Values.encodedLicenses .Values.hubKubeconfigSecretName) }}
112107
- name: licenses
113108
secret:
114109
defaultMode: 420
115110
secretName: {{ include "license-proxyserver.fullname" . }}-licenses
116111
optional: true
117-
{{- end }}
118112
{{- if .Values.hubKubeconfigSecretName }}
119113
- name: ocm-auth
120114
secret:

pkg/manager/agent-manifests/license-proxyserver/templates/licenses.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{- if (or .Values.licenses .Values.encodedLicenses) }}
21
apiVersion: v1
32
kind: Secret
43
metadata:
@@ -14,4 +13,3 @@ data:
1413
{{- range $k, $v := .Values.encodedLicenses }}
1514
e_{{ $k }}: {{ $v | quote }}
1615
{{- end }}
17-
{{- end }}

0 commit comments

Comments
 (0)