converter

package
v1.44.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ConfigMapAppPropsFileName ...
	ConfigMapAppPropsFileName = "application.properties"
)

Variables

This section is empty.

Functions

func CreateConfigMapFromFile

func CreateConfigMapFromFile(cli *client.Client, name, project string, flags *flag.ConfigFlags) (cmName string, err error)

CreateConfigMapFromFile creates the custom ConfigMap based in the configuration file given in the flags parameter. Does nothing if the config file path is empty

func FromArgsToBinaryBuildType

func FromArgsToBinaryBuildType(resourceType flag.ResourceType, runtime api.RuntimeType, native bool, legacy bool) flag.BinaryBuildType

FromArgsToBinaryBuildType determines what kind of binary build the user is creating based on their passed arguments.

func FromArgsToNative

func FromArgsToNative(nativeFlag bool, resourceType flag.ResourceType, resource string) (bool, error)

FromArgsToNative determines whether the build should be native based on arguments

func FromArgsToRuntimeType

func FromArgsToRuntimeType(flags *flag.RuntimeTypeFlags, resourceType flag.ResourceType, resource string) (api.RuntimeType, error)

FromArgsToRuntimeType determines what the runtime is based on arguments

func FromArtifactFlagsToArtifact

func FromArtifactFlagsToArtifact(flags *flag.ArtifactFlags) v1beta1.Artifact

FromArtifactFlagsToArtifact converts given ArtifactFlags into Artifact

func FromConfigFlagsToMap

func FromConfigFlagsToMap(flag *flag.ConfigFlags) map[string]string

FromConfigFlagsToMap converts a config flag in the format of key=value pairs to map

func FromGitSourceFlagsToGitSource

func FromGitSourceFlagsToGitSource(flags *flag.GitSourceFlags) v1beta1.GitSource

FromGitSourceFlagsToGitSource converts given GitSourceFlags into GitSource

func FromInfraResourceFlagsToResource

func FromInfraResourceFlagsToResource(flags *flag.InfraResourceFlags) *v1beta1.InfraResource

FromInfraResourceFlagsToResource converts given InfraResourceFlags into InfraResource

func FromMonitoringFlagToMonitoring

func FromMonitoringFlagToMonitoring(monitoringFlags *flag.MonitoringFlags) v1beta1.Monitoring

FromMonitoringFlagToMonitoring converts given MonitoringFlags into Monitoring

func FromPodResourceFlagsToResourceRequirement

func FromPodResourceFlagsToResourceRequirement(flags *flag.PodResourceFlags) corev1.ResourceRequirements

FromPodResourceFlagsToResourceRequirement converts given PodResourceFlags into ResourceRequirements

func FromProbeFlagToKogitoProbe

func FromProbeFlagToKogitoProbe(flags *flag.ProbeFlags) v1beta1.KogitoProbe

FromProbeFlagToKogitoProbe converts given ProbeFlags into KogitoProbe

func FromPropertiesFlagToStringMap

func FromPropertiesFlagToStringMap(propertiesFlags *flag.PropertiesFlag) map[string]string

FromPropertiesFlagToStringMap converts a properties flags in the format of key=value properties to a map[key]=value

func FromResourceTypeToKogitoBuildType

func FromResourceTypeToKogitoBuildType(resourceType flag.ResourceType) api.KogitoBuildType

FromResourceTypeToKogitoBuildType converts given ResourceType into KogitoBuildType

func FromRuntimeFlagsToRuntimeType

func FromRuntimeFlagsToRuntimeType(flags *flag.RuntimeTypeFlags) api.RuntimeType

FromRuntimeFlagsToRuntimeType converts given RuntimeTypeFlags into RuntimeType

func FromStringArrayToEnvs

func FromStringArrayToEnvs(keyPairStrings []string, secretKeyPairStrings []string) (envVars []v1.EnvVar)

FromStringArrayToEnvs converts a string array in the format of key=value pairs to the required type for the Kubernetes EnvVar type

func FromStringArrayToResources

func FromStringArrayToResources(strings []string) corev1.ResourceList

FromStringArrayToResources ...

func FromWebHookFlagsToWebHookSecret

func FromWebHookFlagsToWebHookSecret(flags *flag.WebHookFlags) (webHooks []v1beta1.WebHookSecret)

FromWebHookFlagsToWebHookSecret converts given WebHookFlags into WebHookSecret

func ToQuarkusLegacyJarType

func ToQuarkusLegacyJarType(resourceType flag.ResourceType, resource string) (bool, error)

ToQuarkusLegacyJarType determines what the type of quarkus jar is based on resources

Types

This section is empty.

Jump to

Keyboard shortcuts

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