Commit Graph

40 Commits

Author SHA1 Message Date
Craig Box 9140d5208c
Update to v1 in all API examples (#15515)
* s/v1[ab].*/v1/g

* Fix tests with new snip versions

* always be kind
2024-08-06 22:59:22 -04:00
Peter Jausovec e6ab3f286f
fix formatting in mirroring task (#15446)
* fix formatting in mirroring task

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>

* fix linting issues

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>

* updated snips

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>

* add namespace label back

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>

* ugh

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>

* getting there ...

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>

* remove the ns label at the end of the test

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>

* Update content/en/docs/tasks/traffic-management/mirroring/index.md

Co-authored-by: Michael <haifeng.yao@daocloud.io>

* indent the tab sections

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>

* pr feedback

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>

* typo fix

---------

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>
Co-authored-by: Michael <haifeng.yao@daocloud.io>
2024-07-29 05:41:35 -04:00
Craig Box ba064414ff
Update documentation to not refer to experimental Gateway APIs (#15150)
* Update documentation to not refer to experimental APIs

* missed TCPRoute, we did have one example of that

* fix snip

* and again

* and again

* caught error, thanks @ericvn!
2024-05-21 21:56:02 -04:00
Frank Budinsky bfb9ab95ef
gateway-api: use v1 resources in examples (#14898) 2024-04-17 10:09:41 -07:00
Frank Budinsky c727b0c083
Fix snip generator stripping leading space in expected output (#14693)
* Fix snip generator stripping leading space in expected output

* also fix _out

* strip trailing newline

* regen

* tweak for readability

* remove ambient label
2024-03-07 12:29:19 -08:00
Frank Budinsky 113f9fd098
gateway-api: Service parentRef needs to specify core group (#13735)
* gateway-api: Service parentRef needs to specify core group

* regen
2023-08-16 13:56:36 -07:00
Keith Mattix II 3c94567ce1
Change Istio Classic terminology to Istio APIs (#13385)
* Change Istio Classic terminology to Istio APIs

Signed-off-by: Keith Mattix II <keithmattix@microsoft.com>

* Fix stutter

Signed-off-by: Keith Mattix II <keithmattix@microsoft.com>

* Change back parallel structure formation

Signed-off-by: Keith Mattix II <keithmattix@microsoft.com>

---------

Signed-off-by: Keith Mattix II <keithmattix@microsoft.com>
2023-06-16 07:02:06 -07:00
Frank Budinsky 31db1bcf2b
Fix mirroring test flake again (#12300) 2022-11-25 09:12:07 -08:00
Frank Budinsky 96ea93c033
Fix mirroring test flake again (#12290) 2022-11-24 10:54:06 -08:00
Frank Budinsky a69c5c5cba
gateway-api: tcp-traffic-shifting task instructions (#12260)
* gateway-api: tcp-traffic-shifting task instructions

* sleep service

* more wait

* wait for gtw
2022-11-21 10:07:57 -08:00
Frank Budinsky cc1f9dad5f
reenable mirroring gtwapi_test (#12250)
* reenable mirroring gtwapi_test

* fix typo
2022-11-16 12:57:57 -08:00
Frank Budinsky 2f5744b92b
gateway-api: add gateway api instructions to traffic shifting task (#12213)
* gateway-api: add gateway api instructions to traffic shifting task

* fixes

* verify lines

* fix request

* more delay

* disable flaky mirroring test
2022-11-14 13:01:34 -08:00
Frank Budinsky 285d3d99aa
Temporary fix for mirroring test flakiness (#12222) 2022-11-11 20:21:11 -08:00
Frank Budinsky 1bffb35b1c
gateway-api: add instructions to mirroring task (#12218) 2022-11-11 16:29:36 -05:00
Frank Budinsky f31d54066f
Fix broken sni-passthrough doc test (#12109)
* Fix broken sni-passthrough doc test

* remove exit
2022-10-18 00:24:38 -07:00
Eric Van Norman 22c1956465
Fix image used by sleep sample (doesn't use istio/istio sleep) (#9830) 2021-05-21 14:01:12 -07:00
Taction 38b55913f3
fix example content `mirrorPercent` to `mirrorPercentage` (#9764)
* fix example content `mirrorPercentage`

* commit generated file
2021-05-16 08:57:40 -07:00
John Howard 81a017eea5
Fix incorrect YAML casing (#8811)
Technically both work. Camel case is preferred
2021-01-20 14:41:37 -08:00
Xinnan Wen 06913341a3
fix mirror task doc (#8802)
* fix mirror task doc

* make gen
2021-01-20 11:12:29 -08:00
Eric Van Norman bea8d187e5
Silence curl command (#8773)
* Silence curl command

* Update more files with -sS (adding S to show errors)

* Over-agressive on the -S and causing some tests to fail.

* Remove more curl -S flags
2021-01-20 09:45:50 -08:00
sudeepbatra 8221b2adc6
Small update to clarify the mirror flow (#8509)
* Small update to clarify the mirror flow

Small clarification - This route rule sends 100% of the traffic from `v1` to `v2`

* Update index.md

ok updated, hope this clarifies further.

* Update content/en/docs/tasks/traffic-management/mirroring/index.md

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>
2020-12-01 08:33:38 -08:00
Frank Budinsky a70e78f25e
Test cleanup (#8564)
* Framework inject set +e at start of cleanup test script

* tabs

* fix typo

* add nl

* fix doc
2020-11-24 16:26:19 -05:00
Eric Van Norman cc1a34f99c
Update test reference - master (#8103)
* Update test reference

* Test framework changes

* Another required change

* Update Tag to 1.8

* Pick istio/istio commit that actually exists

* Disable ISTIO_META_DNS_CAPTURE

* Add --skip-confirmation to istioctl installl commands

* Increase test timeout. First pass at fixes.

* Update to later istio/istio that fixes DNS and minor fixes

* test fixes

* Pick up go.mod `replace` changes from #8118

* Fix istioctl-analayze and mirror

* Fix mtls-migration test

* Update istio to include commit to fix egress

* Re-enable verify with fix

* Update istio/istio ref for egress fix

* Fix tasks/security/authorization/authz-td-migration - remove ns

* Shorten wait timeout so tests complete in under an hr

* Let tests continue after wait timeout

* Fix --skip-confirmation to -y and use yes | in tests

* revert yes | to echo y |

* Additional echo y fix

* Code review comments

* Change verify from same to contains as k8s 1.19 has extra warning lines.
2020-09-16 11:44:20 -07:00
Frank Budinsky e9a89c879f
Add owner attribute to docs (#7737)
* Add owner attribute to docs

* remove @
2020-07-15 15:19:40 -07:00
Frank Budinsky 01c4cce951
Add proper wait for config calls to tests (#7620)
* Add wait for config calls to tests

* two more
2020-06-24 09:48:29 -07:00
Hongyi Zhang 5fbb14bedc
Convert all old tests to new tests (#7522)
* add an example task to test

* main test function: save progress

* a working example: routing request

* improve log info and error handling

* introduce makefile

* run each test as a subtest; remove common setup from test.sh

* add another test.sh: fault-injection

* improve error handling

* check test environment

* add two more test.sh files

* fix make command for istio setup

* update two test.sh files from upstream

* add comments and update README.md

* update test.sh files from upstream

* support multiple test names

* update README

* update README.md for new framework

* remove documentation of migration steps

* undo format changes

* change separation line to '# @cleanup'

* move go code and makefile from content/ to tests/

* change package name

* make for loop more readable

* change the set of auto-sourced scripts

* add docs for all functions

* approach to deal with folders with the same name

* minor fixes to ensure everything still runs

* fix make gen error

* add a TIMEOUT argument

* make sure util/debug.sh works with new framework

* make lint-go happy

* [BIG CHANGE] allow different istio setup configs

* make linters happy

* make linters happier

* changed wording and function orders

* make error return as the 2nd argument

* add TODOs

* Update content/en/docs/tasks/traffic-management/traffic-shifting/test.sh

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* Update tests/README.md

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* Update tests/README.md

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* Update tests/README.md

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* Update tests/README.md

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* Update tests/README.md

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* Update tests/README.md

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* only test english docs

* Update tests/README.md

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* allow test.sh as suffix

* move adding setup configs to tests/setup

* recommend full paths

* Update tests/README.md

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* require full test paths

* converting old tests to new tests: traffic-management and misc

* converting old tests to new tests: security

* remove old tests

* Update content/en/docs/tasks/security/cert-management/dns-cert/test.sh

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* simplify setup configs

* Update content/en/docs/tasks/security/authentication/authn-policy/test.sh

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* Update content/en/docs/tasks/security/authentication/mtls-migration/test.sh

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* Update content/en/docs/tasks/security/authorization/authz-http/test.sh

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* do not let istioctl prompt y/n

* Update content/en/docs/tasks/traffic-management/ingress/ingress-sni-passthrough/test.sh

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* Update content/en/docs/tasks/traffic-management/ingress/secure-ingress/test.sh

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* Update content/en/docs/tasks/security/cert-management/plugin-ca-cert/test.sh

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* simplify stuff

* rename dns-cert test.sh to test_broken.sh

* fix dns-cert doc and test

* remove egress=disabled

* fix test

* Update content/en/docs/tasks/observability/logs/access-log/test.sh

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* Update content/en/docs/tasks/security/authentication/authn-policy/test.sh

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>
2020-06-11 11:15:48 -07:00
Navraj Singh Chhina e7616b2ac0
Disable ShellChecking for SC2164 (#7507)
* add missing cleanup for vs nginx

* disable SC2164 which checks safe cd

* make gen
2020-06-08 13:56:32 -07:00
Frank Budinsky e11cf24f0d
Add test: attribute to all md files (#7413) 2020-05-27 09:11:26 -07:00
Frank Budinsky 77d3dc6bf1
Fix mirroring test (#7399)
* Fix mirroring test

* fix typo

* fixes

* export vars

* lint
2020-05-26 12:57:19 -07:00
Frank Budinsky 4e0103110d
Cleanup mirroring test (#7387)
* Cleanup mirroring test

* sleep

* fix mtls-migr cleanup

* debug

* debug2

* debug3

* debug4
2020-05-24 14:35:09 -07:00
Frank Budinsky f45bc9e1a8
Remove obsolete '# ' uses from all tests (#7233) 2020-05-06 19:17:11 -04:00
Frank Budinsky 1fe7056ffa
Partial convert mirror test to new model (#7153)
Reverted the actual mirror test script, because mirror test seems to have some subtle failure when running with what seems to be the exact same commands via snips. Will investigate further in followup PR. Merging this one to get the generator changes.
2020-04-25 12:34:24 -04:00
Gregory Hanson 3e8856ac1d
Traffic Mirror cleanup (#6787)
* automtls wording and remove broken sudo command

* remove confusing tip regarding auto mtls
2020-03-06 12:57:34 -08:00
SerenaFeng 8da598fdff V1/2_POD_IP error when there are other pods labelled version=v1/2 (#6245)
* bugfix: V1/2_POD_IP set error when there are multiple pods labelled version=v1/2

* certificate decode error when decoding from bash pipe by openssl

* revert certificate decode error when decoding from bash pipe by openssl
2020-01-03 11:14:56 -05:00
Frank Budinsky 23aeda36dd Add required matchLabels to deployments (#6155) 2019-12-20 10:49:06 -08:00
Frank Budinsky c8ac8eb91c Better organize operations guide material (#5163)
\
2019-10-16 09:59:04 -07:00
Naoki Oketani 31d21ffbb4 migrate Deployment apiVersion from extensions/v1beta1 to apps/v1 to support k8s 1.16 (#5159)
* migrate Deployment apiVersion from extensions/v1beta1 to apps/v1 to support k8s 1.16

* migrate Deployment, PodSecurityPolicy apiVersion to support k8s 1.16
2019-10-15 10:56:21 -07:00
Jonh Wendell 84b5aaca9e Mention mirror_percent field in mirroring task (#4975)
* Mention mirror_percent field in mirroring task

* Apply suggestions from code review

Co-Authored-By: Adam Miller <1402860+adammil2000@users.noreply.github.com>
2019-09-18 09:56:13 -07:00
Adam Miller 07178c1348 Reorganized the Operations node (#4765) 2019-08-16 16:03:31 -07:00
Martin Taillefer d0cf1e171e
Move English content to content/en as agreed in WG meeting. (#4789)
Once this goes in, I'll move content_zh to content/zh.
2019-08-14 15:45:31 -07:00