argocd

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2023 License: UPL-1.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const ComponentJSONName = common.ArgoCDCompName

ComponentJSONName is the json name of the verrazzano component in CRD

View Source
const ComponentName = common.ArgoCDName

ComponentName is the name of the component

View Source
const ComponentNamespace = constants.ArgoCDNamespace

ComponentNamespace is the namespace of the component

Variables

This section is empty.

Functions

func AppendOverrides

func AppendOverrides(ctx spi.ComponentContext, _ string, _ string, _ string, kvs []bom.KeyValue) ([]bom.KeyValue, error)

AppendOverrides set the ArgoCD overrides for Helm

func ConfigureKeycloakOIDC

func ConfigureKeycloakOIDC(ctx spi.ComponentContext) error

ConfigureKeycloakOIDC +configures Keycloak as OIDC provider for ArgoCD. - Patch argocd-secret with the keycloak client secret. - Patch argocd-cm with the oidc configuration to enable keycloak authentication. - Patch argocd-rbac-cm by providing role admin to verrazzano-admins group

func GetOverrides

func GetOverrides(object runtime.Object) interface{}

GetOverrides returns the install overrides from either v1alpha1 or v1beta1.Verrazzano CR

func GetRootCA

func GetRootCA(ctx spi.ComponentContext) ([]byte, error)

GetRootCA gets the root CA certificate from the Argo CD TLS secret. If the secret does not exist, we return a nil slice.

func NewComponent

func NewComponent() spi.Component

Types

type OIDCConfig

type OIDCConfig struct {
	Name            string   `json:"name"`
	Issuer          string   `json:"issuer"`
	ClientID        string   `json:"clientID"`
	ClientSecret    string   `json:"clientSecret"`
	RequestedScopes []string `json:"requestedScopes"`
	RootCA          string   `json:"rootCA"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL