Documentation ¶
Index ¶
- Constants
- func APIEndpoint(getter LabelsGetter, base string) string
- func APISecretName(getter LabelsGetter) string
- func AppUserConfigMapName(appSpec AppSpec) string
- func AppUserSecretName(appSpec AppSpec) string
- func CertConfigCertOperatorVersion(cr v1alpha1.CertConfig) string
- func CertConfigName(getter LabelsGetter, name string) string
- func CertDefaultAltNames(clusterDomain string) []string
- func ClusterConfigMapName(getter LabelsGetter) string
- func ClusterID(getter LabelsGetter) string
- func DNSIP(clusterIPRange string) (string, error)
- func G8sControlPlaneReplicas(cr infrastructurev1alpha3.G8sControlPlane) int
- func IsDeleted(getter DeletionTimestampGetter) bool
- func IsInvalidConfig(err error) bool
- func IsNotFound(err error) bool
- func IsWrongTypeError(err error) bool
- func KubeConfigClusterName(getter LabelsGetter) string
- func KubeConfigEndpoint(getter LabelsGetter, base string) string
- func KubeConfigSecretName(getter LabelsGetter) string
- func MachineDeployment(getter LabelsGetter) string
- func ObjRefFromCluster(cl apiv1alpha3.Cluster) corev1.ObjectReference
- func ObjRefFromG8sControlPlane(cp infrastructurev1alpha3.G8sControlPlane) corev1.ObjectReference
- func ObjRefFromMachineDeployment(md apiv1alpha3.MachineDeployment) corev1.ObjectReference
- func ObjRefToNamespacedName(ref corev1.ObjectReference) types.NamespacedName
- func OperatorVersion(getter LabelsGetter) string
- func OrganizationID(getter LabelsGetter) string
- func ReleaseName(releaseVersion string) string
- func ReleaseVersion(getter LabelsGetter) string
- func TenantEndpoint(getter LabelsGetter, base string) string
- func ToCluster(v interface{}) (apiv1alpha3.Cluster, error)
- func ToG8sControlPlane(v interface{}) (infrastructurev1alpha3.G8sControlPlane, error)
- func ToMachineDeployment(v interface{}) (apiv1alpha3.MachineDeployment, error)
- type AppSpec
- type DeletionTimestampGetter
- type LabelsGetter
Constants ¶
View Source
const ( IRSAAppName = "aws-pod-identity-webhook" IRSAAppCatalog = "default" IRSAAppVersion = "0.3.1" )
View Source
const (
LocalhostIP = "127.0.0.1"
)
Variables ¶
This section is empty.
Functions ¶
func APIEndpoint ¶
func APIEndpoint(getter LabelsGetter, base string) string
func APISecretName ¶ added in v3.11.0
func APISecretName(getter LabelsGetter) string
func AppUserConfigMapName ¶
AppUserConfigMapName returns the name of the user values configmap for the given app spec.
func AppUserSecretName ¶
AppUserSecretName returns the name of the user values secret for the given app spec.
func CertConfigCertOperatorVersion ¶
func CertConfigCertOperatorVersion(cr v1alpha1.CertConfig) string
CertConfigCertOperatorVersion returns version bundle version for given CertConfig.
func CertConfigName ¶
func CertConfigName(getter LabelsGetter, name string) string
CertConfigName constructs a name for CertConfig CRs using the clusterI D and the cert name.
func CertDefaultAltNames ¶
CertDefaultAltNames returns default alt names for Kubernetes API certs.
func ClusterConfigMapName ¶
func ClusterConfigMapName(getter LabelsGetter) string
ClusterConfigMapName returns the cluster name used in the configMap generated for this tenant cluster.
func ClusterID ¶
func ClusterID(getter LabelsGetter) string
func G8sControlPlaneReplicas ¶
func G8sControlPlaneReplicas(cr infrastructurev1alpha3.G8sControlPlane) int
func IsDeleted ¶
func IsDeleted(getter DeletionTimestampGetter) bool
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsWrongTypeError ¶
IsWrongTypeError asserts wrongTypeError.
func KubeConfigClusterName ¶
func KubeConfigClusterName(getter LabelsGetter) string
func KubeConfigEndpoint ¶
func KubeConfigEndpoint(getter LabelsGetter, base string) string
func KubeConfigSecretName ¶
func KubeConfigSecretName(getter LabelsGetter) string
func MachineDeployment ¶
func MachineDeployment(getter LabelsGetter) string
func ObjRefFromCluster ¶
func ObjRefFromCluster(cl apiv1alpha3.Cluster) corev1.ObjectReference
func ObjRefFromG8sControlPlane ¶
func ObjRefFromG8sControlPlane(cp infrastructurev1alpha3.G8sControlPlane) corev1.ObjectReference
func ObjRefFromMachineDeployment ¶
func ObjRefFromMachineDeployment(md apiv1alpha3.MachineDeployment) corev1.ObjectReference
func ObjRefToNamespacedName ¶
func ObjRefToNamespacedName(ref corev1.ObjectReference) types.NamespacedName
func OperatorVersion ¶
func OperatorVersion(getter LabelsGetter) string
func OrganizationID ¶
func OrganizationID(getter LabelsGetter) string
func ReleaseName ¶
func ReleaseVersion ¶
func ReleaseVersion(getter LabelsGetter) string
func TenantEndpoint ¶
func TenantEndpoint(getter LabelsGetter, base string) string
func ToCluster ¶
func ToCluster(v interface{}) (apiv1alpha3.Cluster, error)
func ToG8sControlPlane ¶
func ToG8sControlPlane(v interface{}) (infrastructurev1alpha3.G8sControlPlane, error)
func ToMachineDeployment ¶
func ToMachineDeployment(v interface{}) (apiv1alpha3.MachineDeployment, error)
Types ¶
type AppSpec ¶
type AppSpec struct { App string AppName string Catalog string Chart string // Whether app is installed for clusterapi clusters only. ClusterAPIOnly bool // ConfigMapName overrides the name, otherwise the cluster values configmap // is used. ConfigMapName string // InCluster determines if the app CR should use in cluster. Otherwise the // cluster kubeconfig is specified. InCluster bool // Whether app is installed for legacy clusters only. LegacyOnly bool Namespace string UseUpgradeForce bool Version string }
AppSpec is used to define app custom resources.
type DeletionTimestampGetter ¶
type LabelsGetter ¶
Click to show internal directories.
Click to hide internal directories.