Skip to content

Commit

Permalink
ClusterOperator: Rename kubernetesClient to openShiftClient
Browse files Browse the repository at this point in the history
`kubernetesClient` function actually provide the openshiftClient.
Because this client doesn't have any core k8s methods like `AppsV1`,
`CoreV1` ..etc. and took me some time to figure out what's going
on.
  • Loading branch information
praveenkumar committed Apr 14, 2023
1 parent e0966a1 commit eb15bff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/crc/cluster/clusteroperator.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (status *Status) IsReady() bool {
}

func GetClusterOperatorsStatus(ctx context.Context, ip string, kubeconfigFilePath string) (*Status, error) {
lister, err := kubernetesClient(ip, kubeconfigFilePath)
lister, err := openshiftClient(ip, kubeconfigFilePath)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -158,7 +158,7 @@ type operatorLister interface {
List(ctx context.Context, opts metav1.ListOptions) (*openshiftapi.ClusterOperatorList, error)
}

func kubernetesClient(ip string, kubeconfigFilePath string) (*clientset.Clientset, error) {
func openshiftClient(ip string, kubeconfigFilePath string) (*clientset.Clientset, error) {
config, err := kubernetesClientConfiguration(ip, kubeconfigFilePath)
if err != nil {
return nil, err
Expand Down

0 comments on commit eb15bff

Please sign in to comment.