-
Notifications
You must be signed in to change notification settings - Fork 0
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
52 changed files
with
1,531 additions
and
995 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
replace-chart-version-with-git: true | ||
generate-metadata: true | ||
chart-dir: ./helm/teleport-operator | ||
destination: ./build | ||
# ct-config: ./.circleci/ct-config.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 |
---|---|---|
@@ -1,56 +1,15 @@ | ||
version: 2.1 | ||
orbs: | ||
architect: giantswarm/[email protected] | ||
|
||
jobs: | ||
unit-tests: | ||
executor: architect/architect | ||
steps: | ||
- checkout | ||
- run: | ||
name: "Run unit tests" | ||
command: CGO_ENABLED=0 make test-unit | ||
integration-tests: | ||
executor: architect/machine | ||
machine: | ||
image: 'ubuntu-2004:202010-01' | ||
steps: | ||
- checkout | ||
- architect/machine-install-go | ||
- run: | ||
name: Install Docker Compose | ||
environment: | ||
COMPOSE_VERSION: '1.29.2' | ||
command: | | ||
curl -L "https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o ~/docker-compose | ||
chmod +x ~/docker-compose | ||
sudo mv ~/docker-compose /usr/bin/docker-compose | ||
- run: | ||
name: "Run integration tests" | ||
command: | | ||
CGO_ENABLED=0 make test-integration | ||
orbs: | ||
architect: giantswarm/[email protected] | ||
|
||
workflows: | ||
package-and-push-chart-on-tag: | ||
build: | ||
jobs: | ||
- unit-tests: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
|
||
- integration-tests: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
|
||
- architect/go-build: | ||
context: architect | ||
name: go-build | ||
binary: teleport-operator | ||
resource_class: xlarge | ||
requires: | ||
- unit-tests | ||
- integration-tests | ||
resource_class: large | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
|
@@ -62,37 +21,52 @@ workflows: | |
username_envar: "QUAY_USERNAME" | ||
password_envar: "QUAY_PASSWORD" | ||
requires: | ||
- go-build | ||
- go-build | ||
# Needed to trigger job also on git tag. | ||
filters: | ||
# Trigger the job also on git tag. | ||
tags: | ||
only: /^v.*/ | ||
|
||
- architect/push-to-docker: | ||
context: "architect" | ||
name: push-teleport-operator-to-docker | ||
image: "docker.io/giantswarm/teleport-operator" | ||
username_envar: "DOCKER_USERNAME" | ||
password_envar: "DOCKER_PASSWORD" | ||
requires: | ||
- go-build | ||
- go-build | ||
# Needed to trigger job also on git tag. | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
|
||
- architect/push-to-app-catalog: | ||
context: "architect" | ||
# executor: "app-build-suite" # uncomment this if you want automatic metadata generation and helm chart linting | ||
name: push-to-app-catalog | ||
executor: "app-build-suite" # uncomment this if you want automatic metadata generation and helm chart linting | ||
name: push-teleport-operator-to-app-catalog | ||
app_catalog: "control-plane-catalog" | ||
app_catalog_test: "control-plane-test-catalog" | ||
chart: "teleport-operator" | ||
requires: | ||
- push-teleport-operator-to-quay | ||
- push-teleport-operator-to-docker | ||
# Trigger job on git tag. | ||
- push-teleport-operator-to-quay | ||
- push-teleport-operator-to-docker | ||
# Needed to trigger job also on git tag. | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
|
||
- architect/push-to-app-collection: | ||
name: aws-app-collection | ||
context: "architect" | ||
app_name: "teleport-operator" | ||
app_namespace: "giantswarm" | ||
app_collection_repo: "aws-app-collection" | ||
requires: | ||
- push-teleport-operator-to-quay | ||
- push-teleport-operator-to-docker | ||
- push-teleport-operator-to-app-catalog | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
tags: | ||
only: /^v.*/ | ||
|
||
|
@@ -102,9 +76,9 @@ workflows: | |
app_name: "teleport-operator" | ||
app_collection_repo: "capa-app-collection" | ||
requires: | ||
- push-teleport-operator-to-docker | ||
- push-teleport-operator-to-quay | ||
- push-to-app-catalog | ||
- push-teleport-operator-to-quay | ||
- push-teleport-operator-to-docker | ||
- push-teleport-operator-to-app-catalog | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
|
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
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,2 @@ | ||
#pkg:golang/k8s.io/[email protected] | ||
CVE-2020-8561 until=2023-10-01 |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.