Skip to content

Commit

Permalink
chore: rebranding to mapt on redhat-developer org
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Riobo Lorenzo <ariobolo@redhat.com>
  • Loading branch information
adrianriobo committed Jun 11, 2024
1 parent 8362d19 commit bacae7e
Show file tree
Hide file tree
Showing 70 changed files with 430 additions and 424 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-oci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:
branches: [ main ]

jobs:
build-qenvs:
name: build-qenvs
build-mapt:
name: build-mapt
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
VERSION ?= 0.7.0-dev
CONTAINER_MANAGER ?= podman
# Image URL to use all building/pushing image targets
IMG ?= quay.io/rhqp/qenvs:v${VERSION}
TKN_IMG ?= quay.io/rhqp/qenvs-tkn:v${VERSION}
IMG ?= quay.io/redhat-developer/mapt:v${VERSION}
TKN_IMG ?= quay.io/redhat-developer/mapt:v${VERSION}-tkn

# Go and compilation related variables
GOPATH ?= $(shell go env GOPATH)
Expand Down Expand Up @@ -35,11 +35,11 @@ check: build test lint
install: $(SOURCES)
go install -ldflags="$(LDFLAGS)" $(GO_EXTRA_BUILDFLAGS) ./cmd

$(BUILD_DIR)/qenvs: $(SOURCES)
GOOS=linux GOARCH=amd64 go build -gcflags="$(GCFLAGS)" -ldflags="$(LDFLAGS)" -o $(BUILD_DIR)/qenvs $(GO_EXTRA_BUILDFLAGS) ./cmd
$(BUILD_DIR)/mapt: $(SOURCES)
GOOS=linux GOARCH=amd64 go build -gcflags="$(GCFLAGS)" -ldflags="$(LDFLAGS)" -o $(BUILD_DIR)/mapt $(GO_EXTRA_BUILDFLAGS) ./cmd

.PHONY: build
build: $(BUILD_DIR)/qenvs
build: $(BUILD_DIR)/mapt

.PHONY: test
test:
Expand All @@ -48,7 +48,7 @@ test:
.PHONY: clean ## Remove all build artifacts
clean:
rm -rf $(BUILD_DIR)
rm -f $(GOPATH)/bin/qenvs
rm -f $(GOPATH)/bin/mapt

.PHONY: fmt
fmt:
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
# qenvs
# mapt

automation for qe environments using pulumi
This is a Multi Architecture Provisionig Tool

