Skip to content

Commit 73b1868

Browse files
Update README and remove kubeval
1 parent 44921da commit 73b1868

File tree

7 files changed

+9
-18
lines changed

7 files changed

+9
-18
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ RUN pip3 install awscli
3434

3535
COPY --from=builder \
3636
/usr/local/bin/helm \
37-
/usr/local/bin/kubeval \
3837
/usr/local/bin/kubectl \
3938
/usr/local/bin/kubeapply \
4039
/usr/local/bin/

Dockerfile.lambda

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ RUN pip3 install awscli
3434
COPY --from=builder \
3535
/usr/local/bin/aws-iam-authenticator \
3636
/usr/local/bin/helm \
37-
/usr/local/bin/kubeval \
3837
/usr/local/bin/kubectl \
3938
/usr/local/bin/kubeapply \
4039
/usr/local/bin/

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,14 @@ other source types use custom code in the `kubeapply` binary.
217217

218218
#### Validate
219219

220-
`kubeapply validate [path to cluster config]`
221-
222-
This validates all of the expanded configs for the cluster using `kubeconform`.
220+
`kubeapply validate [path to cluster config] --policy=[path to OPA policy in rego format]`
221+
222+
This validates all of the expanded configs for the cluster using the
223+
[`kubeconform`](https://github.com/yannh/kubeconform) library. It also, optionally, supports
224+
validating configs using one or more [OPA](https://www.openpolicyagent.org/) policies in
225+
rego format. The latter allows checking that configs satisfy organization-specific standards,
226+
e.g. that resource labels are in the correct format, that images are only pulled from the
227+
expected registries, etc.
223228

224229
#### Diff
225230

cmd/kubeapply/subcmd/check.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ func checkRun(cmd *cobra.Command, args []string) error {
3030
if err := checkDep("kubectl", "version"); err != nil {
3131
return err
3232
}
33-
if err := checkDep("kubeval", "--version"); err != nil {
34-
return err
35-
}
3633

3734
return nil
3835
}

examples/kubeapply-test-cluster/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ config or profile files.
5252

5353
##### (3) `make validate`
5454

55-
Runs `kubeval` over the expanded configs to validate that they are legitimate Kubernetes
55+
Runs `kubeconform` over the expanded configs to validate that they are legitimate Kubernetes
5656
configs before continuing.
5757

5858
##### (4) `make diff`

scripts/create-lambda-bundle.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ $REPO_ROOT/scripts/pull-deps.sh
3434

3535
zip -r9 $OUTPUT_ZIP helm
3636
zip -r9 $OUTPUT_ZIP aws-iam-authenticator
37-
zip -r9 $OUTPUT_ZIP kubeval
3837
zip -r9 $OUTPUT_ZIP kubectl
3938

4039
echo "Created bundle ${OUTPUT_ZIP}"

scripts/pull-deps.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ HELM_SHA256_SUM="3fff0354d5fba4c73ebd5db59a59db72f8a5bbe1117a0b355b0c2983e98db95
99
IAM_AUTHENTICATOR_VERSION="0.5.2"
1010
IAM_AUTHENTICATOR_SHA256_SUM="5bbe44ad7f6dd87a02e0b463a2aed9611836eb2f40d7fbe8c517460a4385621b"
1111

12-
KUBEVAL_VERSION="0.15.0"
13-
KUBEVAL_SHA256_SUM="70bff2642a2886c0d9ebea452ffb81f333a956e26bbe0826fd7c6797e343e5aa"
14-
1512
KUBECTL_VERSION="v1.20.2"
1613
KUBECTL_SHA512_SUM="e4513cdd65ed980d493259cc7eaa63c415f97516db2ea45fa8c743a6e413a0cdaf299d03dd799286cf322182bf9694204884bb0dd0037cf44592ddfa5e51f183"
1714

@@ -32,11 +29,6 @@ wget -q -O aws-iam-authenticator https://github.com/kubernetes-sigs/aws-iam-auth
3229
echo "${IAM_AUTHENTICATOR_SHA256_SUM} aws-iam-authenticator" | sha256sum -c
3330
chmod +x aws-iam-authenticator
3431

35-
echo "Downloading kubeval at version ${KUBEVAL_VERSION}"
36-
wget -q https://github.com/instrumenta/kubeval/releases/download/${KUBEVAL_VERSION}/kubeval-${GOOS}-${GOARCH}.tar.gz
37-
echo "${KUBEVAL_SHA256_SUM} kubeval-${GOOS}-${GOARCH}.tar.gz" | sha256sum -c
38-
tar -xzf kubeval-${GOOS}-${GOARCH}.tar.gz
39-
4032
echo "Downloading kubectl at version ${KUBECTL_VERSION}"
4133
wget -q https://dl.k8s.io/${KUBECTL_VERSION}/kubernetes-client-${GOOS}-${GOARCH}.tar.gz
4234
echo "${KUBECTL_SHA512_SUM} kubernetes-client-${GOOS}-${GOARCH}.tar.gz" | sha512sum -c

0 commit comments

Comments
 (0)