Documentation ¶
Overview ¶
Copyright (c) 2012-2019 Red Hat, Inc. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Red Hat, Inc. - initial API and implementation
Copyright (c) 2020-2020 Red Hat, Inc. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Red Hat, Inc. - initial API and implementation
Copyright (c) 2020-2020 Red Hat, Inc. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Red Hat, Inc. - initial API and implementation
Index ¶
- func GetGitHubIdentityProviderCreateCommand(deployContext *deploy.DeployContext) (string, error)
- func GetIdentityProviderDeleteCommand(cr *v1.CheCluster, identityProvider string) (string, error)
- func GetKeycloakProvisionCommand(cr *v1.CheCluster) (command string, err error)
- func GetOpenShiftIdentityProviderProvisionCommand(cr *v1.CheCluster, oAuthClientName string, oauthSecret string) (string, error)
- func GetPostgresProvisionCommand(identityProviderPostgresPassword string) (command string)
- func GetSpecKeycloakDeployment(deployContext *deploy.DeployContext, clusterDeployment *appsv1.Deployment) (*appsv1.Deployment, error)
- func ProvisionKeycloakResources(deployContext *deploy.DeployContext) error
- func SyncGitHubOAuth(deployContext *deploy.DeployContext) (bool, error)
- func SyncIdentityProviderToCluster(deployContext *deploy.DeployContext) (bool, error)
- func SyncKeycloakDeploymentToCluster(deployContext *deploy.DeployContext) (bool, error)
- func SyncOpenShiftIdentityProviderItems(deployContext *deploy.DeployContext) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGitHubIdentityProviderCreateCommand ¶
func GetGitHubIdentityProviderCreateCommand(deployContext *deploy.DeployContext) (string, error)
func GetIdentityProviderDeleteCommand ¶
func GetIdentityProviderDeleteCommand(cr *v1.CheCluster, identityProvider string) (string, error)
func GetKeycloakProvisionCommand ¶
func GetKeycloakProvisionCommand(cr *v1.CheCluster) (command string, err error)
func GetSpecKeycloakDeployment ¶
func GetSpecKeycloakDeployment( deployContext *deploy.DeployContext, clusterDeployment *appsv1.Deployment) (*appsv1.Deployment, error)
func ProvisionKeycloakResources ¶
func ProvisionKeycloakResources(deployContext *deploy.DeployContext) error
func SyncGitHubOAuth ¶
func SyncGitHubOAuth(deployContext *deploy.DeployContext) (bool, error)
SyncGitHubOAuth provisions GitHub OAuth if secret with annotation `che.eclipse.org/github-oauth-credentials=true` or `che.eclipse.org/oauth-scm-configuration=github` is mounted into a container
func SyncIdentityProviderToCluster ¶
func SyncIdentityProviderToCluster(deployContext *deploy.DeployContext) (bool, error)
SyncIdentityProviderToCluster instantiates the identity provider (Keycloak) in the cluster. Returns true if the provisioning is complete, false if requeue of the reconcile request is needed.
func SyncKeycloakDeploymentToCluster ¶
func SyncKeycloakDeploymentToCluster(deployContext *deploy.DeployContext) (bool, error)
func SyncOpenShiftIdentityProviderItems ¶
func SyncOpenShiftIdentityProviderItems(deployContext *deploy.DeployContext) (bool, error)
Types ¶
This section is empty.