Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple spec #1

Merged
merged 7 commits into from
Dec 15, 2018
Merged

Support multiple spec #1

merged 7 commits into from
Dec 15, 2018

Conversation

l-margiela
Copy link
Collaborator

No description provided.

@euforia euforia changed the title ONEDEVOPS-978 Multiple spec Support multiple spec Dec 11, 2018
@@ -33,15 +33,15 @@ type Deployments struct {
}

// NewDeployments returns a new Deployments instance for a given project
func NewDeployments(t *Thrap, proj pb.Project) *Deployments {
func NewDeployments(t *Thrap, proj pb.Project, version string) *Deployments {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NewDeployments manages all deploys for a project. Version should not be in the constructor.

// Descriptor returns the current loaded deployment descriptor
func (d *Deployments) Descriptor() *pb.DeploymentDescriptor {
return d.desc
}

// SetDescriptor sets the deployment descriptor in the store.
func (d *Deployments) SetDescriptor(desc *pb.DeploymentDescriptor) error {
err := d.descs.Set(d.proj.ID, desc)
func (d *Deployments) SetDescriptor(desc *pb.DeploymentDescriptor, version string) error {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to SetDescriptor(string, *pb.DeploymentDescriptor)

@euforia euforia merged commit 44a140d into v0.1.0-rc Dec 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants