Skip to content

Commit

Permalink
Add CHANGELOG, remove multus, set acceptance to nightly/correct channel
Browse files Browse the repository at this point in the history
Add CHANGELOG, remove multus, set acceptance to nightly/correct channel
  • Loading branch information
curtbushko committed Aug 26, 2022
1 parent 6256d2c commit 6142d3a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 35 deletions.
49 changes: 28 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ executors:
environment:
TEST_RESULTS: /tmp/test-results # path to where test results are saved

slack-channel: &slack-channel CBXF3CGAF
control-plane-path: &control-plane-path control-plane
cli-path: &cli-path cli
acceptance-mod-path: &acceptance-mod-path acceptance
Expand Down Expand Up @@ -564,7 +565,7 @@ jobs:
machine:
image: ubuntu-2004:202010-01
resource_class: xlarge
parallelism: 6
parallelism: 3
steps:
- checkout
- install-prereqs
Expand Down Expand Up @@ -607,6 +608,7 @@ jobs:
gcloud container clusters delete $cluster --zone us-central1-a --project ${CLOUDSDK_CORE_PROJECT} --quiet
done
- slack/status:
channel: *slack-channel
fail_only: true
failure_message: "GKE cleanup failed"

Expand All @@ -624,6 +626,7 @@ jobs:
az group delete -n $group --yes
done
- slack/status:
channel: *slack-channel
fail_only: true
failure_message: "AKS cleanup failed"

Expand All @@ -643,6 +646,7 @@ jobs:
make ci.aws-acceptance-test-cleanup
- slack/status:
channel: *slack-channel
fail_only: true
failure_message: "EKS cleanup failed"

Expand Down Expand Up @@ -713,11 +717,12 @@ jobs:
when: always

- slack/status:
channel: *slack-channel
fail_only: true
failure_message: "GKE acceptance tests failed. Check the logs at: ${CIRCLE_BUILD_URL}"

acceptance-gke-cni-1-20:
parallelism: 6
parallelism: 3
environment:
- TEST_RESULTS: /tmp/test-results
docker:
Expand Down Expand Up @@ -780,8 +785,7 @@ jobs:
when: always

- slack/status:
# temporarily sending to #cni-acceptance-tests channel
channel: C03V3K0040G
channel: *slack-channel
fail_only: true
failure_message: "GKE CNI acceptance tests failed. Check the logs at: ${CIRCLE_BUILD_URL}"

Expand Down Expand Up @@ -838,11 +842,12 @@ jobs:
when: always

- slack/status:
channel: *slack-channel
fail_only: true
failure_message: "AKS acceptance tests failed. Check the logs at: ${CIRCLE_BUILD_URL}"

acceptance-aks-cni-1-21:
parallelism: 6
parallelism: 3
environment:
- TEST_RESULTS: /tmp/test-results
docker:
Expand Down Expand Up @@ -893,8 +898,7 @@ jobs:
terraform destroy -auto-approve
when: always
- slack/status:
# temporarily sending to #cni-acceptance-tests channel
channel: C03V3K0040G
channel: *slack-channel
fail_only: true
failure_message: "AKS CNI acceptance tests failed. Check the logs at: ${CIRCLE_BUILD_URL}"

Expand Down Expand Up @@ -957,11 +961,12 @@ jobs:
when: always

- slack/status:
channel: *slack-channel
fail_only: true
failure_message: "EKS acceptance tests failed. Check the logs at: ${CIRCLE_BUILD_URL}"

acceptance-eks-cni-1-19:
parallelism: 6
parallelism: 3
environment:
- TEST_RESULTS: /tmp/test-results
docker:
Expand Down Expand Up @@ -1019,8 +1024,7 @@ jobs:
when: always

- slack/status:
# temporarily sending to #cni-acceptance-tests channel
channel: C03V3K0040G
channel: *slack-channel
fail_only: true
failure_message: "EKS CNI acceptance tests failed. Check the logs at: ${CIRCLE_BUILD_URL}"

Expand Down Expand Up @@ -1074,6 +1078,7 @@ jobs:
when: always

- slack/status:
channel: *slack-channel
fail_only: true
failure_message: "OpenShift acceptance tests failed. Check the logs at: ${CIRCLE_BUILD_URL}"

Expand Down Expand Up @@ -1108,11 +1113,12 @@ jobs:
- store_artifacts:
path: /tmp/test-results
- slack/status:
channel: *slack-channel
fail_only: true
failure_message: "Acceptance tests against Kind with Kubernetes v1.23 failed. Check the logs at: ${CIRCLE_BUILD_URL}"

acceptance-kind-cni-1-23:
parallelism: 6
parallelism: 3
environment:
- TEST_RESULTS: /tmp/test-results
machine:
Expand Down Expand Up @@ -1142,8 +1148,7 @@ jobs:
- store_artifacts:
path: /tmp/test-results
- slack/status:
# temporarily sending to #cni-acceptance-tests channel
channel: C03V3K0040G
channel: *slack-channel
fail_only: true
failure_message: "Acceptance tests for CNI against Kind with Kubernetes v1.23 failed. Check the logs at: ${CIRCLE_BUILD_URL}"

Expand Down Expand Up @@ -1181,6 +1186,7 @@ jobs:
- store_artifacts:
path: /tmp/test-results
- slack/status:
channel: *slack-channel
fail_only: true
failure_message: "Acceptance tests against Kind with Kubernetes v1.23 with Consul 1.11 nightly failed. Check the logs at: ${CIRCLE_BUILD_URL}"

Expand Down Expand Up @@ -1218,6 +1224,7 @@ jobs:
- store_artifacts:
path: /tmp/test-results
- slack/status:
channel: *slack-channel
fail_only: true
failure_message: "Acceptance tests against Kind with Kubernetes v1.23 with Consul 1.12 nightly failed. Check the logs at: ${CIRCLE_BUILD_URL}"

Expand Down Expand Up @@ -1255,6 +1262,7 @@ jobs:
- store_artifacts:
path: /tmp/test-results
- slack/status:
channel: *slack-channel
fail_only: true
failure_message: "Acceptance tests against Kind with Kubernetes v1.23 with Consul 1.13 nightly failed. Check the logs at: ${CIRCLE_BUILD_URL}"

Expand Down Expand Up @@ -1288,13 +1296,13 @@ workflows:
requires:
- dev-upload-docker
nightly-acceptance-tests:
# triggers:
# - schedule:
# cron: "0 0 * * *"
# filters:
# branches:
# only:
# - main
triggers:
- schedule:
cron: "0 0 * * *"
filters:
branches:
only:
- main
jobs:
- build-distro:
OS: "linux"
Expand Down Expand Up @@ -1324,7 +1332,6 @@ workflows:
- dev-upload-docker
- acceptance-eks-cni-1-19:
requires:
# TODO: Cleanup on merge
- cleanup-eks-resources
- dev-upload-docker
- acceptance-aks-1-21:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
FEATURES:
* MaxInboundConnections in service-defaults CRD
* Add support for MaxInboundConnections on the Service Defaults CRD. [[GH-1437](https://github.com/hashicorp/consul-k8s/pull/1437)]
* Consul CNI Plugin
* CNI Plugin for Consul-k8s [[GH-1465](https://github.com/hashicorp/consul-k8s/pull/1456)]

IMPROVEMENTS:
* CLI:
Expand Down
1 change: 0 additions & 1 deletion charts/consul/templates/cni-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ spec:
command:
- consul-k8s-control-plane
- install-cni
- -multus={{ .Values.connectInject.cni.multus }}
- -log-level={{ default .Values.global.logLevel .Values.connectInject.cni.logLevel }}
- -cni-bin-dir={{ .Values.connectInject.cni.cniBinDir }}
- -cni-net-dir={{ .Values.connectInject.cni.cniNetDir }}
Expand Down
5 changes: 0 additions & 5 deletions charts/consul/test/unit/cni-daemonset.bats
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ load _helpers
-s templates/cni-daemonset.yaml \
--set 'connectInject.cni.enabled=true' \
--set 'connectInject.enabled=true' \
--set 'connectInject.cni.multus=foo' \
--set 'connectInject.cni.logLevel=bar' \
--set 'connectInject.cni.cniBinDir=baz' \
--set 'connectInject.cni.cniNetDir=foo' \
Expand All @@ -76,10 +75,6 @@ load _helpers
yq 'any(contains("install-cni"))' | tee /dev/stderr)
[ "${actual}" = "true" ]

local actual=$(echo "$cmd" |
yq 'any(contains("multus=foo"))' | tee /dev/stderr)
[ "${actual}" = "true" ]

local actual=$(echo "$cmd" |
yq 'any(contains("log-level=bar"))' | tee /dev/stderr)
[ "${actual}" = "true" ]
Expand Down
8 changes: 0 additions & 8 deletions charts/consul/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1938,14 +1938,6 @@ connectInject:
# Requires connectInject.enabled to also be true.
# @type: boolean
enabled: false

# If multus plugin is enabled or not. If true, the CNI installer will generate a consul CNI configuration
# in a location for the multus program to use. Also, the helm chart will create a custom resource for
# NetworkAttachmentDefintion that multus will consume. The values for cniBinDir and cniNetDir must also be
# changed for multus to work.
# Please refer to your cloud platform for more informaton on using multus.
# @type: boolean
multus: false

# Log level for the installer and plugin. Overrides global.logLevel
# @type: string
Expand Down

0 comments on commit 6142d3a

Please sign in to comment.