-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apps: add instantiate expansion for deployment configs
- Loading branch information
Showing
4 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 18 additions & 1 deletion
19
pkg/deploy/generated/clientset/typed/apps/v1/generated_expansion.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
package v1 | ||
|
||
type DeploymentConfigExpansion interface{} | ||
import ( | ||
v1 "github.com/openshift/origin/pkg/deploy/apis/apps/v1" | ||
) | ||
|
||
type DeploymentConfigExpansion interface { | ||
Instantiate(*v1.DeploymentRequest) (*v1.DeploymentConfig, error) | ||
} | ||
|
||
// Instantiate takes the representation of a deploymentRequest and creates it. Returns the server's representation of the deploymentConfig, and an error, if there is any. | ||
func (c *deploymentConfigs) Instantiate(deploymentRequest *v1.DeploymentRequest) (result *v1.DeploymentConfig, err error) { | ||
result = &v1.DeploymentConfig{} | ||
err = c.client.Post(). | ||
Resource("deploymentconfigs").Name(deploymentRequest.Name).SubResource("instantiate"). | ||
Body(deploymentRequest). | ||
Do(). | ||
Into(result) | ||
return | ||
} |
19 changes: 18 additions & 1 deletion
19
pkg/deploy/generated/internalclientset/typed/apps/internalversion/generated_expansion.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
package internalversion | ||
|
||
type DeploymentConfigExpansion interface{} | ||
import ( | ||
apps "github.com/openshift/origin/pkg/deploy/apis/apps" | ||
) | ||
|
||
type DeploymentConfigExpansion interface { | ||
Instantiate(*apps.DeploymentRequest) (*apps.DeploymentConfig, error) | ||
} | ||
|
||
// Instantiate takes the representation of a deploymentRequest and creates it. Returns the server's representation of the deploymentConfig, and an error, if there is any. | ||
func (c *deploymentConfigs) Instantiate(deploymentRequest *apps.DeploymentRequest) (result *apps.DeploymentConfig, err error) { | ||
result = &apps.DeploymentConfig{} | ||
err = c.client.Post(). | ||
Resource("deploymentconfigs").Name(deploymentRequest.Name).SubResource("instantiate"). | ||
Body(deploymentRequest). | ||
Do(). | ||
Into(result) | ||
return | ||
} |