在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):mattermost/mattermost-operator开源软件地址(OpenSource Url):https://github.com/mattermost/mattermost-operator开源编程语言(OpenSource Language):Go 96.0%开源软件介绍(OpenSource Introduction):Mattermost Operator for KubernetesSummaryMattermost is an open source platform for secure collaboration across the entire software development lifecycle. It's written in Golang and React and runs as a single Linux binary with MySQL or PostgreSQL. This repo contains a Kubernetes Operator for Mattermost to simplify deploying and managing your Mattermost instance. The Mattermost server source code is available at https://github.com/mattermost/mattermost-server. InstallSee the installation instructions at https://docs.mattermost.com/install/install-kubernetes.html. Migrate to Mattermost Custom ResourceIn version
To prepare for the new release all Restore an existing Mattermost MySQL DatabaseTo restore an existing Mattermost MySQL Database into a new Mattermost installation using the Mattermost Operator you will need to follow these steps: Use Case: An existing AWS RDS Database
If you have an machine running MySQL you just need to perform the Developer FlowTo test the operator locally. We recommend Kind, however, you can use Minikube or Minishift as well. PrerequisitesTo develop locally you will need the Operator SDK. First, checkout and install the operator-sdk CLI: mkdir -p $GOPATH/src/github.com/operator-framework
cd $GOPATH/src/github.com/operator-framework
git clone https://github.com/operator-framework/operator-sdk
cd operator-sdk
git checkout master
make install If you made changes to any structs representing Custom Resources make sure to regenerate code and manifests:
If generation produced any unexpected changes, clean old binaries and rerun the generation:
Building mattermost-operatorTo start contributing to mattermost-operator you need to clone this repo to your local workspace. mkdir -p $GOPATH/src/github.com/mattermost
cd $GOPATH/src/github.com/mattermost
git clone https://github.com/mattermost/mattermost-operator
cd mattermost-operator
git checkout master
make build Testing locally with KindDeveloping and testing local changes to Mattermost Operator is fairly simple. For that you can deploy Kind cluster.
To spin up an appropriate Kind cluster and deploy dependencies, run: make kind-start mysql-minio-operators After Kind cluster is up and running, build Mattermost Operator image, load it to Kind cluster and deploy it. For that, run: make build-image kind-load-image deploy Accessing Mattermost Installation on KindAfter you create Mattermost installation using Mattermost Operator on Kind cluster, port-forward the service to access it: kubectl port-forward svc/[MATTERMOST_NAME] 8065:8065 Running Operator locally against K8s clusterMattermost Operator can be run on local machine against remote a Kubernetes cluster to rapidly test changes during the development. To run Operator locally:
Be aware that running Operator locally does not verify Kubernetes manifests, RBAC rules, leader election etc. NotesInstallation SizeThe Replicas and resource requests/limits values can be overridden manually but setting new Size will override those values again regardless if set by the previous Size or adjusted manually. ReleaseTo release a new version of Mattermost Operator you need to:
As a first step of release process generate deployment manifests:
We have a script that changes some files, commit those changes and then tag the main branch. To run you can issue the following command: ./scripts/release.sh --tag=<DESIRED_TAG> where:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论