Skip to content

Commit

Permalink
update schema
Browse files Browse the repository at this point in the history
Signed-off-by: Baiju Muthukadan <[email protected]>
  • Loading branch information
baijum authored and nebhale committed Jul 8, 2021
1 parent bdd494e commit 04b99a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ spec:
kind: # string
name: # string, mutually exclusive with selector
selector: # metav1.LabelSelector, mutually exclusive with name
containers: # []intstr.IntOrString, optional
containers: # []string, optional
service: # Provisioned Service resource ObjectReference-like
apiVersion: # string
Expand Down
3 changes: 1 addition & 2 deletions internal/service.binding/v1alpha2/service_binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package v1alpha2

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"
)

// ServiceBindingApplicationReference defines a subset of corev1.ObjectReference with extensions
Expand All @@ -34,7 +33,7 @@ type ServiceBindingApplicationReference struct {
// Selector is a query that selects the application or applications to bind the service to
Selector metav1.LabelSelector `json:"selector,omitempty"`
// Containers describes which containers in a Pod should be bound to
Containers []intstr.IntOrString `json:"containers,omitempty"`
Containers []string `json:"containers,omitempty"`
}

// ServiceBindingServiceReference defines a subset of corev1.ObjectReference
Expand Down
5 changes: 1 addition & 4 deletions service.binding_servicebindings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ spec:
containers:
description: Containers describes which containers in a Pod should be bound to
items:
anyOf:
- type: integer
- type: string
x-kubernetes-int-or-string: true
type: string
type: array
kind:
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
Expand Down

0 comments on commit 04b99a3

Please sign in to comment.