Skip to content

Commit

Permalink
serve flow v1 API
Browse files Browse the repository at this point in the history
  • Loading branch information
lionelvillard committed Jun 26, 2020
1 parent 855c005 commit 513341d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 23 deletions.
16 changes: 0 additions & 16 deletions cmd/webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ func NewConversionController(ctx context.Context, cmw configmap.Watcher) *contro
}

var (
<<<<<<< HEAD
eventingv1beta1_ = eventingv1beta1.SchemeGroupVersion.Version
eventingv1_ = eventingv1.SchemeGroupVersion.Version
messagingv1beta1_ = messagingv1beta1.SchemeGroupVersion.Version
Expand All @@ -236,14 +235,6 @@ func NewConversionController(ctx context.Context, cmw configmap.Watcher) *contro
flowsv1_ = flowsv1.SchemeGroupVersion.Version
sourcesv1alpha1_ = sourcesv1alpha1.SchemeGroupVersion.Version
sourcesv1alpha2_ = sourcesv1alpha2.SchemeGroupVersion.Version
=======
eventingv1beta1_ = eventingv1beta1.SchemeGroupVersion.Version
eventingv1_ = eventingv1.SchemeGroupVersion.Version
flowsv1beta1_ = flowsv1beta1.SchemeGroupVersion.Version
flowsv1_ = flowsv1.SchemeGroupVersion.Version
sourcesv1alpha1_ = sourcesv1alpha1.SchemeGroupVersion.Version
sourcesv1alpha2_ = sourcesv1alpha2.SchemeGroupVersion.Version
>>>>>>> v1 <-> v1beta1 flow conversion webhook
)

return conversion.NewConversionController(ctx,
Expand All @@ -269,7 +260,6 @@ func NewConversionController(ctx context.Context, cmw configmap.Watcher) *contro
eventingv1_: &eventingv1.Broker{},
},
},
<<<<<<< HEAD

// Messaging
messagingv1.Kind("Channel"): {
Expand All @@ -281,8 +271,6 @@ func NewConversionController(ctx context.Context, cmw configmap.Watcher) *contro
},
},

=======
>>>>>>> v1 <-> v1beta1 flow conversion webhook
// flows
flowsv1.Kind("Sequence"): {
DefinitionName: flows.SequenceResource.String(),
Expand All @@ -300,10 +288,6 @@ func NewConversionController(ctx context.Context, cmw configmap.Watcher) *contro
flowsv1_: &flowsv1.Parallel{},
},
},
<<<<<<< HEAD

=======
>>>>>>> v1 <-> v1beta1 flow conversion webhook
// Sources
sourcesv1alpha2.Kind("ApiServerSource"): {
DefinitionName: sources.ApiServerSourceResource.String(),
Expand Down
7 changes: 3 additions & 4 deletions config/core/resources/parallel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@ spec:
type: date
JSONPath: .metadata.creationTimestamp
versions:
- name: v1alpha1
served: false
storage: false
- name: v1beta1
served: true
storage: true

- name: v1
served: true
storage: false
6 changes: 3 additions & 3 deletions config/core/resources/sequence.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ spec:
type: date
JSONPath: .metadata.creationTimestamp
versions:
- name: v1alpha1
served: false
storage: false
- name: v1beta1
served: true
storage: true
- name: v1
served: true
storage: false

0 comments on commit 513341d

Please sign in to comment.