Skip to content

Commit 601081e

Browse files
authored
Merge pull request #6668 from RainbowMango/pr_introduce_interpreter_operation
Introduce new interpreter operation InterpretComponent
2 parents 8b14046 + 440eada commit 601081e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/apis/config/v1alpha1/resourceinterpreterwebhook_types.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,14 @@ const (
124124
// Only necessary for those resource types that have replica declaration, like Deployment or similar custom resources.
125125
InterpreterOperationInterpretReplica InterpreterOperation = "InterpretReplica"
126126

127+
// InterpreterOperationInterpretComponent indicates that karmada wants to figure out
128+
// resource requirements for multiple components from a given object.
129+
// This operation is designed for CRDs with multiple components (e.g., FlinkDeployment),
130+
// but can also be used for single-component resources.
131+
// If an interpreter supports this operation, 'InterpretReplica' will not be called.
132+
// This operation is only used when the feature gate 'MultiplePodTemplatesScheduling' is enabled.
133+
InterpreterOperationInterpretComponent InterpreterOperation = "InterpretComponent"
134+
127135
// InterpreterOperationReviseReplica indicates that karmada request webhook to modify the replica.
128136
InterpreterOperationReviseReplica InterpreterOperation = "ReviseReplica"
129137

0 commit comments

Comments
 (0)