Skip to content

Commit bde5fe7

Browse files
committed
Move APIService to installer
This commit introduces a change that moves the APIService install logic to the installer.
1 parent a5dd646 commit bde5fe7

File tree

10 files changed

+983
-785
lines changed

10 files changed

+983
-785
lines changed

pkg/api/wrappers/deployment_install_client.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ type InstallStrategyDeploymentInterface interface {
2727
GetServiceAccountByName(serviceAccountName string) (*corev1.ServiceAccount, error)
2828
FindAnyDeploymentsMatchingNames(depNames []string) ([]*appsv1.Deployment, error)
2929
FindAnyDeploymentsMatchingLabels(label labels.Selector) ([]*appsv1.Deployment, error)
30+
GetOpClient() operatorclient.ClientInterface
31+
GetOpLister() operatorlister.OperatorLister
3032
}
3133

3234
type InstallStrategyDeploymentClientForNamespace struct {
@@ -45,6 +47,14 @@ func NewInstallStrategyDeploymentClient(opClient operatorclient.ClientInterface,
4547
}
4648
}
4749

50+
func (c *InstallStrategyDeploymentClientForNamespace) GetOpClient() operatorclient.ClientInterface {
51+
return c.opClient
52+
}
53+
54+
func (c *InstallStrategyDeploymentClientForNamespace) GetOpLister() operatorlister.OperatorLister {
55+
return c.opLister
56+
}
57+
4858
func (c *InstallStrategyDeploymentClientForNamespace) CreateRole(role *rbacv1.Role) (*rbacv1.Role, error) {
4959
return c.opClient.KubernetesInterface().RbacV1().Roles(c.Namespace).Create(role)
5060
}

pkg/api/wrappers/wrappersfakes/fake_install_strategy_deployment_interface.go

Lines changed: 130 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)