Skip to content

Commit

Permalink
[minor] Support ECK Integration (#1066)
Browse files Browse the repository at this point in the history
  • Loading branch information
durera authored Jun 28, 2024
1 parent 450e190 commit f93fb62
Show file tree
Hide file tree
Showing 30 changed files with 460 additions and 41 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.vscode
*.pyc

image/cli/install/mas_cli.tar.gz
image/cli/mascli/templates/ibm-mas-tekton.yaml

target/
Expand All @@ -23,4 +24,4 @@ python/src/mas_cli.egg-info
python/src/mas/cli/templates/ibm-mas-tekton.yaml
python/mas-*.spec
python/README.rst
.env
.env
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

.PHONY: ansible-build ansible-install ansible tekton docker run clean create delete exec
.PHONY: ansible-build ansible-install ansible python-build python-build-devops python-build-cli tekton docker run clean create delete exec

.DEFAULT_GOAL := all

Expand All @@ -11,6 +11,16 @@ ansible-install:
ansible-galaxy collection install image/cli/install/ibm-mas_devops.tar.gz --force --no-deps
ansible: ansible-build ansible-install

python-build-cli:
cd python && python3 -m build
cp python/dist/mas_cli-100.0.0.tar.gz image/cli/install/mas_cli.tar.gz

python-build-devops:
cd ../python-devops && python3 -m build
cp ../python-devops/dist/mas_devops-100.0.0.tar.gz image/cli/install/mas_devops.tar.gz

python-build: python-build-devops python-build-cli

tekton:
DEV_MODE=true build/bin/build-tekton.sh

Expand Down
2 changes: 1 addition & 1 deletion build/bin/build-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ else
export GITHUB_WORKSPACE=$(pwd)
fi

sed -i "s#VERSION=latest#VERSION=${VERSION}#g" ${GITHUB_WORKSPACE}/image/cli/mascli/mas
sed -i "s#VERSION=\"\${VERSION:-latest}\"#VERSION=${VERSION}#g" ${GITHUB_WORKSPACE}/image/cli/mascli/mas

cd $GITHUB_WORKSPACE/image/cli/mascli
chmod ug+x $GITHUB_WORKSPACE/image/cli/mascli/mas
Expand Down
2 changes: 1 addition & 1 deletion build/bin/build-tekton.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if [ "$DEV_MODE" != "true" ]; then
TARGET_FILE_IN_CLI=$GITHUB_WORKSPACE/image/cli/mascli/templates/ibm-mas-tekton.yaml
else
TARGET_DIR=$DIR/../../tekton/target
VERSION=${VERSION:-6.1.0-pre.deprov}
VERSION=${VERSION:-100.0.0-pre.localbuild}

TASK_FILES=$TARGET_DIR/tasks/*.yaml
PIPELINE_FILES=$TARGET_DIR/pipelines/*.yaml
Expand Down
6 changes: 3 additions & 3 deletions docs/catalogs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ To receive security updates and bug fixes you must periodically update the versi
| ------------------------------------- | ----------- | --------------- | ------------------------------- |
| [v9-240625-amd64](v9-240625-amd64.md) | 4.12 - 4.14 | latest | OCP 4.14 EOS October 31, 2025 |
| [v8-240528-amd64](v8-240528-amd64.md) | 4.12 - 4.14 | latest | OCP 4.14 EOS October 31, 2025 |
| [v8-240430-amd64](v8-240430-amd64.md) | 4.12 - 4.14 | latest | OCP 4.14 EOS October 31, 2025 |
| [v8-240405-amd64](v8-240405-amd64.md) | 4.12 - 4.14 | latest | OCP 4.14 EOS October 31, 2025 |
| [v8-240326-amd64](v8-240326-amd64.md) | 4.12 - 4.14 | latest | OCP 4.14 EOS October 31, 2025 |
| [v8-240430-amd64](v8-240430-amd64.md) | 4.12 - 4.14 | 9.4.0 | OCP 4.14 EOS October 31, 2025 |
| [v8-240405-amd64](v8-240405-amd64.md) | 4.12 - 4.14 | 9.4.0 | OCP 4.14 EOS October 31, 2025 |
| [v8-240326-amd64](v8-240326-amd64.md) | 4.12 - 4.14 | 9.4.0 | OCP 4.14 EOS October 31, 2025 |
| [v8-240227-amd64](v8-240227-amd64.md) | 4.12 | 8.2.2 | OCP 4.12 EOS January 17, 2025 |
| [v8-240130-amd64](v8-240130-amd64.md) | 4.12 | 8.2.2 | OCP 4.12 EOS January 17, 2025 |
Expand Down
1 change: 0 additions & 1 deletion docs/commands/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Usage

### Entitlement & Licensing (Required):
- `--ibm-entitlement-key IBM_ENTITLEMENT_KEY` IBM entitlement key
- `--license-id SLS_LICENSE_ID` MAS license ID
- `--license-file SLS_LICENSE_FILE_LOCAL` Path to MAS license file
- `--uds-email UDS_CONTACT_EMAIL` Contact e-mail address
- `--uds-firstname UDS_CONTACT_FIRSTNAME` Contact first name
Expand Down
1 change: 1 addition & 0 deletions image/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ RUN umask 0002 && \
bash /tmp/install/install-python-packages.sh && \
bash /tmp/install/install-ansible-collections.sh && \
bash /tmp/install/permissions-updates.sh && \
ln -s /opt/app-root/lib/python3.9/site-packages /mascli/site-packages && \
rm -rf /tmp/install
8 changes: 8 additions & 0 deletions image/cli/install/install-python-packages.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/bin/bash

python3 -m pip install pip --upgrade

# We always install the version of the mas-cli package that we just built
python3 -m pip install /tmp/install/mas_cli.tar.gz

# If we have copied a pre-built version of the mas_devops collection then use that,
# otherwise we will use the latest version that was installed when we installed the mas-cli package above
if [[ -e /tmp/install/mas_devops.tar.gz ]]; then
python3 -m pip install /tmp/install/mas_devops.tar.gz
fi
16 changes: 12 additions & 4 deletions image/cli/mascli/functions/help/install_help
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ Entitlement & Licensing (Required):
--uds-firstname ${COLOR_YELLOW}UDS_CONTACT_FIRSTNAME${TEXT_RESET} Contact first name
--uds-lastname ${COLOR_YELLOW}UDS_CONTACT_LASTNAME${TEXT_RESET} Contact last name

Entitlement & Licensing (Only required up to v8-230414-amd64):
--license-id ${COLOR_YELLOW}SLS_LICENSE_ID${TEXT_RESET} MAS license ID. Required for SLS 3.6.0 and below

Storage Class Selection (Required):
--storage-rwo ${COLOR_YELLOW}STORAGE_CLASS_RWO${TEXT_RESET} Read Write Once (RWO) storage class (e.g. ibmc-block-gold)
--storage-rwx ${COLOR_YELLOW}STORAGE_CLASS_RWX${TEXT_RESET} Read Write Many (RWX) storage class (e.g. ibmc-file-gold-gid)
Expand All @@ -35,6 +32,8 @@ Advanced MAS Configuration (Optional):
--mas-trust-default-cas ${COLOR_YELLOW}MAS_TRUST_DEFAULT_CAS${TEXT_RESET} Trust certificates signed by well-known CAs
--workload-scale-profile ${COLOR_YELLOW}MAS_WORKLOAD_SCALE_PROFILE${TEXT_RESET} Set a pre-defined workload scale profile [Burstable, BestEffort, Guaranteed]
--mas-pod-templates-dir ${COLOR_YELLOW}MAS_POD_TEMPLATES_DIR${TEXT_RESET} Path to directory containing custom podTemplates configuration files to be applied. Takes precedence over --workload-scale-profile
--superuser-username ${COLOR_YELLOW}MAS_SUPERUSER_USERNAME${TEXT_RESET} Provide your own superuser account name rather than accept the generated username & password
--superuser-password ${COLOR_YELLOW}MAS_SUPERUSER_PASSWORD${TEXT_RESET} Provide yoyr own superuser account password rather than accept the generated username & password

Maximo Application Suite Core Platform (Required):
--mas-channel ${COLOR_YELLOW}MAS_CHANNEL${TEXT_RESET} Subscription channel for the Core Platform
Expand All @@ -50,6 +49,15 @@ Maximo Application Suite Application Selection (Optional):
--optimizer-channel ${COLOR_YELLOW}MAS_APP_CHANNEL_OPTIMIZER${TEXT_RESET} Subscription channel for Maximo optimizer
--optimizer-plan ${COLOR_YELLOW}MAS_APP_PLAN_OPTIMIZER${TEXT_RESET} Installation plan for Maximo Optimizer (full or limited)

Elastic Cloud on Kubernetes (Optional):
--eck-enable-elasticsearch Install Elasticsearch
--eck-enable-kibana Install Kibana
--eck-enable-logstash Install Logstash
--eck-enable-filebeat Install Filebeat agent on all cluster nodes
--eck-remote-es-hosts ${COLOR_YELLOW}ECK_REMOTE_ES_HOSTS${TEXT_RESET} A comma-separated list of hosts (host:port) to connect the ECK LogStash instance to
--eck-remote-es-username ${COLOR_YELLOW}ECK_REMOTE_ES_USERNAME${TEXT_RESET} The username to authenticate with to the remote Elasticsearch instance
--eck-remote-es-password ${COLOR_YELLOW}ECK_REMOTE_ES_PASSWORD${TEXT_RESET} The password to authenticate with to the remote Elasticsearch instance

IBM Cloud Pak for Data (Required when installing Predict or Assist):
--cp4d-version ${COLOR_YELLOW}CP4D_VERSION${TEXT_RESET} Product version of IBM Cloud Pak for Data to use
--cp4d-install-spss Include SPSS service to be installed as part of IBM Cloud Pak for Data (Optional if Predict is being installed)
Expand All @@ -63,7 +71,7 @@ Kafka (Optional, applicable for Strimzi and Red Hat AMQ Streams only):
--kafka-namespace ${COLOR_YELLOW}KAFKA_NAMESPACE${TEXT_RESET} Set Strimzi and Red Hat AMQ Streams namespace
--kafka-version ${COLOR_YELLOW}KAFKA_VERSION${TEXT_RESET} Set version of the Kafka cluster that the Strimzi or AMQ Streams operator will create

Kafka (Required for IBM Cloud Event Streams only):
Kafka (Required for IBM Cloud EventStreams only):
--ibmcloud-apikey ${COLOR_YELLOW}IBMCLOUD_APIKEY${TEXT_RESET} Set IBM Cloud API Key. Required to provision IBM Cloud services
--eventstreams-resource-group ${COLOR_YELLOW}EVENTSTREAMS_RESOURCEGROUP${TEXT_RESET} Set IBM Cloud resource group to target the Event Streams instance provisioning (Only applicable if installing IBM Cloud Event Streams)
--eventstreams-instance-name ${COLOR_YELLOW}EVENTSTREAMS_NAME${TEXT_RESET} Set IBM Event Streams instance name (Only applicable if installing IBM Event Streams)
Expand Down
133 changes: 133 additions & 0 deletions image/cli/mascli/functions/internal/install_config_storage_classes
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
#!/bin/bash

# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# !! Note: Despite the name, this is used by the upgrade script !!
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

# STORAGE_CLASS_RWX
# -----------------
# RWX: Usually this role is fulfilled by block storage classes; used by:
# - Grafana
# - Db2 (data, logs, and temp volumes)
# - Kafka, MongoDb, and User Data Services
#
# - db2_meta_storage_class [ibmc-file-gold, ocs-storagecluster-cephfs, azurefiles-premium]
# - db2_backup_storage_class [ibmc-file-gold, ocs-storagecluster-cephfs, azurefiles-premium]

# STORAGE_CLASS_RWO
# -----------------
# RWO: Usually this role is fulfilled by file storage classes; used by:
# - Db2 (meta and backup volumes)
#
# - grafana_instance_storage_class [ibmc-block-gold, ocs-storagecluster-ceph-rbd, managed-premium]
# - db2_data_storage_class [ibmc-block-gold, ocs-storagecluster-ceph-rbd, managed-premium]
# - db2_logs_storage_class [ibmc-block-gold, ocs-storagecluster-ceph-rbd, managed-premium]
# - db2_temp_storage_class [ibmc-block-gold, ocs-storagecluster-ceph-rbd, managed-premium]
# - kafka_storage_class [ibmc-block-gold, ocs-storagecluster-ceph-rbd, managed-premium]
# - mongodb_storage_class [ibmc-block-gold, ocs-storagecluster-ceph-rbd, managed-premium]
# - uds_storage_class [ibmc-block-bronze, ocs-storagecluster-ceph-rbd, managed-premium] (doesn't really need to be bronze)

# Unknown/TBC
# - appconnect_storage_class - doesn't support auto-select storage classes :(
# - cpd_metadata_storage_class [ibmc-block-gold, ocs-storagecluster-ceph-rbd, managed-premium]
# - cpd_primary_storage_class [ibmc-file-gold-gid, ocs-storagecluster-cephfs, azurefiles-premium]
# - cpd_service_storage_class [ibmc-file-gold-gid, ocs-storagecluster-cephfs, azurefiles-premium] / WD: [ibmc-block-gold, ocs-storagecluster-ceph-rbd, managed-premium]

function install_config_storage_classes() {
echo
echo_h2 "Configure Storage Class Usage"
echo "${TEXT_DIM}Maximo Application Suite and it's dependencies require storage classes that support ReadWriteOnce (RWO) and ReadWriteMany (RWX) access modes:"
echo " - ReadWriteOnce volumes can be mounted as read-write by multiple pods on a single node."
echo " - ReadWriteMany volumes can be mounted as read-write by multiple pods across many nodes."
echo ""
reset_colors
# 1. ROKS
oc get storageclass ibmc-file-gold-gid &>> $LOGFILE
if [[ $? == "0" ]]; then
echo -e "${COLOR_GREEN}Storage provider auto-detected: IBMCloud ROKS${TEXT_RESET}"
echo "${TEXT_DIM} - Storage class (ReadWriteOnce): ibmc-block-gold"
echo "${TEXT_DIM} - Storage class (ReadWriteMany): ibmc-file-gold-gid"
STORAGE_CLASS_PROVIDER=ibmc
STORAGE_CLASS_RWO=ibmc-block-gold
STORAGE_CLASS_RWX=ibmc-file-gold-gid
fi

# 2. OCS
if [[ "$STORAGE_CLASS_RWX" == "" ]]; then
oc get storageclass ocs-storagecluster-cephfs &>> $LOGFILE
if [[ $? == "0" ]]; then
echo -e "${COLOR_GREEN}Storage provider auto-detected: OpenShift Container Storage${TEXT_RESET}"
echo "${TEXT_DIM} - Storage class (ReadWriteOnce): ocs-storagecluster-ceph-rbd"
echo "${TEXT_DIM} - Storage class (ReadWriteMany): ocs-storagecluster-cephfs"
STORAGE_CLASS_PROVIDER=ocs
STORAGE_CLASS_RWO=ocs-storagecluster-ceph-rbd
STORAGE_CLASS_RWX=ocs-storagecluster-cephfs
fi
fi

# 3. Azure
if [[ "$STORAGE_CLASS_RWX" == "" ]]; then
oc get storageclass managed-premium &>> $LOGFILE
if [[ $? == "0" ]]; then
echo -e "${COLOR_GREEN}Storage provider auto-detected: Azure Managed${TEXT_RESET}"
echo "${TEXT_DIM} - Storage class (ReadWriteOnce): azurefiles-premium"
echo "${TEXT_DIM} - Storage class (ReadWriteMany): managed-premium"
STORAGE_CLASS_PROVIDER=azure
STORAGE_CLASS_RWO=azurefiles-premium
STORAGE_CLASS_RWX=managed-premium
fi
fi

# 4. AWS
if [[ "$STORAGE_CLASS_RWX" == "" ]]; then
oc get storageclass gp2 &>> $LOGFILE
if [[ $? == "0" ]]; then
echo -e "${COLOR_GREEN}Storage provider auto-detected: AWS gp2${TEXT_RESET}"
echo "${TEXT_DIM} - Storage class (ReadWriteOnce): gp2"
echo "${TEXT_DIM} - Storage class (ReadWriteMany): efs"
STORAGE_CLASS_PROVIDER=aws
STORAGE_CLASS_RWO=gp2
STORAGE_CLASS_RWX=efs
fi
fi
reset_colors

if [[ "$STORAGE_CLASS_PROVIDER" == "ibmc" ]]; then
# Unless we use the -gid storage class we struggle with permission issues when mounted
PIPELINE_STORAGE_CLASS=ibmc-file-gold-gid
else
PIPELINE_STORAGE_CLASS=$STORAGE_CLASS_RWX
fi

PIPELINE_STORAGE_ACCESSMODE="ReadWriteMany"
if [[ "$SNO_MODE" == "true" ]]; then
PIPELINE_STORAGE_CLASS=$STORAGE_CLASS_RWO
PIPELINE_STORAGE_ACCESSMODE="ReadWriteOnce"
fi

if [[ "$STORAGE_CLASS_RWX" != "" ]]; then
echo
prompt_for_confirm "Choose your own storage classes anyway?" OVERRIDE_STORAGE_CLASSES
fi

# 5. You choose then ...
if [[ "$STORAGE_CLASS_RWX" == "" || "$OVERRIDE_STORAGE_CLASSES" == "true" ]]; then
STORAGE_CLASS_PROVIDER=custom
echo ""
echo "${COLOR_YELLOW}Select the ReadWriteOnce and ReadWriteMany storage classes to use from the list below:"
oc get storageclasses -o jsonpath='{range .items[*]}{" - "}{.metadata.name}{"\n"}{end}'
echo ""
echo "${COLOR_YELLOW}Enter 'none' for the ReadWriteMany storage class if you do not have a suitable class available in the cluster, however this will limit what can be installed"
echo ""
prompt_for_input "ReadWriteOnce (RWO) storage class" STORAGE_CLASS_RWO
prompt_for_input "ReadWriteMany (RWX) storage class" STORAGE_CLASS_RWX

# We prefer to use ReadWriteMany, but we can cope with ReadWriteOnce if necessary
PIPELINE_STORAGE_CLASS=$STORAGE_CLASS_RWX
PIPELINE_STORAGE_ACCESSMODE="ReadWriteMany"
if [[ "$STORAGE_CLASS_RWX" == "none" ]]; then
PIPELINE_STORAGE_CLASS=$STORAGE_CLASS_RWO
PIPELINE_STORAGE_ACCESSMODE="ReadWriteOnce"
fi
fi
}
6 changes: 3 additions & 3 deletions image/cli/mascli/functions/internal/pipelines_install_tasks
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,22 @@ function pipelines_install_tasks() {
sed "s/{{mas_instance_id}}/$MAS_INSTANCE_ID/g" $CLI_DIR/templates/namespace.yaml > $CONFIG_DIR/namespace-$MAS_INSTANCE_ID.yaml
oc apply -f $CONFIG_DIR/namespace-$MAS_INSTANCE_ID.yaml &>> $LOGFILE
if [[ "$?" != "0" ]]; then
echo_warning "Unable to create MAS Pipelines namespace"
echo_warning "\nERROR: Unable to create MAS Pipelines namespace\nSee $LOGFILE for details\n"
exit 1
fi

# Create tasks and pipeline resources in namespace
oc -n mas-$MAS_INSTANCE_ID-pipelines apply -f $CONFIG_DIR/ibm-mas-tekton-$MAS_INSTANCE_ID.yaml &>> $LOGFILE
if [[ "$?" != "0" ]]; then
echo_warning "Unable to install MAS Pipeline and Task definitions"
echo_warning "\nERROR: Unable to install MAS Pipeline and Task definitions\nSee $LOGFILE for details\n"
exit 1
fi

# Set up RBAC in namespace
sed "s/{{mas_instance_id}}/$MAS_INSTANCE_ID/g" $CLI_DIR/templates/rbac.yaml > $CONFIG_DIR/rbac-$MAS_INSTANCE_ID.yaml
oc apply -f $CONFIG_DIR/rbac-$MAS_INSTANCE_ID.yaml &>> $LOGFILE
if [[ "$?" != "0" ]]; then
echo_warning "Unable to configure MAS Pipeline RBAC"
echo_warning "\nERROR: Unable to configure MAS Pipeline RBAC\nSee $LOGFILE for details\n"
exit 1
fi
}
Expand Down
16 changes: 16 additions & 0 deletions image/cli/mascli/functions/internal/save_config
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ function save_config() {
fi

cat << EOF > $HOME/.ibm-mas/cli.env
export SKIP_PRE_CHECK=$SKIP_PRE_CHECK
export IMAGE_PULL_POLICY=$IMAGE_PULL_POLICY
export ARTIFACTORY_USERNAME=$ARTIFACTORY_USERNAME
export ARTIFACTORY_TOKEN=$ARTIFACTORY_TOKEN
Expand All @@ -28,6 +31,9 @@ export MAS_CHANNEL=$MAS_CHANNEL
export MAS_ICR_CP=$MAS_ICR_CP
export MAS_ICR_CPOPEN=$MAS_ICR_CPOPEN
export MAS_SUPERUSER_USERNAME=$MAS_SUPERUSER_USERNAME
export MAS_SUPERUSER_PASSWORD=$MAS_SUPERUSER_PASSWORD
export MAS_DOMAIN=$MAS_DOMAIN
export CLUSTER_ISSUER_SELECTION=$CLUSTER_ISSUER_SELECTION
export MAS_CLUSTER_ISSUER=$MAS_CLUSTER_ISSUER
Expand Down Expand Up @@ -84,6 +90,16 @@ export UDS_CONTACT_EMAIL="$UDS_CONTACT_EMAIL"
export UDS_CONTACT_FIRSTNAME="$UDS_CONTACT_FIRSTNAME"
export UDS_CONTACT_LASTNAME="$UDS_CONTACT_LASTNAME"
# ECK
export ECK_ENABLE_ELASTICSEARCH="$ECK_ENABLE_ELASTICSEARCH"
export ECK_ENABLE_KIBANA="$ECK_ENABLE_KIBANA"
export ECK_ENABLE_LOGSTASH="$ECK_ENABLE_LOGSTASH"
export ECK_ENABLE_FILEBEAT="$ECK_ENABLE_FILEBEAT"
export ECK_REMOTE_ES_HOSTS="$ECK_REMOTE_ES_HOSTS"
export ECK_REMOTE_ES_USERNAME="$ECK_REMOTE_ES_USERNAME"
export ECK_REMOTE_ES_PASSWORD="$ECK_REMOTE_ES_PASSWORD"
# Air Gap
export REGISTRY_USERNAME="$REGISTRY_USERNAME"
export REGISTRY_PASSWORD="$REGISTRY_PASSWORD"
Expand Down
2 changes: 1 addition & 1 deletion image/cli/mascli/mas
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export LOG_DIR="$HOME/.ibm-mas/logs"
export LOGFILE=$LOG_DIR/mas.log

# Note: "latest" is overwritten with the actual version at build time
export VERSION=latest
export VERSION="${VERSION:-latest}"

mkdir -p $LOG_DIR
mkdir -p $CONFIG_DIR
Expand Down
6 changes: 5 additions & 1 deletion python/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
include src/mas/devops/cli/*.yaml
include src/mas/cli/templates/*.yaml
include src/mas/cli/templates/*.yml.j2
include src/mas/cli/templates/pod-templates/best-effort/*.yml
include src/mas/cli/templates/pod-templates/guaranteed/*.yml
include src/mas/cli/templates/pod-templates/saas-essentials/*.yml
6 changes: 2 additions & 4 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@ def get_version(rel_path):
author='David Parker',
author_email='[email protected]',
package_dir={'': 'src'},
packages=find_namespace_packages(where='src', include=[
'mas.cli',
'mas.cli.templates'
]),
packages=find_namespace_packages(where='src'),
include_package_data=True,
scripts=[
'src/mas-install',
'src/mas-upgrade',
'src/mas-uninstall'
],
Expand Down
Loading

0 comments on commit f93fb62

Please sign in to comment.