Documentation ¶
Index ¶
- Constants
- Variables
- func AnnotationsForPod() map[string]string
- func Contains(s []corev1.LocalObjectReference, e corev1.LocalObjectReference) bool
- func GetAPISecretToken(instance *operatorv1alpha1.IBMLicensingHub) *corev1.Secret
- func GetDatabaseContainer(spec operatorv1alpha1.IBMLicensingHubSpec, ...) corev1.Container
- func GetDatabaseSecret(instance *operatorv1alpha1.IBMLicensingHub) *corev1.Secret
- func GetLicensingDeployment(instance *operatorv1alpha1.IBMLicensingHub) *appsv1.Deployment
- func GetLicensingRole(instance *operatorv1alpha1.IBMLicensingHub) *rbacv1.Role
- func GetLicensingRoleBinding(instance *operatorv1alpha1.IBMLicensingHub) *rbacv1.RoleBinding
- func GetLicensingRoute(instance *operatorv1alpha1.IBMLicensingHub) *routev1.Route
- func GetLicensingServiceAccount(instance *operatorv1alpha1.IBMLicensingHub) *corev1.ServiceAccount
- func GetPersistenceVolumeClaim(instance *operatorv1alpha1.IBMLicensingHub) *corev1.PersistentVolumeClaim
- func GetReceiverContainer(spec operatorv1alpha1.IBMLicensingHubSpec, ...) corev1.Container
- func GetReceiverService(instance *operatorv1alpha1.IBMLicensingHub) *corev1.Service
- func GetResourceName(instance *operatorv1alpha1.IBMLicensingHub) string
- func GetServiceAccountName(instance *operatorv1alpha1.IBMLicensingHub) string
- func LabelsForLicensingHubMeta(instance *operatorv1alpha1.IBMLicensingHub) map[string]string
- func LabelsForLicensingHubPod(instance *operatorv1alpha1.IBMLicensingHub) map[string]string
- func LabelsForLicensingHubSelector(instance *operatorv1alpha1.IBMLicensingHub) map[string]string
- func RandString(length int) string
Constants ¶
View Source
const APISecretTokenKeyName = "token"
View Source
const APISecretTokenVolumeName = "api-token"
View Source
const DatabaseConfigSecretName = "license-service-hub-db-config"
View Source
const DatabaseContainerName = "database"
View Source
const DatabaseMountPoint = "/var/lib/postgresql/data"
View Source
const DatabaseName = "postgres"
View Source
const DatabaseUser = "postgres"
View Source
const DefaultDatabaseImage = "quay.io/opencloudio/ibm-license-advisor-db:1.2.0"
View Source
const DefaultReceiverImage = "quay.io/opencloudio/ibm-license-advisor-receiver:1.2.0"
View Source
const LicensingHubComponentName = "ibm-licensing-hub-service-svc"
View Source
const LicensingHubReleaseName = "ibm-licensing-hub-service"
View Source
const LicensingHubResourceBase = "ibm-licensing-hub-service"
View Source
const LicensingProductID = "068a62892a1e4db39641342e592daa25"
View Source
const LicensingProductMetric = "FREE"
View Source
const LicensingProductName = "IBM Cloud Platform Common Services"
Important product values needed for annotations
View Source
const LicensingProductVersion = "3.4.0"
View Source
const PersistenceVolumeClaimName = "licensing-hub-pvc"
View Source
const PgData = DatabaseMountPoint + "/pgdata"
View Source
const PostgresDatabaseNameKey = "POSTGRES_DATABASE_NAME"
View Source
const PostgresPasswordKey = "POSTGRES_PASSWORD" // #nosec
View Source
const PostgresPgDataKey = "POSTGRES_PGDATA"
View Source
const PostgresUserKey = "POSTGRES_USER"
View Source
const ReceiverContainerName = "receiver"
View Source
const ReceiverPort = 8080
Variables ¶
View Source
var FalseVar = false
View Source
var TrueVar = true
Functions ¶
func AnnotationsForPod ¶
func Contains ¶
func Contains(s []corev1.LocalObjectReference, e corev1.LocalObjectReference) bool
func GetAPISecretToken ¶
func GetAPISecretToken(instance *operatorv1alpha1.IBMLicensingHub) *corev1.Secret
func GetDatabaseContainer ¶
func GetDatabaseContainer(spec operatorv1alpha1.IBMLicensingHubSpec, instance *operatorv1alpha1.IBMLicensingHub) corev1.Container
func GetDatabaseSecret ¶
func GetDatabaseSecret(instance *operatorv1alpha1.IBMLicensingHub) *corev1.Secret
func GetLicensingDeployment ¶
func GetLicensingDeployment(instance *operatorv1alpha1.IBMLicensingHub) *appsv1.Deployment
func GetLicensingRole ¶
func GetLicensingRole(instance *operatorv1alpha1.IBMLicensingHub) *rbacv1.Role
func GetLicensingRoleBinding ¶
func GetLicensingRoleBinding(instance *operatorv1alpha1.IBMLicensingHub) *rbacv1.RoleBinding
func GetLicensingRoute ¶
func GetLicensingRoute(instance *operatorv1alpha1.IBMLicensingHub) *routev1.Route
func GetLicensingServiceAccount ¶
func GetLicensingServiceAccount(instance *operatorv1alpha1.IBMLicensingHub) *corev1.ServiceAccount
func GetPersistenceVolumeClaim ¶
func GetPersistenceVolumeClaim(instance *operatorv1alpha1.IBMLicensingHub) *corev1.PersistentVolumeClaim
func GetReceiverContainer ¶
func GetReceiverContainer(spec operatorv1alpha1.IBMLicensingHubSpec, instance *operatorv1alpha1.IBMLicensingHub) corev1.Container
func GetReceiverService ¶
func GetReceiverService(instance *operatorv1alpha1.IBMLicensingHub) *corev1.Service
func GetResourceName ¶
func GetResourceName(instance *operatorv1alpha1.IBMLicensingHub) string
func GetServiceAccountName ¶
func GetServiceAccountName(instance *operatorv1alpha1.IBMLicensingHub) string
func LabelsForLicensingHubMeta ¶
func LabelsForLicensingHubMeta(instance *operatorv1alpha1.IBMLicensingHub) map[string]string
func LabelsForLicensingHubPod ¶
func LabelsForLicensingHubPod(instance *operatorv1alpha1.IBMLicensingHub) map[string]string
func LabelsForLicensingHubSelector ¶
func LabelsForLicensingHubSelector(instance *operatorv1alpha1.IBMLicensingHub) map[string]string
func RandString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.