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
I propose the creation of 2 interfaces for managing and deploying Deployments, Deployer and Manager.
Deployer
// Deployer can deploy DeploymentstypeDeployerinterface {
// Deploy creates Deployment using the name requested. The name should be stored so that it can be queried by Manager.// Returns error if Deployment exists and replace is false.Deploy(d*Deployment, namestring, replacebool) error
}
Manager
// Manager provides functionality to manipulate running DeploymentstypeManagerinterface {
Deployer// Deployment returns the named Deployment. Returns ErrNotFound if doesn't exist.Deployment(namestring) (*Deployment, error)
// Stop will remove the requested DeploymentStop(namestring) error
}
The text was updated successfully, but these errors were encountered:
It looks like Manager will require some extra work because it tracks Deployments that are already created. Considering I'm not completely convinced about this deployment model, let's implement Deployer and hold off on Manager.
Deployer should be able to be implemented for Kubernetes by looping through each object type in a Deployment and creating each object.
We probably want to add a mechanism to get updates after objects are created. For example, waiting for a cloud provider to provision the Ingress for Services of type LoadBalancer.
I propose the creation of 2 interfaces for managing and deploying Deployments,
Deployer
andManager
.Deployer
Manager
The text was updated successfully, but these errors were encountered: