IOperatorHubCallbacks
Namespace: Meshmakers.Octo.Communication.Contracts.Hubs
Callback interface for operator management connections. The Communication Controller calls these methods on connected operators to notify them of pool deploy / undeploy events for Cloud-environment pools. Edge-environment pools are not pushed — those are installed and run by an external operator outside the central cluster.
public interface IOperatorHubCallbacks
Methods
PoolDeployedAsync(DeployedPoolDto)
Called when a Cloud pool is deployed (or re-deployed). The operator should ensure the corresponding CommunicationPool CR and broker secret exist in its pool namespace.
Task PoolDeployedAsync(DeployedPoolDto pool)
Parameters
pool DeployedPoolDto
Returns
PoolUndeployedAsync(String, String)
Called when a Cloud pool is undeployed. The operator should remove the corresponding CommunicationPool CR and broker secret.
Task PoolUndeployedAsync(string tenantId, string poolName)
Parameters
tenantId String
poolName String
Returns
WorkloadDeployedAsync(WorkloadDeployedDto)
Called when an Adapter or Application managed by a Cloud pool should
be deployed (or re-deployed). The operator runs
helm upgrade --install against the chart referenced by
WorkloadDeployedDto.RepositoryUrl +
WorkloadDeployedDto.ChartName +
WorkloadDeployedDto.ChartVersion, using
WorkloadDeployedDto.ValuesYaml as the base values and
WorkloadDeployedDto.Values as structured overrides
(deep-merged on top). Secret-flagged overrides arrive decrypted.
Task WorkloadDeployedAsync(WorkloadDeployedDto workload)
Parameters
workload WorkloadDeployedDto
Returns
WorkloadUndeployedAsync(WorkloadUndeployedDto)
Called when an Adapter or Application should be undeployed. The
operator runs helm uninstall for the matching release and
removes the operator-owned secret if one was created at deploy time.
Task WorkloadUndeployedAsync(WorkloadUndeployedDto workload)
Parameters
workload WorkloadUndeployedDto
Returns
PreUpdateTenantAsync(String)
Fired by the controller before the tenant's CK model is reloaded /
migrated. Mirrors the legacy IPoolHubCallbacks.PreUpdateTenantAsync
signal; moved here so the operator only needs the single
/operatorHub channel. Operators should let in-flight work
settle and prepare to re-register their pools afterwards.
Task PreUpdateTenantAsync(string tenantId)
Parameters
tenantId String