Skip to content
No description, website, or topics provided.
Go Makefile Dockerfile
Branch: master
Clone or download
jbw976 Merge pull request #15 from jbw976/resource-metadata
Add WordPress icon and resource metadata
Latest commit 2eef762 Sep 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api/v1alpha1 types: change comments which were using the wrong type Sep 4, 2019
config Add WordPress icon and resource metadata Sep 18, 2019
controllers Create resources in the same namespace with WordpressInstance. Sep 13, 2019
hack
.gitignore names: renaming 'extension' things to be 'stack' things Aug 27, 2019
Dockerfile names: renaming 'extension' things to be 'stack' things Aug 27, 2019
LICENSE license: use same license as crossplane Aug 12, 2019
Makefile make: update the Makefile for compatibility under Ubuntu Sep 13, 2019
PROJECT names: renaming 'extension' things to be 'stack' things Aug 27, 2019
README.md
go.mod names: renaming 'extension' things to be 'stack' things Aug 27, 2019
go.sum wordpress example: adding initial project Aug 9, 2019
main.go Watch for resources only in the namespace that this controller runs in Sep 14, 2019
stack.Dockerfile config: add output of stackification Sep 6, 2019
stack.Makefile
stack.env Watch for resources only in the namespace that this controller runs in Sep 14, 2019

README.md

Wordpress example stack

A wordpress stack with a simple controller to press wordpresses!

Using

Install the Crossplane stack CLI

First, install the Crossplane stack CLI.

Install

If kubectl is set up to talk to a Crossplane control cluster, the stack can be installed using the stack cli:

kubectl crossplane stack install crossplane/sample-stack-wordpress

Create wordpresses

Before wordpresses will provision, the Crossplane control cluster must be configured to connect to a provider.

Once a provider is configured, starting the process of creating a wordpress is easy. Create a wordpress instance like the sample shows:

apiVersion: wordpress.samples.stacks.crossplane.io/v1alpha1
kind: WordpressInstance
metadata:
  name: wordpressinstance-sample

The stack (and Crossplane) will take care of the rest.

Developing

Prerequisites

This assumes that there is a crossplane running locally. See the crossplane project for instructions on how to get that working.

It also assumes that you have the crossplane cli installed.

Workflow

To build, publish, and install the stack locally, do something like:

kubectl crossplane stack build local-build
kubectl crossplane stack build stack-install

To uninstall the stack locally:

kubectl crossplane stack build stack-uninstall

To run locally out-of-cluster:

  1. Delete the deployment that the stack manager created
  2. make run; I like to use make manager run to ensure that it rebuilds
You can’t perform that action at this time.