Skip to content

Commit

Permalink
k8s: Fix variable name of CLRP CRD
Browse files Browse the repository at this point in the history
This is a cosmetic change.

Signed-off-by: Chris Tarazi <chris@isovalent.com>
  • Loading branch information
christarazi authored and aanm committed Oct 15, 2020
1 parent 1e13ef0 commit a18159b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/k8s/apis/cilium.io/v2/client/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ const (
// CNCRDName is the full name of the CN CRD.
CNCRDName = k8sconstv2.CNKindDefinition + "/" + k8sconstv2.CustomResourceDefinitionVersion

// CLRPCRDNAME is the full name of the CLRP CRD.
CLRPCRDNAME = k8sconstv2.CLRPKindDefinition + "/" + k8sconstv2.CustomResourceDefinitionVersion
// CLRPCRDName is the full name of the CLRP CRD.
CLRPCRDName = k8sconstv2.CLRPKindDefinition + "/" + k8sconstv2.CustomResourceDefinitionVersion

// CCLRPCRDNAME is the full name of the CCLRP CRD.
CCLRPCRDNAME = k8sconstv2.CCLRPKindDefinition + "/" + k8sconstv2.CustomResourceDefinitionVersion
Expand Down Expand Up @@ -132,7 +132,7 @@ func GetPregeneratedCRD(crdName string) apiextensionsv1.CustomResourceDefinition
crdBytes, err = examplesCrdsCiliumidentitiesYamlBytes()
case CNCRDName:
crdBytes, err = examplesCrdsCiliumnodesYamlBytes()
case CLRPCRDNAME:
case CLRPCRDName:
crdBytes, err = examplesCrdsCiliumlocalredirectpoliciesYamlBytes()
case CCLRPCRDNAME:
crdBytes, err = examplesCrdsCiliumclusterwidelocalredirectpoliciesYamlBytes()
Expand Down Expand Up @@ -219,11 +219,11 @@ func createIdentityCRD(clientset apiextensionsclient.Interface) error {
}

func createCLRPCRD(clientset apiextensionsclient.Interface) error {
cLrpCRD := GetPregeneratedCRD(CLRPCRDNAME)
cLrpCRD := GetPregeneratedCRD(CLRPCRDName)

return createUpdateCRD(
clientset,
CLRPCRDNAME,
CLRPCRDName,
constructV1CRD(k8sconstv2.CLRPName, cLrpCRD),
newDefaultPoller(),
)
Expand Down

0 comments on commit a18159b

Please sign in to comment.