You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`apiServerRef`| Reference to the StreamNativeCloudConnection resource for API server access| Yes|
11
+
|`apiServerRef`| Reference to the StreamNativeCloudConnection resource for API server access. If not specified, the APIServerRef from the referenced ComputeWorkspace will be used. | No |
12
12
|`workspaceName`| Name of the ComputeWorkspace where the Flink deployment will run | Yes |
13
13
|`labels`| Labels to add to the deployment | No |
14
14
|`annotations`| Annotations to add to the deployment | No |
@@ -18,6 +18,19 @@ The `ComputeFlinkDeployment` resource defines a Flink deployment in StreamNative
18
18
19
19
*Note: Either `template` or `communityTemplate` must be specified, but not both.
20
20
21
+
## APIServerRef Inheritance
22
+
23
+
The `ComputeFlinkDeployment` resource can inherit the `APIServerRef` from its referenced `ComputeWorkspace`. This simplifies configuration and reduces duplication. Here's how it works:
24
+
25
+
1. If `apiServerRef` is specified in the `ComputeFlinkDeployment`, that value will be used.
26
+
2. If `apiServerRef` is not specified, the operator will use the `APIServerRef` from the referenced `ComputeWorkspace`.
27
+
3. The `workspaceName` field is required and must reference a valid `ComputeWorkspace` in the same namespace.
28
+
29
+
This inheritance mechanism allows you to:
30
+
- Reduce configuration duplication
31
+
- Centralize API server configuration at the workspace level
32
+
- Easily change API server configuration for multiple deployments by updating the workspace
33
+
21
34
### VVP Deployment Template
22
35
23
36
| Field | Description | Required |
@@ -97,7 +110,7 @@ The `ComputeFlinkDeployment` resource defines a Flink deployment in StreamNative
97
110
98
111
## Example
99
112
100
-
1. Create a ComputeFlinkDeployment with VVP template:
113
+
1. Create a ComputeFlinkDeployment with explicit APIServerRef:
101
114
102
115
```yaml
103
116
apiVersion: resource.streamnative.io/v1alpha1
@@ -175,6 +188,63 @@ NAME READY AGE
175
188
operator-test-v1 True 1m
176
189
```
177
190
191
+
2. Create a ComputeFlinkDeployment using Workspace's APIServerRef:
192
+
193
+
```yaml
194
+
apiVersion: resource.streamnative.io/v1alpha1
195
+
kind: ComputeFlinkDeployment
196
+
metadata:
197
+
name: operator-test-v2
198
+
namespace: default
199
+
spec:
200
+
workspaceName: test-operator-workspace # Will use APIServerRef from this workspace
0 commit comments