-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
1,010 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,40 @@ | ||
# CHANGE LOG FOR THIS REPO | ||
## 0.2.1 | ||
* Added Gitops supply chain with service bindings using the service claims struct of the workload yaml | ||
* Added workload example for binding to a rabbitMQ cluster | ||
* Fixed issue in gitops git-writer task where it failed if the folder already existed in git | ||
* Fixed Service bindings RBAC to allow work with RabbitMQ (OSS and Tanzu) and Tanzu PostgreSQL operator based objects | ||
* Added Cert Injection Webhook Package | ||
* Validated support for running on EKS, kind and minikube | ||
|
||
## 0.2.0 | ||
* Add Service Bindings Package | ||
* Add Service Bindings for MySQL example workload | ||
* Add Service Bindings Supply Chain example | ||
* Make all package optional (opt out mechanism added) | ||
* Make OOTB Supply chains optional (opt out mechanism added) | ||
* Added Kaniko based example workload | ||
* Standardized the labels for workloads and supply chains | ||
* Added additional docs for getting started | ||
* Enhanced experience for deployment on a Local Docker based environment | ||
* Added script to get the status of the platform | ||
* Add Service Bindings Package | ||
* Add Service Bindings for MySQL example workload | ||
* Add Service Bindings Supply Chain example | ||
* Make all package optional (opt out mechanism added) | ||
* Make OOTB Supply chains optional (opt out mechanism added) | ||
* Added Kaniko based example workload | ||
* Standardized the labels for workloads and supply chains | ||
* Added additional docs for getting started | ||
* Enhanced experience for deployment on a Local Docker based environment | ||
* Added script to get the status of the platform | ||
|
||
## 0.1.5 | ||
* Add kaniko base supply chain for building images | ||
* add workload examples for building images with Kaniko instead of Kpack | ||
* Add kaniko base supply chain for building images | ||
* add workload examples for building images with Kaniko instead of Kpack | ||
|
||
## 0.1.4 | ||
* Fix issue with knative to local docker TCE clusters | ||
* Fix issue with knative to local docker TCE clusters | ||
|
||
## 0.1.3 | ||
* Tech Debt cleanup | ||
* Tech Debt cleanup | ||
|
||
## 0.1.2 | ||
* Add support for setting Contour to use a ClusterIP for local clusters | ||
* Add support for setting Contour to use a ClusterIP for local clusters | ||
|
||
## 0.1.1 | ||
* Fix issue with openapiv3 schema for meta package | ||
* Add example workloads for utilization with the supply chains | ||
* Fix issue with openapiv3 schema for meta package | ||
* Add example workloads for utilization with the supply chains | ||
|
||
## 0.1.0 | ||
Initial Release | ||
Initial Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
157 changes: 157 additions & 0 deletions
157
example-workloads/ootb-basic-supply-chain-with-kaniko/go/pipeline.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: Task | ||
metadata: | ||
name: kaniko | ||
spec: | ||
params: | ||
- name: IMAGE | ||
description: Name (reference) of the image to build. | ||
- name: DOCKERFILE | ||
description: Path to the Dockerfile to build. | ||
default: ./Dockerfile | ||
- name: CONTEXT | ||
description: The build context used by Kaniko. | ||
default: ./ | ||
- name: EXTRA_ARGS | ||
type: array | ||
default: [] | ||
- name: BUILDER_IMAGE | ||
description: The image on which builds will run (default is v1.5.1) | ||
default: gcr.io/kaniko-project/executor:v1.5.1@sha256:c6166717f7fe0b7da44908c986137ecfeab21f31ec3992f6e128fff8a94be8a5 | ||
workspaces: | ||
- name: source | ||
description: Holds the context and docker file | ||
- name: dockerconfig | ||
description: Includes a docker `config.json` | ||
optional: true | ||
mountPath: /kaniko/.docker | ||
results: | ||
- name: IMAGE-DIGEST | ||
description: Digest of the image just built. | ||
steps: | ||
- name: build-and-push | ||
workingDir: $(workspaces.source.path) | ||
image: $(params.BUILDER_IMAGE) | ||
args: | ||
- $(params.EXTRA_ARGS[*]) | ||
- --dockerfile=$(params.DOCKERFILE) | ||
- --context=$(workspaces.source.path)/$(params.CONTEXT) | ||
- --destination=$(params.IMAGE) | ||
- --digest-file=/tekton/results/IMAGE-DIGEST | ||
securityContext: | ||
runAsUser: 0 | ||
--- | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: Task | ||
metadata: | ||
name: kaniko-source | ||
spec: | ||
params: | ||
- name: blob-url | ||
type: string | ||
- name: blob-revision | ||
type: string | ||
steps: | ||
- command: | ||
- bash | ||
- -cxe | ||
- |- | ||
set -o pipefail | ||
echo $(params.blob-revision) | ||
cd $(workspaces.output.path) | ||
curl -SL $(params.blob-url) | tar xvzf - | ||
image: ghcr.io/vrabbi/golang:latest | ||
name: extract-source | ||
resources: {} | ||
workspaces: | ||
- name: output | ||
--- | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: Task | ||
metadata: | ||
name: export-image-ref | ||
spec: | ||
params: | ||
- name: image-url | ||
type: string | ||
- name: image-digest | ||
type: string | ||
steps: | ||
- command: | ||
- bash | ||
- -cxe | ||
- |- | ||
set -o pipefail | ||
echo $(params.image-url)@$(params.image-digest) | tr -d '\n' | tee $(results.imageRef.path) | ||
image: ghcr.io/vrabbi/golang:latest | ||
name: extract-source | ||
resources: {} | ||
workspaces: | ||
- name: output | ||
results: | ||
- name: imageRef | ||
description: The Image Ref to be used by TAP for future supply chain steps | ||
--- | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: Pipeline | ||
metadata: | ||
annotations: | ||
name: kaniko-runner | ||
spec: | ||
params: | ||
- description: Flux GitRepository URL source | ||
name: source-url | ||
type: string | ||
- description: Flux GitRepository Revision | ||
name: source-revision | ||
type: string | ||
- description: Image path to be pushed to | ||
name: image_url | ||
type: string | ||
results: | ||
- description: "" | ||
name: imageRef | ||
value: $(tasks.export-image-ref.results.imageRef) | ||
tasks: | ||
- name: unpack-source | ||
params: | ||
- name: blob-url | ||
value: $(params.source-url) | ||
- name: blob-revision | ||
value: $(params.source-revision) | ||
taskRef: | ||
kind: Task | ||
name: kaniko-source | ||
workspaces: | ||
- name: output | ||
workspace: source-ws | ||
- name: kaniko | ||
params: | ||
- name: IMAGE | ||
value: $(params.image_url) | ||
runAfter: | ||
- unpack-source | ||
taskRef: | ||
kind: Task | ||
name: kaniko | ||
workspaces: | ||
- name: source | ||
workspace: source-ws | ||
- name: export-image-ref | ||
params: | ||
- name: image-url | ||
value: $(params.image_url) | ||
- name: image-digest | ||
value: $(tasks.kaniko.results.IMAGE-DIGEST) | ||
runAfter: | ||
- kaniko | ||
taskRef: | ||
kind: Task | ||
name: export-image-ref | ||
workspaces: | ||
- name: output | ||
workspace: source-ws | ||
workspaces: | ||
- name: source-ws | ||
- name: dockerconfig | ||
optional: true |
22 changes: 22 additions & 0 deletions
22
example-workloads/ootb-gitops-supply-chain-with-svc-bindings/java/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Usage | ||
This example uses the rabbitmq cluster operator and the service binding controller to bind an application to your workload. | ||
This is implemented in a gitops workflow as this is an optimal way to handle backend service bindings when deploying to multiple clusters. | ||
While we are doing this in the same cluster in this example the gitops approach is being used to show that this is possible and is a very powerfull approach for workload management. | ||
# Pre Reqs | ||
1. Install the rabbitMQ Cluster Operator: | ||
```bash | ||
kubectl apply -f https://github.com/rabbitmq/cluster-operator/releases/latest/download/cluster-operator.yml | ||
``` | ||
2. Create a rabbitMQ cluster using the manifest in this repo | ||
```bash | ||
kubectl apply -f rabbitmq.yaml | ||
``` | ||
|
||
# Installation | ||
1. Deploy the workload | ||
```bash | ||
kubectl apply -f workload.yaml | ||
``` | ||
2. when the workload is complete the generated YAML will be uploaded to your configured git repo | ||
3. Download the file and apply it to your cluster | ||
4. Watch the magic happen! |
7 changes: 7 additions & 0 deletions
7
example-workloads/ootb-gitops-supply-chain-with-svc-bindings/java/rabbitmq.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: rabbitmq.com/v1beta1 | ||
kind: RabbitmqCluster | ||
metadata: | ||
name: rabbitmqcluster-sample | ||
spec: | ||
service: | ||
type: LoadBalancer |
22 changes: 22 additions & 0 deletions
22
example-workloads/ootb-gitops-supply-chain-with-svc-bindings/java/workload.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
apiVersion: carto.run/v1alpha1 | ||
kind: Workload | ||
metadata: | ||
labels: | ||
apps.tanzu.vmware.com/gitops: "true" | ||
apps.tanzu.vmware.com/has-bindings: "true" | ||
apps.tanzu.vmware.com/workload-type: "web" | ||
name: sensors | ||
namespace: default | ||
spec: | ||
serviceClaims: | ||
- name: rmq | ||
ref: | ||
apiVersion: rabbitmq.com/v1beta1 | ||
kind: RabbitmqCluster | ||
name: rabbitmqcluster-sample | ||
source: | ||
git: | ||
ref: | ||
branch: v0.2.0 | ||
url: https://github.com/jhvhs/rabbitmq-sample |
17 changes: 0 additions & 17 deletions
17
example-workloads/ootb-svc-binding-native-k8s-deployment/java/README.md
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.