Skip to content

Commit

Permalink
rekt now create v1 PingSource objects
Browse files Browse the repository at this point in the history
  • Loading branch information
lionelvillard committed May 11, 2021
1 parent cf8af7f commit 2670aad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/rekt/resources/pingsource/pingsource.go
Expand Up @@ -29,7 +29,7 @@ import (
)

func Gvr() schema.GroupVersionResource {
return schema.GroupVersionResource{Group: "sources.knative.dev", Version: "v1beta2", Resource: "pingsources"}
return schema.GroupVersionResource{Group: "sources.knative.dev", Version: "v1", Resource: "pingsources"}
}

// Install will create a Broker resource, augmented with the config fn options.
Expand Down
2 changes: 1 addition & 1 deletion test/rekt/resources/pingsource/pingsource.yaml
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: sources.knative.dev/v1beta2
apiVersion: sources.knative.dev/v1
kind: PingSource
metadata:
name: {{ .name }}
Expand Down
6 changes: 3 additions & 3 deletions test/rekt/resources/pingsource/pingsource_test.go
Expand Up @@ -40,7 +40,7 @@ func Example_min() {

manifest.OutputYAML(os.Stdout, files)
// Output:
// apiVersion: sources.knative.dev/v1beta2
// apiVersion: sources.knative.dev/v1
// kind: PingSource
// metadata:
// name: foo
Expand Down Expand Up @@ -74,7 +74,7 @@ func Example_full() {

manifest.OutputYAML(os.Stdout, files)
// Output:
// apiVersion: sources.knative.dev/v1beta2
// apiVersion: sources.knative.dev/v1
// kind: PingSource
// metadata:
// name: foo
Expand Down Expand Up @@ -118,7 +118,7 @@ func Example_fullbase64() {

manifest.OutputYAML(os.Stdout, files)
// Output:
// apiVersion: sources.knative.dev/v1beta2
// apiVersion: sources.knative.dev/v1
// kind: PingSource
// metadata:
// name: foo
Expand Down

0 comments on commit 2670aad

Please sign in to comment.