Skip to content

Commit 03cd3db

Browse files
Register addon v1alpha1 and v1beta1 APIs to scheme (#59)
Signed-off-by: RokibulHasan7 <mdrokibulhasan@appscode.com> Signed-off-by: Tamal Saha <tamal@appscode.com> Co-authored-by: Tamal Saha <tamal@appscode.com>
1 parent aafd761 commit 03cd3db

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
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: v2026.1.15
5-
appVersion: v0.1.0
4+
version: v2026.2.16
5+
appVersion: v0.1.1
66
home: https://github.com/appscode-cloud/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=v2026.1.15
11-
$ helm upgrade -i license-proxyserver appscode/license-proxyserver -n kubeops --create-namespace --version=v2026.1.15
10+
$ helm search repo appscode/license-proxyserver --version=v2026.2.16
11+
$ helm upgrade -i license-proxyserver appscode/license-proxyserver -n kubeops --create-namespace --version=v2026.2.16
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=v2026.1.15
27+
$ helm upgrade -i license-proxyserver appscode/license-proxyserver -n kubeops --create-namespace --version=v2026.2.16
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.
@@ -97,12 +97,12 @@ The following table lists the configurable parameters of the `license-proxyserve
9797
Specify each parameter using the `--set key=value[,key=value]` argument to `helm upgrade -i`. For example:
9898

9999
```bash
100-
$ helm upgrade -i license-proxyserver appscode/license-proxyserver -n kubeops --create-namespace --version=v2026.1.15 --set replicaCount=1
100+
$ helm upgrade -i license-proxyserver appscode/license-proxyserver -n kubeops --create-namespace --version=v2026.2.16 --set replicaCount=1
101101
```
102102

103103
Alternatively, a YAML file that specifies the values for the parameters can be provided while
104104
installing the chart. For example:
105105

106106
```bash
107-
$ helm upgrade -i license-proxyserver appscode/license-proxyserver -n kubeops --create-namespace --version=v2026.1.15 --values values.yaml
107+
$ helm upgrade -i license-proxyserver appscode/license-proxyserver -n kubeops --create-namespace --version=v2026.2.16 --values values.yaml
108108
```

pkg/manager/config.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ import (
3838
kmapi "kmodules.xyz/client-go/api/v1"
3939
"open-cluster-management.io/addon-framework/pkg/addonfactory"
4040
agentapi "open-cluster-management.io/addon-framework/pkg/agent"
41-
"open-cluster-management.io/api/addon/v1alpha1"
41+
addonv1alpha1 "open-cluster-management.io/api/addon/v1alpha1"
42+
addonv1beta1 "open-cluster-management.io/api/addon/v1beta1"
4243
clusterv1 "open-cluster-management.io/api/cluster/v1"
4344
clusterv1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
4445
workv1 "open-cluster-management.io/api/work/v1"
@@ -54,10 +55,12 @@ func init() {
5455
_ = clusterv1alpha1.Install(scheme)
5556
_ = apiregistrationv1.AddToScheme(scheme)
5657
_ = monitoringv1.AddToScheme(scheme)
58+
_ = addonv1alpha1.Install(scheme)
59+
_ = addonv1beta1.Install(scheme)
5760
}
5861

5962
func GetConfigValues(kc client.Client, opts *ManagerOptions, cs *certstore.CertStore) addonfactory.GetValuesFunc {
60-
return func(cluster *clusterv1.ManagedCluster, addon *v1alpha1.ManagedClusterAddOn) (addonfactory.Values, error) {
63+
return func(cluster *clusterv1.ManagedCluster, addon *addonv1alpha1.ManagedClusterAddOn) (addonfactory.Values, error) {
6164
caCrtBytes, _, err := cs.ReadBytes(common.CACertName)
6265
if err != nil {
6366
return nil, err

0 commit comments

Comments
 (0)