Skip to content

Commit

Permalink
Add generation annotations and generate CRDs to include v1alpha1
Browse files Browse the repository at this point in the history
Signed-off-by: Angel Misevski <[email protected]>
  • Loading branch information
amisevsk committed Nov 24, 2020
1 parent c1d0f4b commit ae3b22d
Show file tree
Hide file tree
Showing 8 changed files with 22,377 additions and 6,508 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ generator/build/generator "interfaces" "paths=./pkg/apis/workspaces/v1alpha2"

echo "Generating K8S CRDs"

generator/build/generator "crds" "output:crds:artifacts:config=crds" "paths=./pkg/apis/workspaces/v1alpha2"
generator/build/generator "crds" "output:crds:artifacts:config=crds" "paths=./pkg/apis/workspaces/v1alpha2;./pkg/apis/workspaces/v1alpha1"

echo "Generating DeepCopy implementations"

generator/build/generator "deepcopy" "paths=./pkg/apis/workspaces/v1alpha2"
generator/build/generator "deepcopy" "paths=./pkg/apis/workspaces/v1alpha2;./pkg/apis/workspaces/v1alpha1"

echo "Generating JsonSchemas"

generator/build/generator "schemas" "output:schemas:artifacts:config=schemas" "paths=./pkg/apis/workspaces/v1alpha2"
generator/build/generator "schemas" "output:schemas:artifacts:config=schemas" "paths=./pkg/apis/workspaces/v1alpha2;./pkg/apis/workspaces/v1alpha1"

echo "Finished generation of required GO sources, K8S CRDs, and Json Schemas"
10,726 changes: 7,412 additions & 3,314 deletions crds/workspace.devfile.io_devworkspaces.v1beta1.yaml

Large diffs are not rendered by default.

4,056 changes: 4,056 additions & 0 deletions crds/workspace.devfile.io_devworkspaces.yaml

Large diffs are not rendered by default.

10,172 changes: 7,040 additions & 3,132 deletions crds/workspace.devfile.io_devworkspacetemplates.v1beta1.yaml

Large diffs are not rendered by default.

3,854 changes: 3,854 additions & 0 deletions crds/workspace.devfile.io_devworkspacetemplates.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pkg/apis/workspaces/v1alpha1/keyed.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package v1alpha1

// +k8s:deepcopy-gen=false
type Keyed interface {
Key() (string, error)
}
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/workspaces/v1alpha1/union.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package v1alpha1
// Union is an interface that allows managing structs defined as
// Kubernetes unions with discriminators, according to the following KEP:
// https://github.com/kubernetes/enhancements/blob/master/keps/sig-api-machinery/20190325-unions.md
// +k8s:deepcopy-gen=false
type Union interface {
discriminator() *string

Expand Down
Loading

0 comments on commit ae3b22d

Please sign in to comment.