From 5ec3b89b9ac9313dee514683229aefc3c8056577 Mon Sep 17 00:00:00 2001 From: Matt Moore Date: Tue, 30 Oct 2018 13:50:34 -0700 Subject: [PATCH] Update to Build 0.2 release (#2353) --- Gopkg.lock | 5 ++- Gopkg.toml | 3 +- third_party/config/build/release.yaml | 38 +++++++++++++------ .../knative/build/cmd/logs/kodata/LICENSE | 1 + .../build/cmd/logs/kodata/VENDOR-LICENSE | 1 + .../knative/build/cmd/nop/kodata/LICENSE | 1 + .../build/cmd/nop/kodata/VENDOR-LICENSE | 1 + .../build/v1alpha1/build_template_types.go | 11 ------ .../pkg/apis/build/v1alpha1/build_types.go | 11 ------ .../v1alpha1/cluster_build_template_types.go | 11 ------ .../knative/build/test/panic/kodata/LICENSE | 1 + .../build/test/panic/kodata/VENDOR-LICENSE | 1 + .../build/test/workingdir/kodata/LICENSE | 1 + .../test/workingdir/kodata/VENDOR-LICENSE | 1 + 14 files changed, 39 insertions(+), 48 deletions(-) create mode 120000 vendor/github.com/knative/build/cmd/logs/kodata/LICENSE create mode 120000 vendor/github.com/knative/build/cmd/logs/kodata/VENDOR-LICENSE create mode 120000 vendor/github.com/knative/build/cmd/nop/kodata/LICENSE create mode 120000 vendor/github.com/knative/build/cmd/nop/kodata/VENDOR-LICENSE create mode 120000 vendor/github.com/knative/build/test/panic/kodata/LICENSE create mode 120000 vendor/github.com/knative/build/test/panic/kodata/VENDOR-LICENSE create mode 120000 vendor/github.com/knative/build/test/workingdir/kodata/LICENSE create mode 120000 vendor/github.com/knative/build/test/workingdir/kodata/VENDOR-LICENSE diff --git a/Gopkg.lock b/Gopkg.lock index 6d921ce6c477..9c4a9465f364 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -314,14 +314,15 @@ revision = "f2b4162afba35581b6d4a50d3b8f34e33c144682" [[projects]] - digest = "1:9cfc60d7d1a78a7967137b4ffc344e5449f0c5956c48598ded8e089c4444bcd1" + digest = "1:345bbba667abadd6263391c915251ede8d9fa6f6852839c60bb6738b6122b89c" name = "github.com/knative/build" packages = [ "pkg/apis/build", "pkg/apis/build/v1alpha1", ] pruneopts = "NUT" - revision = "cc4451408f52b86fec87f6b7e4bc88848d3b1088" + revision = "94859753e2c6724df2be86f6a254f810895fa3eb" + version = "v0.2.0" [[projects]] digest = "1:826576a2dbea52eb350ed5c0fd3e53f1f24cd6bdcfaf89ff89239b8cd426cd0d" diff --git a/Gopkg.toml b/Gopkg.toml index c063f85b6805..6d5304ee528d 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -18,8 +18,7 @@ required = [ [[constraint]] name = "github.com/knative/build" - # HEAD as of 2018-10-08 - revision = "cc4451408f52b86fec87f6b7e4bc88848d3b1088" + version = "v0.2.0" [[override]] name = "github.com/knative/pkg" diff --git a/third_party/config/build/release.yaml b/third_party/config/build/release.yaml index bb6055642b20..e6f2fd46a4af 100644 --- a/third_party/config/build/release.yaml +++ b/third_party/config/build/release.yaml @@ -115,11 +115,17 @@ metadata: name: builds.build.knative.dev spec: additionalPrinterColumns: - - JSONPath: .metadata.creationTimestamp - name: Age + - JSONPath: .status.conditions[?(@.type=="Succeeded")].status + name: Succeeded + type: string + - JSONPath: .status.conditions[?(@.type=="Succeeded")].reason + name: Reason + type: string + - JSONPath: .status.startTime + name: StartTime type: date - JSONPath: .status.completionTime - name: Completed + name: CompletionTime type: date group: build.knative.dev names: @@ -224,7 +230,7 @@ metadata: name: creds-init namespace: knative-build spec: - image: gcr.io/knative-releases/github.com/knative/build/cmd/creds-init@sha256:a5eddd139e71e17fed7ba685844607f9fc715823e57a9aa81a815a376deb63eb + image: gcr.io/knative-releases/github.com/knative/build/cmd/creds-init@sha256:c1c11fafd337f62eea18a1f02b78e6ae6949779bed72d53d19b2870723a8f104 --- apiVersion: caching.internal.knative.dev/v1alpha1 kind: Image @@ -232,7 +238,7 @@ metadata: name: git-init namespace: knative-build spec: - image: gcr.io/knative-releases/github.com/knative/build/cmd/git-init@sha256:0f1b45b2cbb842b51d5499c0235fab759b7550052f12e825d376f4d159ab3634 + image: gcr.io/knative-releases/github.com/knative/build/cmd/git-init@sha256:6fa8043ed114920cd61e28db3c942647ba48415fe1208acde2fb2ac0746c9164 --- apiVersion: caching.internal.knative.dev/v1alpha1 kind: Image @@ -248,7 +254,7 @@ metadata: name: nop namespace: knative-build spec: - image: gcr.io/knative-releases/github.com/knative/build/cmd/nop@sha256:c1a3869762368500dd8b763c8033108f44d7fd490d4ea2ee4564b2b840760324 + image: gcr.io/knative-releases/github.com/knative/build/cmd/nop@sha256:f94e6413749759bc3f80d33e76c36509d6a63f7b206d2ca8fff167a0bb9c77f2 --- apiVersion: v1 data: @@ -307,12 +313,17 @@ spec: - -stderrthreshold - INFO - -creds-image - - gcr.io/knative-releases/github.com/knative/build/cmd/creds-init@sha256:a5eddd139e71e17fed7ba685844607f9fc715823e57a9aa81a815a376deb63eb + - gcr.io/knative-releases/github.com/knative/build/cmd/creds-init@sha256:c1c11fafd337f62eea18a1f02b78e6ae6949779bed72d53d19b2870723a8f104 - -git-image - - gcr.io/knative-releases/github.com/knative/build/cmd/git-init@sha256:0f1b45b2cbb842b51d5499c0235fab759b7550052f12e825d376f4d159ab3634 + - gcr.io/knative-releases/github.com/knative/build/cmd/git-init@sha256:6fa8043ed114920cd61e28db3c942647ba48415fe1208acde2fb2ac0746c9164 - -nop-image - - gcr.io/knative-releases/github.com/knative/build/cmd/nop@sha256:c1a3869762368500dd8b763c8033108f44d7fd490d4ea2ee4564b2b840760324 - image: gcr.io/knative-releases/github.com/knative/build/cmd/controller@sha256:5d12da76b8ba36548a97b07866fdc9c13c1cb0e499dfdcca97af731b1ad2c488 + - gcr.io/knative-releases/github.com/knative/build/cmd/nop@sha256:f94e6413749759bc3f80d33e76c36509d6a63f7b206d2ca8fff167a0bb9c77f2 + env: + - name: SYSTEM_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace + image: gcr.io/knative-releases/github.com/knative/build/cmd/controller@sha256:2667d0ff68a406e0103c58145edef916edc1b41695b38964dc6ccb0b38c0aedf name: build-controller volumeMounts: - mountPath: /etc/config-logging @@ -344,7 +355,12 @@ spec: - -logtostderr - -stderrthreshold - INFO - image: gcr.io/knative-releases/github.com/knative/build/cmd/webhook@sha256:1e63c38c6d653698973bd8c8320d4db2bdcb1b46130b33949f848c67034fe6f8 + env: + - name: SYSTEM_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace + image: gcr.io/knative-releases/github.com/knative/build/cmd/webhook@sha256:58775663a5bc0d782c8505a28cc88616a5e08115959dc62fa07af5ad76c54a97 name: build-webhook volumeMounts: - mountPath: /etc/config-logging diff --git a/vendor/github.com/knative/build/cmd/logs/kodata/LICENSE b/vendor/github.com/knative/build/cmd/logs/kodata/LICENSE new file mode 120000 index 000000000000..5853aaea53bc --- /dev/null +++ b/vendor/github.com/knative/build/cmd/logs/kodata/LICENSE @@ -0,0 +1 @@ +../../../LICENSE \ No newline at end of file diff --git a/vendor/github.com/knative/build/cmd/logs/kodata/VENDOR-LICENSE b/vendor/github.com/knative/build/cmd/logs/kodata/VENDOR-LICENSE new file mode 120000 index 000000000000..3cc897645192 --- /dev/null +++ b/vendor/github.com/knative/build/cmd/logs/kodata/VENDOR-LICENSE @@ -0,0 +1 @@ +../../../third_party/VENDOR-LICENSE \ No newline at end of file diff --git a/vendor/github.com/knative/build/cmd/nop/kodata/LICENSE b/vendor/github.com/knative/build/cmd/nop/kodata/LICENSE new file mode 120000 index 000000000000..5853aaea53bc --- /dev/null +++ b/vendor/github.com/knative/build/cmd/nop/kodata/LICENSE @@ -0,0 +1 @@ +../../../LICENSE \ No newline at end of file diff --git a/vendor/github.com/knative/build/cmd/nop/kodata/VENDOR-LICENSE b/vendor/github.com/knative/build/cmd/nop/kodata/VENDOR-LICENSE new file mode 120000 index 000000000000..3cc897645192 --- /dev/null +++ b/vendor/github.com/knative/build/cmd/nop/kodata/VENDOR-LICENSE @@ -0,0 +1 @@ +../../../third_party/VENDOR-LICENSE \ No newline at end of file diff --git a/vendor/github.com/knative/build/pkg/apis/build/v1alpha1/build_template_types.go b/vendor/github.com/knative/build/pkg/apis/build/v1alpha1/build_template_types.go index 4f4e7b5e3a3b..20d78c03077a 100644 --- a/vendor/github.com/knative/build/pkg/apis/build/v1alpha1/build_template_types.go +++ b/vendor/github.com/knative/build/pkg/apis/build/v1alpha1/build_template_types.go @@ -17,8 +17,6 @@ limitations under the License. package v1alpha1 import ( - "encoding/json" - "github.com/knative/pkg/apis" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -99,15 +97,6 @@ type BuildTemplateList struct { Items []BuildTemplate `json:"items"` } -// GetGeneration returns the generation number of this object. -func (bt *BuildTemplate) GetGeneration() int64 { return bt.Spec.Generation } - -// SetGeneration sets the generation number of this object. -func (bt *BuildTemplate) SetGeneration(generation int64) { bt.Spec.Generation = generation } - -// GetSpecJSON returns the JSON serialization of this build template's Spec. -func (bt *BuildTemplate) GetSpecJSON() ([]byte, error) { return json.Marshal(bt.Spec) } - // TemplateSpec returnes the Spec used by the template func (bt *BuildTemplate) TemplateSpec() BuildTemplateSpec { return bt.Spec diff --git a/vendor/github.com/knative/build/pkg/apis/build/v1alpha1/build_types.go b/vendor/github.com/knative/build/pkg/apis/build/v1alpha1/build_types.go index 0d876c7e59e7..2d484b877ef9 100644 --- a/vendor/github.com/knative/build/pkg/apis/build/v1alpha1/build_types.go +++ b/vendor/github.com/knative/build/pkg/apis/build/v1alpha1/build_types.go @@ -17,8 +17,6 @@ limitations under the License. package v1alpha1 import ( - "encoding/json" - corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime/schema" @@ -284,15 +282,6 @@ func (bs *BuildStatus) SetConditions(conditions duckv1alpha1.Conditions) { bs.Conditions = conditions } -// GetGeneration returns the generation number of this object. -func (b *Build) GetGeneration() int64 { return b.Spec.Generation } - -// SetGeneration sets the generation number of this object. -func (b *Build) SetGeneration(generation int64) { b.Spec.Generation = generation } - -// GetSpecJSON returns the JSON serialization of this build's Spec. -func (b *Build) GetSpecJSON() ([]byte, error) { return json.Marshal(b.Spec) } - func (b *Build) GetGroupVersionKind() schema.GroupVersionKind { return SchemeGroupVersion.WithKind("Build") } diff --git a/vendor/github.com/knative/build/pkg/apis/build/v1alpha1/cluster_build_template_types.go b/vendor/github.com/knative/build/pkg/apis/build/v1alpha1/cluster_build_template_types.go index 4b4c744bcada..604b13371de2 100644 --- a/vendor/github.com/knative/build/pkg/apis/build/v1alpha1/cluster_build_template_types.go +++ b/vendor/github.com/knative/build/pkg/apis/build/v1alpha1/cluster_build_template_types.go @@ -17,8 +17,6 @@ limitations under the License. package v1alpha1 import ( - "encoding/json" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime/schema" @@ -58,15 +56,6 @@ type ClusterBuildTemplateList struct { Items []ClusterBuildTemplate `json:"items"` } -// GetGeneration returns the generation number of this object. -func (bt *ClusterBuildTemplate) GetGeneration() int64 { return bt.Spec.Generation } - -// SetGeneration sets the generation number of this object. -func (bt *ClusterBuildTemplate) SetGeneration(generation int64) { bt.Spec.Generation = generation } - -// GetSpecJSON returns the JSON serialization of this build template's Spec. -func (bt *ClusterBuildTemplate) GetSpecJSON() ([]byte, error) { return json.Marshal(bt.Spec) } - // TemplateSpec returnes the Spec used by the template func (bt *ClusterBuildTemplate) TemplateSpec() BuildTemplateSpec { return bt.Spec diff --git a/vendor/github.com/knative/build/test/panic/kodata/LICENSE b/vendor/github.com/knative/build/test/panic/kodata/LICENSE new file mode 120000 index 000000000000..5853aaea53bc --- /dev/null +++ b/vendor/github.com/knative/build/test/panic/kodata/LICENSE @@ -0,0 +1 @@ +../../../LICENSE \ No newline at end of file diff --git a/vendor/github.com/knative/build/test/panic/kodata/VENDOR-LICENSE b/vendor/github.com/knative/build/test/panic/kodata/VENDOR-LICENSE new file mode 120000 index 000000000000..3cc897645192 --- /dev/null +++ b/vendor/github.com/knative/build/test/panic/kodata/VENDOR-LICENSE @@ -0,0 +1 @@ +../../../third_party/VENDOR-LICENSE \ No newline at end of file diff --git a/vendor/github.com/knative/build/test/workingdir/kodata/LICENSE b/vendor/github.com/knative/build/test/workingdir/kodata/LICENSE new file mode 120000 index 000000000000..5853aaea53bc --- /dev/null +++ b/vendor/github.com/knative/build/test/workingdir/kodata/LICENSE @@ -0,0 +1 @@ +../../../LICENSE \ No newline at end of file diff --git a/vendor/github.com/knative/build/test/workingdir/kodata/VENDOR-LICENSE b/vendor/github.com/knative/build/test/workingdir/kodata/VENDOR-LICENSE new file mode 120000 index 000000000000..3cc897645192 --- /dev/null +++ b/vendor/github.com/knative/build/test/workingdir/kodata/VENDOR-LICENSE @@ -0,0 +1 @@ +../../../third_party/VENDOR-LICENSE \ No newline at end of file