Commit Graph

240 Commits

Author SHA1 Message Date
jetstack-bot
9a64cfa027
Merge pull request #1008 from munnerz/ref-docs-cleanup
Move reference-docs generation tools into docs/ subdir
2018-11-15 11:35:00 +00:00
Max Ehrlich
bbd9249198 Configurable issuer duration and renewBefore Take 2 (#893)
* Configurable issuer duration and renewBefore [1/3]

This is part one of (probably) three parts manually moving the changes from commit 723015174a167d746323f506ab3575cfb243d8bd to the new master. This commit moves the basic functionality of configurable duration while skipping e2e tests and docs. It does not include new work.

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Configurable issuer duration and renewBefore [2/3]

This commit moves over most of the e2e testing updates, some things are intentionally left out as they may be obsolete

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Configurable issuer duration and renewBefore [3/3]

This commit moves the documentation changes, completely the migration of the original code to the latest master

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Rerunning all hack scripts with since the massive bazel update

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Add missing boilerplate headers

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Rerun codegen hack

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Rerunning update-docs hack

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Fix failing unit tests

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Fix build errors in e2e tests

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Rerun update-deps

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Don't recreate the CA issuer, it already exists

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Need to create new issuers for the duration and renew time tests because those fields are set in the issuer, so make sure they are named uniquely

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Add duration e2e tests for self-signed issuer

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Add duration e2e tests for vault w/ custom mount path

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Add validation to disallow acme certificates with duration and renewBefore set and update unit tests to verify

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Update docs to mention duration/renew for self-signed issuer and fix potential parsing errors with rst formatting

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Self-signed issuer was missing duration validation

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Fix a bug causing certificates with a short enough renew-before w.r.t their duration to be renewed instantly and forever

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Print the exact time until renewal

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Move duration and renwal validation to the issuer validation

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Update e2e tests to work with new validation

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Add e2e test for the self-signed issuer

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Redo cert duration and renew before to appear as part of the CSR and not the issuer

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Updating tests to match new duration/renewbefore format

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Update e2e tests to match new format

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Update docs to reflect changing the field from issuers to certificates

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Remove event firing and replace with a TODO as of discussion on PR

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Run hack scripts

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Remove the sync unit test since without events there is no way to catch the warnings that it was testing

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Use IssuerOptions RenewBeforeExpiryDuration if certificates dont set a renewBefore value for immediate renewal checks

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Delete check on certificate data length in e2e test for certificate duration as there is no reason it should be there

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Update e2e tests since certificate creation will never generate an event

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Rerunning hack scripts after big rebase

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Fix a few problems that slipped through during the rebase

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Fix an e2e error that resulted from the rebase

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Add unit test for the calculateTimeBeforeExpiry function

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Adding back in a bunch of missing error checks

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Remove unused function

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Add missing boilerplate

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Remove unused constant

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Move log constants to function body

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Rerun hack scripts

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Remove mistakenly commited file

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Remove double-import of util package

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Fix bad function call in e2e vault issuer

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Change duration and renewBefore to be pointer fields as they are optional

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Remove wrong vault issuer test that got passed the rebase somehow

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Change e2e to use pointer format

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Move e2e cert tests out of issuer test file

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Move e2e self-signed issuer test to new location

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Make sure to check for nil in GenerateTemplate

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Add more empty checks to be safe

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Rerunning hacks after rebase

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Fix bad function call in new e2e test

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Try not setting duration and renewbefore on acme e2e tests

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Zero checks should really just be replaced by nil tests, zero should be caught as any other too-small value

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Fixed a missing nil check that got away

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Change e2e duration test format to use pointer times to better simulate API calls

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Fix sync unit test to match e2e test format

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Fix vault e2e test

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

* Revert changes to Certificate sync function

Signed-off-by: James Munnelly <james@munnelly.eu>

* Remove selfsigned e2e issuer.go

Signed-off-by: James Munnelly <james@munnelly.eu>

* Don't use ACME issuer in duration example and tidy up line endings

Signed-off-by: James Munnelly <james@munnelly.eu>

* Allow renewBefore to be set on ACME certificates

Signed-off-by: James Munnelly <james@munnelly.eu>

* Update renewBefore ACME docs. Remove unused fields.

Signed-off-by: James Munnelly <james@munnelly.eu>

* Rename calculateTimeBeforeExpiry to calculateDurationUntilRenew

Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-14 22:30:00 +00:00
James Munnelly
b71944b5a4 Move reference-docs generation tools into docs/ subdir
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-14 00:48:06 +00:00
jetstack-bot
3ce276d5e8
Merge pull request #1066 from heckj/files-for-quickstart
adding files for quickstart
2018-11-13 11:21:59 +00:00
Joe Heck
c18449afb4 adding files for quickstart
- I'm going to reference them, but the testing for this repo does
  link validation up front, so the files need to exist in their final
  locations before the other PR can pass it's testing/validation.

Signed-off-by: Joe Heck <heckj@mac.com>
2018-11-10 12:58:50 -08:00
Joe Heck
7e3ee68879 minor grammar improvement
Signed-off-by: Joe Heck <heckj@mac.com>
2018-11-10 09:48:54 -08:00
Joe Heck
facf1e9fb4 clean up sphinx warnings
- fixed missing blank line in ref docs code block
- updated references to sphinx docs
- included documentation notes into the docs index

Signed-off-by: Joe Heck <heckj@mac.com>
2018-11-10 09:48:54 -08:00
James Munnelly
efe2129c69 Run //hack:update-reference-docs
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-06 12:32:05 +00:00
jetstack-bot
d8e652c48e
Merge pull request #986 from munnerz/bazel-kind
Use kind provided by Bazel WORKSPACE
2018-10-26 15:23:34 +01:00
Floyd May
f3bc8b5491 Update kube-lego migration guide towards logs
Related to #773 - the previous instructions guide the user to look for events on the certificate related to when renewals are scheduled. This change directs them to view the logs to see the renewal schedule messages.
Signed-off-by: Floyd May <fmay@asemio.com>
2018-10-26 09:06:33 -05:00
James Munnelly
be47be486d Update running e2e tests docs
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-10-26 14:44:12 +01:00
jetstack-bot
12ed381cb8
Merge pull request #972 from aslafy-z/dns/digitalocean
Add ACME DigitalOcean DNS01 provider
2018-10-26 11:54:34 +01:00
Sergej Nikolaev
f2add649e7 add certmanager.k8s.io/acme-http01-ingress-class annotation
Signed-off-by: Sergej Nikolaev <kinolaev@gmail.com>
2018-10-25 22:14:08 +03:00
Zadkiel Aharonian
7f8a3a7970
regenerate
Signed-off-by: Zadkiel Aharonian <hello@zadkiel.fr>
2018-10-23 16:27:30 +02:00
Zadkiel Aharonian
1cd4495fd1
Add link to digitalocean access-token docs
Signed-off-by: Zadkiel Aharonian <hello@zadkiel.fr>
2018-10-23 16:25:49 +02:00
Zadkiel Aharonian
59e905cbcc
Add ACME DigitalOcean DNS01 provider
Signed-off-by: Zadkiel Aharonian <hello@zadkiel.fr>
2018-10-23 16:25:49 +02:00
James Munnelly
e9441e6fdc Run //hack:update-reference-docs
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-10-23 10:59:31 +01:00
jetstack-bot
80ea8e7444
Merge pull request #982 from munnerz/refdocs-bazel
Run all reference docs generation with Bazel
2018-10-23 10:43:20 +01:00
James Munnelly
4a9de511b3 Run all docs generation with Bazel
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-10-23 02:15:26 +01:00
Theotime Leveque
1d405339fe Fix typo in developer documentation.
Signed-off-by: Theotime Leveque <theotime@protonmail.com>
2018-10-22 21:36:29 +02:00
jetstack-bot
54d8ef7e8a
Merge pull request #911 from vdesjardins/vault-ca-bundle
vault ca bundle support
2018-10-12 15:06:39 +01:00
James Munnelly
2454dfa76f Regenerate reference docs
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-10-12 14:09:43 +01:00
James Munnelly
4eb48b9c04 run //hack:update-reference-docs
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-10-12 12:40:37 +01:00
James Munnelly
2eb785655c Run //hack:update-codegen
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-10-12 12:40:37 +01:00
Vincent Desjardins
4e89b611cf missing omitempty for CABundle field in Vault issuer
Signed-off-by: Vincent Desjardins <vdesjardins@gmail.com>
2018-10-12 11:14:08 +00:00
Vincent Desjardins
92ac7a7c08 code review updates
Signed-off-by: Vincent Desjardins <vdesjardins@gmail.com>
2018-10-11 01:22:05 +00:00
Vincent Desjardins
7c1ff275f0 vault ca bundle support
Signed-off-by: Vincent Desjardins <vdesjardins@gmail.com>
2018-10-11 01:22:05 +00:00
jetstack-bot
620395511a
Merge pull request #924 from arnoldbechtoldt/useClusterIPsvc
Make http01 solver serviceType configurable
2018-10-10 13:42:11 +01:00
jetstack-bot
6751508b65
Merge pull request #915 from damienwebdev/master
Cert Issuer Docs Update and additional docs for AzureDNS docs
2018-10-10 13:13:12 +01:00
Arnold Bechtoldt
ce1dd5e8b5 update API docs
Signed-off-by: Arnold Bechtoldt <arnold.bechtoldt@inovex.de>
2018-10-10 13:31:07 +02:00
Evan Anderson
ec49d971ae Follow suggestions by @munnerz, add docs about the bazel targets to run.
Signed-off-by: Evan Anderson <evan.k.anderson@gmail.com>
2018-10-09 06:32:53 -07:00
Arnold Bechtoldt
c533390185 completely rename setting name in generated docs too
Signed-off-by: Arnold Bechtoldt <arnold.bechtoldt@inovex.de>
2018-10-08 15:30:51 +02:00
Arnold Bechtoldt
1587741820 rename setting and update docs regarding solver service type
Signed-off-by: Arnold Bechtoldt <arnold.bechtoldt@inovex.de>
2018-10-08 15:24:17 +02:00
Arnold Bechtoldt
d261e1f3f1 make serviceType configurable, fixes #928
Signed-off-by: Arnold Bechtoldt <arnold.bechtoldt@inovex.de>
2018-10-08 10:55:56 +02:00
Evan Anderson
063dcce978 Update links and add more documentation on needed tools for managing deps.
Signed-off-by: Evan Anderson <evan.k.anderson@gmail.com>
2018-10-08 00:09:44 -07:00
Evan Anderson
8ee8f407f8 Document the tools needed to perform a build.
Signed-off-by: Evan Anderson <evan.k.anderson@gmail.com>
2018-09-25 22:10:15 -07:00
Evan Anderson
aff8638711 Add instructions on generating documentation.
Signed-off-by: Evan Anderson <evan.k.anderson@gmail.com>
2018-09-25 22:10:15 -07:00
Evan Anderson
f67ecf5397 Clean up formatting on release process document.
Signed-off-by: Evan Anderson <evan.k.anderson@gmail.com>
2018-09-25 22:10:15 -07:00
James Munnelly
ef5190572c Fix issues with ingress-shim doc rendering and remove warning
Signed-off-by: James Munnelly <james.munnelly@jetstack.io>
2018-09-19 15:37:28 +01:00
Damien Retzinger
930103fc94 Cert Issuer Docs Update and additional docs for AzureDNS docs
Signed-off-by: Damien Retzinger <damienwebdev@gmail.com>
2018-09-18 16:08:33 -04:00
Jamie Lennox
cb1f47fe25 Specify we want the disable-validation label not annotation
All other documentation and charts around disable-validation refers to a
lablel that is required, except the upgrade notes which is where people
likely look first.

Signed-off-by: Jamie Lennox <jamie@vibrato.com.au>
2018-09-14 10:56:46 +10:00
James Munnelly
c48018c1a1 run //hack:update-reference-docs
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-09-13 11:25:04 +01:00
James Munnelly
5e16dd47ab Run brodocs using bazel
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-09-13 11:25:03 +01:00
James Munnelly
38078cf5cd Commit openapi_generated.go
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-09-13 11:25:02 +01:00
James Munnelly
e7677f3656 Update update-codegen to run openapi-gen
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-09-13 11:24:53 +01:00
James Munnelly
db65d6a170 run //hack:update-bazel
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-09-13 11:24:48 +01:00
jetstack-bot
7924346bd8
Merge pull request #887 from munnerz/release-process
Add release process docs
2018-09-12 10:24:48 +01:00
jetstack-bot
feb589feb5
Merge pull request #661 from splashx/master
[ACME] Add RFC2136 DNS Provider (2nd attempt)
2018-09-12 09:11:48 +01:00
jetstack-bot
b88c4ad72a
Merge pull request #856 from ankyra/master
Documentation fix for `hostedZoneID` field
2018-09-12 08:45:48 +01:00
Bart Spaans
6b20e47378 Documentation fix for hostedZoneID field
Signed-off-by: Bart Spaans <bart.spaans@ankyra.io>
2018-09-11 11:12:21 +01:00