Skip to content

Commit

Permalink
[BOP-1364] use json instead of string for addon values (#96)
Browse files Browse the repository at this point in the history
* BOP-1364: Use json instead of string for chart Values

* Regen manifest
  • Loading branch information
tppolkow authored Oct 30, 2024
1 parent 5318af6 commit eeced5d
Show file tree
Hide file tree
Showing 6 changed files with 964 additions and 377 deletions.
3 changes: 2 additions & 1 deletion api/v1alpha1/addon_types.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package v1alpha1

import (
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"
)
Expand Down Expand Up @@ -32,7 +33,7 @@ type ChartInfo struct {

DependsOn []string `json:"dependsOn,omitempty"`
Set map[string]intstr.IntOrString `json:"set,omitempty"`
Values string `json:"values,omitempty"`
Values *apiextensionsv1.JSON `json:"values,omitempty"`
}

type ManifestInfo struct {
Expand Down
10 changes: 8 additions & 2 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/crd/bases/blueprint.mirantis.com_addons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ spec:
x-kubernetes-int-or-string: true
type: object
values:
type: string
x-kubernetes-preserve-unknown-fields: true
version:
type: string
required:
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/blueprint.mirantis.com_blueprints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
x-kubernetes-int-or-string: true
type: object
values:
type: string
x-kubernetes-preserve-unknown-fields: true
version:
type: string
required:
Expand Down
Loading

0 comments on commit eeced5d

Please sign in to comment.