![code check](https://github.com/adrianriobo/qenvs/actions/workflows/build-go.yaml/badge.svg)
![oci builds](https://github.com/adrianriobo/qenvs/actions/workflows/build-oci.yaml/badge.svg)
It allows to spin multiple target environments across multiple cloud providers implementing multiple optimizations like cross data for spot price and eviction rates, or pre create snapshost to improve boot times, ...among others.

![code check](https://github.com/redhat-developer/mapt/actions/workflows/build-go.yaml/badge.svg)
![oci builds](https://github.com/redhat-developer/mapt/actions/workflows/build-oci.yaml/badge.svg)

## Overview

This project is intended to easily spin environments and plug them in on any CI/CD system through ssh.

Qenvs create the target machine and return the information and credentials required to connect within the target marchine (host + username + private key)
mapt create the target machine and return the information and credentials required to connect within the target marchine (host + username + private key)

Also Qenvs offers a set of features wich are transversal to each type of target machine as so they can be applied to any of them (airgap, proxyed, vpn,...)
Also mapt offers a set of features wich are transversal to each type of target machine as so they can be applied to any of them (airgap, proxyed, vpn,...)


## Supported environments
Expand Down
2 changes: 1 addition & 1 deletion cmd/cmd/aws/aws.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package aws

import (
"github.com/adrianriobo/qenvs/cmd/cmd/aws/hosts"
"github.com/redhat-developer/mapt/cmd/cmd/aws/hosts"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
12 changes: 6 additions & 6 deletions cmd/cmd/aws/hosts/fedora.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package hosts

import (
params "github.com/adrianriobo/qenvs/cmd/cmd/constants"
qenvsContext "github.com/adrianriobo/qenvs/pkg/manager/context"
"github.com/adrianriobo/qenvs/pkg/provider/aws/action/fedora"
"github.com/adrianriobo/qenvs/pkg/util/logging"
params "github.com/redhat-developer/mapt/cmd/cmd/constants"
maptContext "github.com/redhat-developer/mapt/pkg/manager/context"
"github.com/redhat-developer/mapt/pkg/provider/aws/action/fedora"
"github.com/redhat-developer/mapt/pkg/util/logging"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
Expand Down Expand Up @@ -44,7 +44,7 @@ func getFedoraCreate() *cobra.Command {
}

// Initialize context
qenvsContext.Init(
maptContext.Init(
viper.GetString(params.ProjectName),
viper.GetString(params.BackedURL),
viper.GetString(params.ConnectionDetailsOutput),
Expand Down Expand Up @@ -81,7 +81,7 @@ func getFedoraDestroy() *cobra.Command {
return err
}

qenvsContext.InitBase(
maptContext.InitBase(
viper.GetString(params.ProjectName),
viper.GetString(params.BackedURL))

Expand Down
10 changes: 5 additions & 5 deletions cmd/cmd/aws/hosts/mac.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package hosts

import (
params "github.com/adrianriobo/qenvs/cmd/cmd/constants"
qenvsContext "github.com/adrianriobo/qenvs/pkg/manager/context"
"github.com/adrianriobo/qenvs/pkg/provider/aws/action/mac"
"github.com/adrianriobo/qenvs/pkg/util/logging"
params "github.com/redhat-developer/mapt/cmd/cmd/constants"
maptContext "github.com/redhat-developer/mapt/pkg/manager/context"
"github.com/redhat-developer/mapt/pkg/provider/aws/action/mac"
"github.com/redhat-developer/mapt/pkg/util/logging"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
Expand Down Expand Up @@ -55,7 +55,7 @@ func getMacRequest() *cobra.Command {
}

// Initialize context
qenvsContext.Init(
maptContext.Init(
viper.GetString(params.ProjectName),
viper.GetString(params.BackedURL),
viper.GetString(params.ConnectionDetailsOutput),
Expand Down
12 changes: 6 additions & 6 deletions cmd/cmd/aws/hosts/rhel.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package hosts

import (
params "github.com/adrianriobo/qenvs/cmd/cmd/constants"
qenvsContext "github.com/adrianriobo/qenvs/pkg/manager/context"
"github.com/adrianriobo/qenvs/pkg/provider/aws/action/rhel"
"github.com/adrianriobo/qenvs/pkg/util/logging"
params "github.com/redhat-developer/mapt/cmd/cmd/constants"
maptContext "github.com/redhat-developer/mapt/pkg/manager/context"
"github.com/redhat-developer/mapt/pkg/provider/aws/action/rhel"
"github.com/redhat-developer/mapt/pkg/util/logging"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
Expand Down Expand Up @@ -50,7 +50,7 @@ func getRHELCreate() *cobra.Command {
}

// Initialize context
qenvsContext.Init(
maptContext.Init(
viper.GetString(params.ProjectName),
viper.GetString(params.BackedURL),
viper.GetString(params.ConnectionDetailsOutput),
Expand Down Expand Up @@ -101,7 +101,7 @@ func getRHELDestroy() *cobra.Command {
return err
}

qenvsContext.InitBase(
maptContext.InitBase(
viper.GetString(params.ProjectName),
viper.GetString(params.BackedURL))

Expand Down
12 changes: 6 additions & 6 deletions cmd/cmd/aws/hosts/windows.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package hosts

import (
params "github.com/adrianriobo/qenvs/cmd/cmd/constants"
qenvsContext "github.com/adrianriobo/qenvs/pkg/manager/context"
"github.com/adrianriobo/qenvs/pkg/provider/aws/action/windows"
"github.com/adrianriobo/qenvs/pkg/util/logging"
params "github.com/redhat-developer/mapt/cmd/cmd/constants"
maptContext "github.com/redhat-developer/mapt/pkg/manager/context"
"github.com/redhat-developer/mapt/pkg/provider/aws/action/windows"
"github.com/redhat-developer/mapt/pkg/util/logging"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
Expand Down Expand Up @@ -55,7 +55,7 @@ func getWindowsCreate() *cobra.Command {
}

// Initialize context
qenvsContext.Init(
maptContext.Init(
viper.GetString(params.ProjectName),
viper.GetString(params.BackedURL),
viper.GetString(params.ConnectionDetailsOutput),
Expand Down Expand Up @@ -100,7 +100,7 @@ func getWindowsDestroy() *cobra.Command {
return err
}

qenvsContext.InitBase(
maptContext.InitBase(
viper.GetString(params.ProjectName),
viper.GetString(params.BackedURL))

Expand Down
6 changes: 3 additions & 3 deletions cmd/cmd/aws/replica/replica.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package replica

import (
params "github.com/adrianriobo/qenvs/cmd/cmd/constants"
amireplication "github.com/adrianriobo/qenvs/pkg/provider/aws/modules/ami"
"github.com/adrianriobo/qenvs/pkg/util/logging"
params "github.com/redhat-developer/mapt/cmd/cmd/constants"
amireplication "github.com/redhat-developer/mapt/pkg/provider/aws/modules/ami"
"github.com/redhat-developer/mapt/pkg/util/logging"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
Expand Down
2 changes: 1 addition & 1 deletion cmd/cmd/azure/azure.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package azure

import (
"github.com/adrianriobo/qenvs/cmd/cmd/azure/hosts"
"github.com/redhat-developer/mapt/cmd/cmd/azure/hosts"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
14 changes: 7 additions & 7 deletions cmd/cmd/azure/hosts/windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package hosts
import (
"fmt"

params "github.com/adrianriobo/qenvs/cmd/cmd/constants"
qenvsContext "github.com/adrianriobo/qenvs/pkg/manager/context"
azureWindows "github.com/adrianriobo/qenvs/pkg/provider/azure/action/windows"
spotprice "github.com/adrianriobo/qenvs/pkg/provider/azure/module/spot-price"
"github.com/adrianriobo/qenvs/pkg/util/logging"
params "github.com/redhat-developer/mapt/cmd/cmd/constants"
maptContext "github.com/redhat-developer/mapt/pkg/manager/context"
azureWindows "github.com/redhat-developer/mapt/pkg/provider/azure/action/windows"
spotprice "github.com/redhat-developer/mapt/pkg/provider/azure/module/spot-price"
"github.com/redhat-developer/mapt/pkg/util/logging"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
Expand Down Expand Up @@ -68,7 +68,7 @@ func getCreate() *cobra.Command {
return err
}
// Initialize context
qenvsContext.Init(
maptContext.Init(
viper.GetString(params.ProjectName),
viper.GetString(params.BackedURL),
viper.GetString(params.ConnectionDetailsOutput),
Expand Down Expand Up @@ -126,7 +126,7 @@ func getDestroy() *cobra.Command {
return err
}
// Initialize context
qenvsContext.Init(
maptContext.Init(
viper.GetString(params.ProjectName),
viper.GetString(params.BackedURL),
viper.GetString(params.ConnectionDetailsOutput),
Expand Down
14 changes: 7 additions & 7 deletions cmd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ import (
"path/filepath"
"strings"

"github.com/adrianriobo/qenvs/cmd/cmd/aws"
"github.com/adrianriobo/qenvs/cmd/cmd/azure"
params "github.com/adrianriobo/qenvs/cmd/cmd/constants"
"github.com/adrianriobo/qenvs/pkg/util/logging"
"github.com/redhat-developer/mapt/cmd/cmd/aws"
"github.com/redhat-developer/mapt/cmd/cmd/azure"
params "github.com/redhat-developer/mapt/cmd/cmd/constants"
"github.com/redhat-developer/mapt/pkg/util/logging"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
)

const (
commandName = "qenvs"
commandName = "mapt"
descriptionShort = "PoC for pulumi"
descriptionLong = "PoC for pulumi"

defaultErrorExitCode = 1
)

var (
baseDir = filepath.Join(os.Getenv("HOME"), ".qenvs")
logFile = "qenvs.log"
baseDir = filepath.Join(os.Getenv("HOME"), ".mapt")
logFile = "mapt.log"
)

var rootCmd = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/adrianriobo/qenvs/cmd/cmd"
import "github.com/redhat-developer/mapt/cmd/cmd"

func main() {
cmd.Execute()
Expand Down
24 changes: 12 additions & 12 deletions docs/aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Create a composable environment with different qe target machines aggregated on

## Hosts

Current available features allow to create supported hosts on AWS using cmd `qenvs host create` current supported hosts:
Current available features allow to create supported hosts on AWS using cmd `mapt host create` current supported hosts:

* RHEL (host id `ol-rhel`)
* Fedora (host id `ol-fedora`)
Expand All @@ -24,7 +24,7 @@ This module allows to check for best bid price on all regions, to request instan

to check those requisites the module make use of spot placement scores based on machine requirements. Then best scores are crossed with lowers price from spot price history to pick the most valuable option.

Current use case is working on one machine but it will be exteded to analyze any required environment offered by qenvs (checking with all the machines included on a specific environment).
Current use case is working on one machine but it will be exteded to analyze any required environment offered by mapt (checking with all the machines included on a specific environment).

Current information about supported machines can be checked at [support-matrix](./../pkg/infra/aws/support-matrix/matrix.go)

Expand All @@ -33,11 +33,11 @@ Current information about supported machines can be checked at [support-matrix](
It creates / destroy supported hosts ready to be included within the CI/CD system. Features included within the offering:

```bash
podman run -it --rm quay.io/rhqp/qenvs:0.0.5 aws host create -h
podman run -it --rm quay.io/redhat-developer/mapt:0.7.0-dev aws host create -h
create

Usage:
qenvs aws host create [flags]
mapt aws host create [flags]

Flags:
--conn-details-output string path to export host connection information (host, username and privateKey)
Expand Down Expand Up @@ -66,14 +66,14 @@ When running the container image it is required to pass the authetication inform
```bash
# Create rhel host
# Recommended this region us-east-1
# https://github.com/adrianriobo/qenvs/issues/24
podman run -d --name qenvs-rhel \
# https://github.com/redhat-developer/mapt/issues/24
podman run -d --name mapt-rhel \
-v ${PWD}:/workspace:z \
-e AWS_ACCESS_KEY_ID=XXX \
-e AWS_SECRET_ACCESS_KEY=XXX \
-e AWS_DEFAULT_REGION=us-east-1 \
quay.io/rhqp/qenvs:0.0.5 aws host create \
--project-name qenvs-rhel \
quay.io/redhat-developer/mapt:0.7.0-dev aws host create \
--project-name mapt-rhel \
--backed-url file:///workspace \
--conn-details-output /workspace \
--host-id ol-rhel \
Expand All @@ -86,13 +86,13 @@ The following is a snipped on how to destroy the resources:
```bash
# Create rhel host
# Recommended this region us-east-1
# https://github.com/adrianriobo/qenvs/issues/24
podman run -d --name qenvs-rhel \
# https://github.com/redhat-developer/mapt/issues/24
podman run -d --name mapt-rhel \
-v ${PWD}:/workspace:z \
-e AWS_ACCESS_KEY_ID=XXX \
-e AWS_SECRET_ACCESS_KEY=XXX \
-e AWS_DEFAULT_REGION=us-east-1 \
quay.io/rhqp/qenvs:0.0.5 aws host destroy \
--project-name qenvs-rhel \
quay.io/redhat-developer/mapt:0.7.0-dev aws host destroy \
--project-name mapt-rhel \
--backed-url file:///workspace
```
Loading

0 comments on commit bacae7e

Please sign in to comment.