Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
Update the selective deployment types to include workload term
Browse files Browse the repository at this point in the history
  • Loading branch information
bsenel committed Nov 30, 2020
1 parent 1ce25f0 commit 76c6cfc
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 43 deletions.
10 changes: 5 additions & 5 deletions pkg/apis/apps/v1alpha/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ type SelectiveDeployment struct {
// SelectiveDeploymentSpec is the spec for a SelectiveDeployment resource
type SelectiveDeploymentSpec struct {
// The controller indicates the name and type of controller desired to configure
// Controllers: deployment, daemonset, and statefulsets
// Workloads: deployment, daemonset, and statefulsets
// The type is for defining which kind of selectivedeployment it is, you could find the list of active types below.
// Types of selector: city, state, country, continent, and polygon
// The value represents the desired filter and it must be compatible with the type of selectivedeployment
Controllers Controllers `json:"controllers"`
Selector []Selector `json:"selector"`
Workloads Workloads `json:"workloads"`
Selector []Selector `json:"selector"`
}

// Controllers indicates deployments, daemonsets or statefulsets
type Controllers struct {
// Workloads indicates deployments, daemonsets or statefulsets
type Workloads struct {
Deployment []appsv1.Deployment `json:"deployment"`
DaemonSet []appsv1.DaemonSet `json:"daemonset"`
StatefulSet []appsv1.StatefulSet `json:"statefulset"`
Expand Down
76 changes: 38 additions & 38 deletions pkg/apis/apps/v1alpha/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 76c6cfc

Please sign in to comment.