Skip to content

Commit

Permalink
Change apiversion for destination policies sample in bookinfo (istio#…
Browse files Browse the repository at this point in the history
…4734)

Automatic merge from submit-queue.

Change apiversion for destination policies sample in bookinfo

In Bookinfo sample, there is an example of definition of a DestinationPolicy (`/samples/bookinfo/kube/destination-policy-reviews.yaml`). 

When creating it into a Open Shift cluster using:

`oc create -f samples/bookinfo/kube/destination-policy-reviews.yaml`

it prompts the following error:

> Error from server (BadRequest): error when creating "samples/bookinfo/kube/destination-policy-reviews.yaml": the API version in the data (config.istio.io/v1beta1) does not match the expected API version (config.istio.io/v1alpha2)

Changing the DestinationPolicy apiVersion from `v1beta1` to `v1alpha2` just fix this issue.
  • Loading branch information
xeviknal authored and istio-merge-robot committed Apr 4, 2018
1 parent fcd076b commit 01aaffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/bookinfo/kube/destination-policy-reviews.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: config.istio.io/v1beta1
apiVersion: config.istio.io/v1alpha2
kind: DestinationPolicy
metadata:
name: reviews-random
Expand Down

0 comments on commit 01aaffb

Please sign in to comment.