Documentation ¶
Index ¶
- Constants
- func CreateConfigMapFromFile(cli *client.Client, name, project string, flags *flag.ConfigFlags) (cmName string, err error)
- func FromArgsToBinaryBuildType(resourceType flag.ResourceType, runtime api.RuntimeType, native bool, ...) flag.BinaryBuildType
- func FromArgsToNative(nativeFlag bool, resourceType flag.ResourceType, resource string) (bool, error)
- func FromArgsToRuntimeType(flags *flag.RuntimeTypeFlags, resourceType flag.ResourceType, resource string) (api.RuntimeType, error)
- func FromArtifactFlagsToArtifact(flags *flag.ArtifactFlags) v1beta1.Artifact
- func FromConfigFlagsToMap(flag *flag.ConfigFlags) map[string]string
- func FromGitSourceFlagsToGitSource(flags *flag.GitSourceFlags) v1beta1.GitSource
- func FromInfraResourceFlagsToResource(flags *flag.InfraResourceFlags) *v1beta1.InfraResource
- func FromMonitoringFlagToMonitoring(monitoringFlags *flag.MonitoringFlags) v1beta1.Monitoring
- func FromPodResourceFlagsToResourceRequirement(flags *flag.PodResourceFlags) corev1.ResourceRequirements
- func FromProbeFlagToKogitoProbe(flags *flag.ProbeFlags) v1beta1.KogitoProbe
- func FromPropertiesFlagToStringMap(propertiesFlags *flag.PropertiesFlag) map[string]string
- func FromResourceTypeToKogitoBuildType(resourceType flag.ResourceType) api.KogitoBuildType
- func FromRuntimeFlagsToRuntimeType(flags *flag.RuntimeTypeFlags) api.RuntimeType
- func FromStringArrayToEnvs(keyPairStrings []string, secretKeyPairStrings []string) (envVars []v1.EnvVar)
- func FromStringArrayToResources(strings []string) corev1.ResourceList
- func FromWebHookFlagsToWebHookSecret(flags *flag.WebHookFlags) (webHooks []v1beta1.WebHookSecret)
- func ToQuarkusLegacyJarType(resourceType flag.ResourceType, resource string) (bool, error)
Constants ¶
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.
Source Files ¶
- artifact_converter.go
- binarybuildtype_converter.go
- config_converter.go
- envvar_converter.go
- gitsource_converter.go
- infraresource_converter.go
- kogitobuildtype_converter.go
- kogitoprobe_converter.go
- monitoring_converter.go
- native_converter.go
- properties_converter.go
- resourcerequirement_converter.go
- runtimetype_converter.go
- webhooksecret_converter.go