-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/fix/RUSTSEC-2024-0013' into fix/…
…RUSTSEC-2024-0013
- Loading branch information
Showing
28 changed files
with
432 additions
and
24 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
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 |
---|---|---|
|
@@ -21,6 +21,7 @@ env: | |
CARGO_TERM_COLOR: always | ||
CARGO_INCREMENTAL: '0' | ||
CARGO_PROFILE_DEV_DEBUG: '0' | ||
RUST_TOOLCHAIN_VERSION: "1.75.0" | ||
RUSTFLAGS: "-D warnings" | ||
RUSTDOCFLAGS: "-D warnings" | ||
RUST_LOG: "info" | ||
|
@@ -44,7 +45,9 @@ jobs: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
submodules: recursive | ||
- uses: dtolnay/[email protected] | ||
- uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248 | ||
with: | ||
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} | ||
- uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1 | ||
with: | ||
key: udeps | ||
|
@@ -122,8 +125,9 @@ jobs: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
submodules: recursive | ||
- uses: dtolnay/rust-toolchain@1.74.0 | ||
- uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248 | ||
with: | ||
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} | ||
components: rustfmt | ||
- run: cargo fmt --all -- --check | ||
|
||
|
@@ -139,8 +143,9 @@ jobs: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
submodules: recursive | ||
- uses: dtolnay/rust-toolchain@1.74.0 | ||
- uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248 | ||
with: | ||
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} | ||
components: clippy | ||
- uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1 | ||
with: | ||
|
@@ -174,8 +179,9 @@ jobs: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
submodules: recursive | ||
- uses: dtolnay/rust-toolchain@1.74.0 | ||
- uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248 | ||
with: | ||
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} | ||
components: rustfmt | ||
- uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1 | ||
with: | ||
|
@@ -195,7 +201,9 @@ jobs: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
submodules: recursive | ||
- uses: dtolnay/[email protected] | ||
- uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248 | ||
with: | ||
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} | ||
- uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1 | ||
with: | ||
key: test | ||
|
@@ -258,7 +266,9 @@ jobs: | |
with: | ||
version: v3.13.3 | ||
- name: Set up cargo | ||
uses: dtolnay/[email protected] | ||
uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248 | ||
with: | ||
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} | ||
- uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1 | ||
with: | ||
key: charts | ||
|
@@ -318,8 +328,9 @@ jobs: | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
submodules: recursive | ||
- uses: dtolnay/rust-toolchain@1.74.0 | ||
- uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248 | ||
with: | ||
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} | ||
components: rustfmt | ||
# This step checks if the current run was triggered by a push to a pr (or a pr being created). | ||
# If this is the case it changes the version of this project in all Cargo.toml files to include the suffix | ||
|
@@ -335,7 +346,10 @@ jobs: | |
# Recreate charts and publish charts and docker image. The "-e" is needed as we want to override the | ||
# default value in the makefile if called from this action, but not otherwise (i.e. when called locally). | ||
# This is needed for the HELM_REPO variable. | ||
- uses: sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 # tag=v3.3.0 | ||
- name: Install cosign | ||
uses: sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 # tag=v3.3.0 | ||
- name: Install syft | ||
uses: anchore/sbom-action/download-syft@24b0d5238516480139aa8bc6f92eeb7b54a9eb0a # tag=v0.15.5 | ||
- name: Publish Docker image and Helm chart | ||
run: make -e publish | ||
# Output the name of the published image to the Job output for later use | ||
|
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
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
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[toolchain] | ||
channel = "1.74.0" | ||
channel = "1.75.0" |
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,10 @@ | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
{% if lookup('env', 'VECTOR_AGGREGATOR') %} | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: vector-aggregator-discovery | ||
{% endif %} |
9 changes: 9 additions & 0 deletions
9
tests/templates/kuttl/profiling/00-install-vector-aggregator-discovery-configmap.yaml.j2
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,9 @@ | ||
{% if lookup('env', 'VECTOR_AGGREGATOR') %} | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: vector-aggregator-discovery | ||
data: | ||
ADDRESS: {{ lookup('env', 'VECTOR_AGGREGATOR') }} | ||
{% endif %} |
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,29 @@ | ||
--- | ||
kind: Role | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: test-role | ||
rules: | ||
{% if test_scenario['values']['openshift'] == "true" %} | ||
- apiGroups: ["security.openshift.io"] | ||
resources: ["securitycontextconstraints"] | ||
resourceNames: ["privileged"] | ||
verbs: ["use"] | ||
{% endif %} | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: test-sa | ||
--- | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: test-rb | ||
subjects: | ||
- kind: ServiceAccount | ||
name: test-sa | ||
roleRef: | ||
kind: Role | ||
name: test-role | ||
apiGroup: rbac.authorization.k8s.io |
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,12 @@ | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
timeout: 600 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: test-zk-server-default | ||
status: | ||
readyReplicas: 1 | ||
replicas: 1 |
28 changes: 28 additions & 0 deletions
28
tests/templates/kuttl/profiling/01-install-zookeeper.yaml.j2
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,28 @@ | ||
--- | ||
apiVersion: zookeeper.stackable.tech/v1alpha1 | ||
kind: ZookeeperCluster | ||
metadata: | ||
name: test-zk | ||
spec: | ||
image: | ||
productVersion: "{{ test_scenario['values']['zookeeper-latest'] }}" | ||
pullPolicy: IfNotPresent | ||
{% if lookup('env', 'VECTOR_AGGREGATOR') %} | ||
clusterConfig: | ||
vectorAggregatorConfigMapName: vector-aggregator-discovery | ||
{% endif %} | ||
servers: | ||
config: | ||
logging: | ||
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }} | ||
roleGroups: | ||
default: | ||
replicas: 1 | ||
--- | ||
apiVersion: zookeeper.stackable.tech/v1alpha1 | ||
kind: ZookeeperZnode | ||
metadata: | ||
name: test-znode | ||
spec: | ||
clusterRef: | ||
name: test-zk |
Oops, something went wrong.