Skip to content

Commit

Permalink
make field required in order to avoid invalid labels (#115)
Browse files Browse the repository at this point in the history
Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>
  • Loading branch information
davidkarlsen committed Aug 12, 2021
1 parent 955c233 commit 32e449d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1alpha1/groupsync_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ type GroupSyncList struct {
type Provider struct {
// Name represents the name of the provider
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Name of the Provider"
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Required
Name string `json:"name"`

*ProviderType `json:",inline"`
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/redhatcop.redhat.io_groupsyncs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,8 @@ spec:
- credentialsSecret
- url
type: object
required:
- name
type: object
type: array
schedule:
Expand Down

0 comments on commit 32e449d

Please sign in to comment.