Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xdonggao committed May 21, 2021
1 parent 57f88ea commit 45146d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ type Storage struct {

// NewStorage returns a Storage object that will work against namespace sets.
func NewStorage(optsGetter genericregistry.RESTOptionsGetter, platformClient platforminternalclient.PlatformInterface, privilegedUsername string) *Storage {
strategy := clusterAuthentication.NewStrategy(platformClient)
strategy := clusterauthentications.NewStrategy(platformClient)
store := &registry.Store{
NewFunc: func() runtime.Object { return &platform.ClusterAuthentication{} },
NewListFunc: func() runtime.Object { return &platform.ClusterAuthenticationList{} },
DefaultQualifiedResource: platform.Resource("clusterauthentications"),
PredicateFunc: clusterAuthentication.MatchClusterAuthentication,
PredicateFunc: clusterauthentications.MatchClusterAuthentication,

CreateStrategy: strategy,
UpdateStrategy: strategy,
Expand All @@ -54,7 +54,7 @@ func NewStorage(optsGetter genericregistry.RESTOptionsGetter, platformClient pla
}
options := &genericregistry.StoreOptions{
RESTOptions: optsGetter,
AttrFunc: clusterAuthentication.GetAttrs,
AttrFunc: clusterauthentications.GetAttrs,
}

if err := store.CompleteWithOptions(options); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/platform/registry/clusterauthentications/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations under the License.
*/

package clusterAuthentication
package clusterauthentications

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion pkg/platform/registry/clusterauthentications/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations under the License.
*/

package clusterAuthentication
package clusterauthentications

import (
apiMachineryValidation "k8s.io/apimachinery/pkg/api/validation"
Expand Down

0 comments on commit 45146d3

Please sign in to comment.