Unverified Commit 0f3feaed authored by Ciro S. Costa's avatar Ciro S. Costa Committed by GitHub
Browse files

cartographer: bump to 0.3.0 (#3923)


* cartographer: bump to 0.3.0

- `vendir` the latest 0.3.0 release from `vmware-tanzu/package-for-cartographer`
- copy smoke tests from 0.2.2 to 0.3.0 (no change in the smoke tests)
Signed-off-by: default avatarCiro S. Costa <ciroscosta@vmware.com>

* tests: run smoke tests for cartographer 0.3.0

with the inclusion of the new 0.3.0 package for cartographer, bump it up
to 0.3.0.
Signed-off-by: default avatarCiro S. Costa <ciroscosta@vmware.com>

* cartographer: consume release contents from tgz

given that the repository where does bits come from
(vmware-tanzu/package-for-cartographer) is aimed towards the generation
of packages for multiple projects targetted at multiple distributions
(e.g., TAP _and_ TCE), now for each projects and distribution, a `.tgz`
is included in the release so that `package.yaml` for each can be
fetched.

note that previous releases (0.2.2) have been updated to conform to the
same pattern.
Signed-off-by: default avatarCiro S. Costa <ciroscosta@vmware.com>
parent 4d0b40e0
No related merge requests found
Showing with 232 additions and 4 deletions
+232 -4
# Cartographer
Cartographer allows you to create secure and reusable supply chains that define
all of your application CI and CD in one place, in cluster.
## Components
* cartographer
## Supported Providers
The following table shows the providers this package can work with.
| AWS | Azure | vSphere | Docker |
|------|-------|---------|--------|
| ✅ | ✅ | ✅ | ✅ |
## Configuration
The Cartographer package has no configurable properties.
## Installation
The Cartographer package requires use of cert-manager for certificate
generation.
1. Install cert-manager Package
```shell
tanzu package install cert-manager \
--package-name cert-manager.community.tanzu.vmware.com \
--version ${CERT_MANAGER_PACKAGE_VERSION}
```
> You can get the `${CERT_MANAGER_PACKAGE_VERSION}` from running `tanzu
> package available list cert-manager.community.tanzu.vmware.com`.
> Specifying a namespace may be required depending on where your package
> repository was installed.
2. Install the Cartographer package
```shell
tanzu package install cartographer \
--package-name cartographer.community.tanzu.vmware.com \
--version ${CARTOGRAPHER_PACKAGE_VERSION}
```
> You can get the `${CARTOGRAPHER_PACKAGE_VERSION}` from running `tanzu
> package available list cartographer.community.tanzu.vmware.com`.
> Specifying a namespace may be required depending on where your package
> repository was installed.
## Documentation
For documentation specific to Cartographer, check out
[cartographer.sh](https://cartographer.sh) and the main repository
[vmware-tanzu/cartographer](https://github.com/vmware-tanzu/cartographer).
[carvel]: https://carvel.dev/
[Cartographer]: https://cartographer.sh
[kapp-controller]: https://github.com/vmware-tanzu/carvel-kapp-controller
[Tanzu CLI]: https://github.com/vmware-tanzu/tanzu-framework
[cert-manager]: https://github.com/cert-manager/cert-manager
apiVersion: data.packaging.carvel.dev/v1alpha1
kind: Package
metadata:
name: cartographer.community.tanzu.vmware.com.0.3.0
spec:
refName: cartographer.community.tanzu.vmware.com
version: 0.3.0
releaseNotes: https://github.com/vmware-tanzu/cartographer/releases/tag/0.3.0
releasedAt: "2022-04-01T17:37:47Z"
valuesSchema:
openAPIv3:
title: cartographer.community.tanzu.vmware.com.0.3.0 values schema
properties: {}
template:
spec:
fetch:
- imgpkgBundle:
image: projects.registry.vmware.com/tce/cartographer@sha256:ab7af733399a6e3df736796b094339e922ba156f49fba47957cdd138d4a3f2ea
template:
- ytt:
ignoreUnknownComments: true
paths:
- config
- kbld:
paths:
- .imgpkg/images.yml
- '-'
deploy:
- kapp: {}
......@@ -5,4 +5,9 @@ directories:
url: https://api.github.com/repos/vmware-tanzu/package-for-cartographer/releases/60735667
path: .
path: 0.2.2
- contents:
- githubRelease:
url: https://api.github.com/repos/vmware-tanzu/package-for-cartographer/releases/63403230
path: .
path: 0.3.0
kind: LockConfig
......@@ -5,10 +5,24 @@ directories:
- path: 0.2.2
contents:
- path: .
includePaths:
- README.md
- package.yaml
githubRelease:
slug: vmware-tanzu/package-for-cartographer
disableAutoChecksumValidation: true
tag: v0.2.2
unpackArchive:
path: cartographer-tce.tgz
- path: 0.3.0
contents:
- path: .
includePaths:
- README.md
- package.yaml
githubRelease:
slug: vmware-tanzu/package-for-cartographer
disableAutoChecksumValidation: true
assetNames:
- "package.yaml"
- "README.md"
tag: v0.3.0
unpackArchive:
path: cartographer-tce.tgz
......@@ -32,7 +32,7 @@ grafana:
./packages/grafana/7.5.7/grafana-test.sh
cartographer:
./packages/cartographer/0.2.2/cartographer-test.sh
./packages/cartographer/0.3.0/cartographer-test.sh
external-dns:
cd "${ROOT_DIR}"/test/e2e && ginkgo -v -- --packages="external-dns" --version="0.8.0" --guest-cluster-name="tce.public"
......
#!/bin/bash
# Copyright 2021 VMware Tanzu Community Edition contributors. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
set -o errexit
set -o nounset
set -o pipefail
TCE_REPO_PATH="$(git rev-parse --show-toplevel)"
# shellcheck source=test/smoke/packages/utils/smoke-tests-utils.sh
source "${TCE_REPO_PATH}/test/smoke/packages/utils/smoke-tests-utils.sh"
MY_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
# Checking package is installed or not
tanzu package installed list | grep "cert-manager.community.tanzu.vmware.com" || {
version=$(tanzu package available list cert-manager.community.tanzu.vmware.com | tail -n 1 | awk '{print $2}')
tanzu package install cert-manager --package-name cert-manager.community.tanzu.vmware.com --version "${version}"
}
tanzu package installed list | grep "cartographer.community.tanzu.vmware.com" || {
version=$(tanzu package available list cartographer.community.tanzu.vmware.com | tail -n 1 | awk '{print $2}')
tanzu package install cartographer --package-name cartographer.community.tanzu.vmware.com --version "${version}"
}
NAMESPACE_SUFFIX=${RANDOM}
NAMESPACE="cartographer-${NAMESPACE_SUFFIX}"
kubectl create ns ${NAMESPACE}
kubectl apply -n ${NAMESPACE} --filename "${MY_DIR}"/testdata.yaml
for sleep_duration in {1..10}; do
echo "sleeping ${sleep_duration}s to wait for configmap"
sleep "$sleep_duration"
kubectl get configmap -n ${NAMESPACE} workload-test-basic && {
packageCleanup cartographer cert-manager
namespaceCleanup ${NAMESPACE}
successMessage cartographer
exit 0
}
done
packageCleanup cartographer cert-manager
namespaceCleanup ${NAMESPACE}
failureMessage cartographer
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: test-basic
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: test-basic
rules:
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["*"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: test-basic
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: test-basic
subjects:
- kind: ServiceAccount
name: test-basic
---
apiVersion: carto.run/v1alpha1
kind: ClusterTemplate
metadata:
name: test-basic
spec:
template:
apiVersion: v1
kind: ConfigMap
metadata:
name: workload-$(workload.metadata.name)$
data: {}
---
apiVersion: carto.run/v1alpha1
kind: ClusterSupplyChain
metadata:
name: test-basic
spec:
selector:
test-basic: test-basic
resources:
- name: test-basic
templateRef:
kind: ClusterTemplate
name: test-basic
---
apiVersion: carto.run/v1alpha1
kind: Workload
metadata:
name: test-basic
labels:
test-basic: test-basic
spec:
serviceAccountName: test-basic
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment