diff --git a/turbonomic/operands/ibm-opencontent-flink-operand-orm.yaml b/turbonomic/operands/ibm-opencontent-flink-operand-orm.yaml new file mode 100644 index 000000000..2229886cd --- /dev/null +++ b/turbonomic/operands/ibm-opencontent-flink-operand-orm.yaml @@ -0,0 +1,51 @@ +apiVersion: devops.turbonomic.io/v1alpha1 +kind: OperatorResourceMapping +metadata: + name: flink-jobmanager-orm + namespace: $namespace +spec: + mappings: + patterns: + - owned: + apiVersion: apps/v1 + kind: ReplicaSet + name: job-manager + path: '.spec.containers[?(@.name=="tls-proxy")].resources' + ownerPath: .spec.containers.resources + - owned: + apiVersion: apps/v1 + kind: ReplicaSet + name: job-manager + path: '.spec.containers[?(@.name=="flink-main-container")].resources' + ownerPath: .spec.containers.resources + selectors: + flink_deploy: + matchLabels: + app.kubernetes.io/name: ibm-opencontent-flink + owner: + apiVersion: flink.ibm.com/v1beta1 + kind: FlinkDeployment + name: test-flink-deployment +--- +apiVersion: devops.turbonomic.io/v1alpha1 +kind: OperatorResourceMapping +metadata: + name: flink-taskmanager-orm + namespace: $namespace +spec: + mappings: + patterns: + - owned: + apiVersion: apps/v1 + kind: ReplicaSet + name: taskmanager + path: '.spec.containers[?(@.name=="flink-main-container")].resources' + ownerPath: '.spec.containers.resources' + selectors: + flink_deploy: + matchLabels: + app.kubernetes.io/name: ibm-opencontent-flink + owner: + apiVersion: flink.ibm.com/v1beta1 + kind: FlinkDeployment + name: test-flink-deployment \ No newline at end of file diff --git a/turbonomic/operators/ibm-opencontent-flink-operator-orm.yaml b/turbonomic/operators/ibm-opencontent-flink-operator-orm.yaml new file mode 100644 index 000000000..993014487 --- /dev/null +++ b/turbonomic/operators/ibm-opencontent-flink-operator-orm.yaml @@ -0,0 +1,30 @@ +apiVersion: devops.turbonomic.io/v1alpha1 +kind: OperatorResourceMapping +metadata: + name: flink-operator-orm + namespace: $namespace +spec: + mappings: + patterns: + - owned: + apiVersion: apps/v1 + kind: Deployment + path: .spec.template.spec.containers[?(@.name=="flink-kubernetes-operator")].resources + name: flink-kubernetes-operator + ownerPath: .spec.install.spec.deployments[?(@.name=="flink-kubernetes-operator")].spec.template.spec.containers[?(@.name=="flink-kubernetes-operator")].resources + selector: flink_operator + - owned: + apiVersion: apps/v1 + kind: Deployment + path: .spec.template.spec.containers[?(@.name=="flink-webhook")].resources + name: flink-kubernetes-operator + ownerPath: .spec.install.spec.deployments[?(@.name=="flink-kubernetes-operator")].spec.template.spec.containers[?(@.name=="flink-webhook")].resources + selector: flink_operator + selectors: + flink_operator: + matchLabels: + app.kubernetes.io/name: flink-kubernetes-operator + owner: + apiVersion: operators.coreos.com/v1alpha1 + kind: ClusterServiceVersion + name: ibm-opencontent-flink.v2.0.6 \ No newline at end of file