-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: refactor 1.0 parameter api #8441
base: main
Are you sure you want to change the base?
chore: refactor 1.0 parameter api #8441
Conversation
@@ -143,6 +143,8 @@ func (r *ClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ct | |||
&clusterServiceTransformer{}, | |||
// handle the restore for cluster | |||
&clusterRestoreTransformer{}, | |||
// rerender parameters after v-scale and h-scale | |||
&clusterParametersTransformer{}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be moved out of the cluster controller since the apps package has no knowledge about the parameters and doesn't depend on it too.
return nil | ||
} | ||
|
||
configRender, paramsDefs, err := intctrlutil.ResolveCmpdParametersDefs(transCtx, transCtx.Client, transCtx.CompDef) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
@@ -318,7 +318,7 @@ type ComponentDefinitionSpec struct { | |||
// +listType=map | |||
// +listMapKey=name | |||
// +optional | |||
Configs []ComponentConfigSpec `json:"configs,omitempty"` | |||
Configs []ComponentTemplateSpec `json:"configs,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ComponentConfigSpec could be deleted from this package?
// Specifies the initialization parameters. | ||
// | ||
// +optional | ||
InitParameters ComponentParameters `json:"initParameters,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be added into spec.components.configs, and be used as init values to render config templates.
…o parameters controller
7455b95
to
cd36433
Compare
No description provided.