This repository has been archived by the owner on May 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 382
Tests for filter.go and comments in types.go #2055
Merged
MHBauer
merged 9 commits into
kubernetes-retired:master
from
teaguecole:salvage/1986/PR2021
May 23, 2018
Merged
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9af2f10
fetched upstream
beaef9d
Merge branch 'master' of github.com:kubernetes-incubator/service-catalog
04c321f
added tests and comments
7ccb721
spelling
4d6f1e5
updated types.go name
84c3e11
fixed filter cluster servce class and service class name
d9551c4
fixed tests
7f5e1f7
scotts comments 5/21
447debe
go fmt v1beta/types.go
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,11 +165,13 @@ type CommonServiceBrokerSpec struct { | |
// | ||
// ServiceClass allowed property names: | ||
// name - the value set to [Cluster]ServiceClass.Name | ||
// externalName - the value set to [Cluster]ServiceClass.Spec.ExternalName | ||
// | ||
// spec.externalName - the value set to [Cluster]ServiceClass.Spec.ExternalName | ||
// spec.externalID - the value set to [Cluster]ServiceClass.Spec.ExternalID | ||
// ServicePlan allowed property names: | ||
// name - the value set to [Cluster]ServiceClass.Name | ||
// externalName - the value set to [Cluster]ServiceClass.Spec.ExternalName | ||
// name - the value set to [Cluster]ServicePlan.Name | ||
// spec.externalName - the value set to [Cluster]ServicePlan.Spec.ExternalName | ||
// spec.externalID - the value set to [Cluster]ServicePlan.Spec.ExternalID | ||
// spec.serviceClassName - the value set to [Cluster]ServicePlan.Spec.ServiceClassRef.Name | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please change this line to:
|
||
type CatalogRestrictions struct { | ||
// ServiceClass represents a selector for plans, used to filter catalog re-lists. | ||
ServiceClass []string `json:"serviceClass,omitempty"` | ||
|
@@ -1314,9 +1316,9 @@ const ( | |
// SpecServiceBrokerName is used for ServiceClasses, the parent service broker name. | ||
FilterSpecServiceBrokerName = "spec.serviceBrokerName" | ||
// SpecClusterServiceClassName is only used for plans, the parent service class name. | ||
FilterSpecClusterServiceClassName = "spec.clusterServiceClass.name" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please undo this change |
||
FilterSpecClusterServiceClassName = "spec.clusterServiceClassName" | ||
// SpecServiceClassName is only used for plans, the parent service class name. | ||
FilterSpecServiceClassName = "spec.serviceClass.name" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And undo this change. |
||
FilterSpecServiceClassName = "spec.serviceClassName" | ||
) | ||
|
||
// SecretTransform is a single transformation that is applied to the | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comments apply to here from the other types file