-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2328 from spiffxp/verify-conftest
hack: enforce conftest and yamllint failures
- Loading branch information
Showing
41 changed files
with
118 additions
and
70 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 |
---|---|---|
|
@@ -54,4 +54,3 @@ spec: | |
# Params for env vars populated from k8s secrets | ||
securityContext: | ||
runAsNonRoot: true | ||
|
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 |
---|---|---|
|
@@ -14,4 +14,3 @@ spec: | |
app: sippy | ||
sessionAffinity: None | ||
type: NodePort | ||
|
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 |
---|---|---|
|
@@ -11,4 +11,4 @@ spec: | |
data: | ||
- key: triage-party-github-token | ||
name: triage-party-github-token | ||
version: latest | ||
version: latest |
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 |
---|---|---|
|
@@ -6,4 +6,3 @@ test-cncf-aws: | |
- ns-1825.awsdns-36.co.uk. | ||
- ns-265.awsdns-33.com. | ||
- ns-687.awsdns-21.net. | ||
|
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 |
---|---|---|
|
@@ -364,7 +364,7 @@ groups: | |
- [email protected] # 1.22 Release Notes Shadow | ||
- [email protected] # 1.22 Bug Triage Shadow | ||
- [email protected] # 1.22 Enhancements Lead | ||
- [email protected] # 1.22 Comms Lead | ||
- [email protected] # 1.22 Comms Lead | ||
- [email protected] # 1.22 Bug Triage Shadow | ||
- [email protected] # 1.22 Enhancements Shadow | ||
- [email protected] # 1.22 Comms Shadow | ||
|
@@ -386,7 +386,7 @@ groups: | |
- [email protected] # 1.22 Bug Triage Shadow | ||
- [email protected] # 1.22 Docs Lead | ||
- [email protected] # 1.22 Bug Triage Shadow | ||
- [email protected] # 1.22 Enhancements Shadow | ||
- [email protected] # 1.22 Enhancements Shadow | ||
|
||
- email-id: [email protected] | ||
name: release-team-shadows | ||
|
@@ -412,7 +412,7 @@ groups: | |
- [email protected] # 1.22 Release Notes Shadow | ||
- [email protected] # 1.22 Release Notes Shadow | ||
- [email protected] # 1.22 Release Notes Shadow | ||
- [email protected] # 1.22 CI Signal Shadow | ||
- [email protected] # 1.22 CI Signal Shadow | ||
- [email protected] # 1.22 CI Signal Shadow | ||
- [email protected] # 1.22 CI Signal Shadow | ||
- [email protected] # 1.22 CI Signal Shadow | ||
|
@@ -428,4 +428,3 @@ groups: | |
- [email protected] # 1.22 Enhancements Shadow | ||
- [email protected] # 1.22 Enhancements Shadow | ||
- [email protected] # 1.22 Enhancements Shadow | ||
|
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 |
---|---|---|
|
@@ -116,7 +116,7 @@ groups: | |
# | ||
# Membership should correspond roughly to subproject owners for the set of | ||
# subproject artifacts being stored in the GCS bucket | ||
# | ||
# | ||
- email-id: [email protected] | ||
name: k8s-infra-push-kind | ||
description: |- | ||
|
@@ -169,15 +169,15 @@ groups: | |
- [email protected] # 1.22 CI Signal Shadow | ||
- [email protected] # 1.22 CI Signal Shadow | ||
- [email protected] # 1.22 CI Signal Shadow | ||
|
||
# | ||
# sig-testing k8s-infra owners | ||
# | ||
# Each group here represents highly privileged access to kubernetes project | ||
# infrastructure owned or managed by sig-testing. A high level of trust is | ||
# required for membership in these groups. | ||
# | ||
|
||
- email-id: [email protected] | ||
name: k8s-infra-ci-robot | ||
description: |- | ||
|
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 |
---|---|---|
|
@@ -108,7 +108,7 @@ groups: | |
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
|
@@ -172,4 +172,3 @@ groups: | |
WhoCanViewMembership: "ALL_MEMBERS_CAN_VIEW" # required | ||
members: | ||
- [email protected] | ||
|
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,51 @@ | ||
#!/usr/bin/env bash | ||
# Copyright 2021 The Kubernetes Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
REPO_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd )" | ||
|
||
function usage() { | ||
echo >&2 "Usage: $0" | ||
exit 1 | ||
} | ||
|
||
function ensure_dependencies() { | ||
if ! command -v conftest >/dev/null 2>&1; then | ||
echo "Please install conftest: https://www.conftest.dev/install/" | ||
exit 1 | ||
fi | ||
} | ||
|
||
function main() { | ||
ensure_dependencies | ||
|
||
pushd "${REPO_ROOT}" >/dev/null | ||
local k8s_yaml_paths=( | ||
apps/ | ||
infra/gcp/clusters/projects/*/*/resources/*.yaml | ||
) | ||
conftest test --policy policies/ "${k8s_yaml_paths[@]}" | ||
|
||
} | ||
|
||
if [ $# -gt 0 ]; then | ||
usage | ||
fi | ||
|
||
main |
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
2 changes: 1 addition & 1 deletion
2
...-infra-prow-build-trusted/prow-build-trusted/resources/kube-dns-autoscaler-configmap.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
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 |
---|---|---|
|
@@ -56,4 +56,3 @@ spec: | |
# Params for env vars populated from k8s secrets | ||
securityContext: | ||
runAsNonRoot: true | ||
|
2 changes: 1 addition & 1 deletion
2
...ers/projects/k8s-infra-prow-build/prow-build/resources/kube-dns-autoscaler-configmap.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
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ metadata: | |
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: test-pods | ||
name: test-pods |
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 |
---|---|---|
|
@@ -6,4 +6,3 @@ name: iam.serviceAccountLister | |
include: | ||
permissions: | ||
- iam.serviceAccounts.list | ||
|
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 +1 @@ | ||
# No images yet | ||
# No images yet |
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,8 +1,8 @@ | ||
- name: snoopdb | ||
- name: snoopdb | ||
dmap: | ||
"sha256:c4151a15c8439265d98f66d25ef17964e9e975d894822a54ed7e72db78dba6c6": ["v0.1.0"] | ||
"sha256:a41a91e366e973da0bfd6fce44ba131d561ab435119ff7e1050d1e226a06dbda": ["v0.2.0"] | ||
- name: auditlogger | ||
dmap: | ||
dmap: | ||
"sha256:c4151a15c8439265d98f66d25ef17964e9e975d894822a54ed7e72db78dba6c6": ["v0.1.0"] | ||
"sha256:2c9c8df42ac7525e556bbff81aa9a62960888c69d5faad4aad408893bc95cbc9": ["v0.2.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# google group for gcr.io/k8s-staging-bootkube is [email protected] | ||
# google group for gcr.io/k8s-staging-bootkube is [email protected] | ||
registries: | ||
- name: gcr.io/k8s-staging-bootkube | ||
src: true | ||
|
Oops, something went wrong.