Commit Graph

568 Commits

Author SHA1 Message Date
James Munnelly
486cd3ae18 Copy across WIP acme v2 golang package 2018-03-23 18:50:44 +00:00
jetstack-bot
b3ddc60331
Merge pull request #410 from munnerz/update-k8s-deps
Update k8s dependencies to v1.10.0-rc.1
2018-03-23 18:50:15 +00:00
James Munnelly
34ae73615b Run hack/update-codegen.sh 2018-03-23 18:30:49 +00:00
James Munnelly
bbf74d4b07 Update k8s dependencies to v1.10.0-rc.1 2018-03-23 18:30:16 +00:00
jetstack-bot
5865aba4da
Merge pull request #397 from euank/hack-ver
make: split 'verify_pr' out
2018-03-16 12:43:29 +00:00
Euan Kemp
9233e30ef5 make: split 'verify_pr' out
This allows a developer to type 'make verify' and get working useful
output. The new char_verify behavior can't currently be run on a
developer's machine since it depends on a git pr sha being set.

I also fixed up the list of phony targets
2018-03-15 19:09:21 -07:00
Euan Kemp
9f76e28d02 make: default to building, not verifying 2018-03-15 19:09:21 -07:00
Euan Kemp
25979480d4 hack: correctly check for empty PULL_BASE_SHA
The existing comparison fails due to the 'nounset' option being on.
That failure masks the nicely formatted error message the if message is
trying to print. This correctly prints the intended error instead of
bash's default unset behavior.
2018-03-15 19:09:21 -07:00
jetstack-bot
08df3631fa
Merge pull request #396 from munnerz/fix-verify-script
Fix verify-chart-version script when running more than once
2018-03-15 20:34:08 +00:00
jetstack-bot
9104ab435d
Merge pull request #386 from kragniz/update-certs-on-ingress-change
Reconfigure certs when ingress config changes
2018-03-15 18:33:09 +00:00
James Munnelly
da71175a7e Fix verify-chart-version script when running more than once 2018-03-15 18:11:25 +00:00
jetstack-bot
64be4bd4ce
Merge pull request #391 from euank/​​​
Trim aws credentials for acme dns route53 provider
2018-03-15 18:04:09 +00:00
Euan Kemp
78b1b8d69d issuer/acme/dns: refactor provider construction
Previously, each provider's package-level 'New' function was being
called.

That made mocking it out for a different function that records data or
returns different output quite difficult.

This PR introduces an additional layer of abstraction in the form of
effectively a vtable struct for the dns providers. It's defaulted to the
same package-level constructors as before, but unit tests in the dns
package can easily override it.

A new test for the previously-introduced route53 trimming behavior is
also added.
2018-03-14 01:25:15 -07:00
Euan Kemp
8aefbb1470 Trim aws credentials for acme dns route53 provider
AWS credentials don't contain whitespace, and it's very easy to
accidentally include spaces or newlines at the end of secrets.
2018-03-14 01:09:25 -07:00
Louis Taylor
1690408632
crtEqual -> certNeedsUpdate 2018-03-12 18:40:56 +00:00
Louis Taylor
7bb9048578
Add update testcase 2018-03-12 18:36:39 +00:00
Louis Taylor
d7153ecc1e
Test updates 2018-03-12 18:36:21 +00:00
Louis Taylor
6eb1c6f931
Split Expected into ExpectedCreate and ExpectedUpdate 2018-03-12 17:44:53 +00:00
Louis Taylor
2e5619b1d5
Replace reflect.DeepEqual with crtEqual 2018-03-12 14:00:16 +00:00
jetstack-ci-bot
cfa13a02df
Merge pull request #376 from jetstack/munnerz-patch-1
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Clarify ClusterIssuer resource namespace

**What this PR does / why we need it**:

Clarify ClusterIssuer resource namespace in the migrating from kube lego guide

**Release note**:
```release-note
NONE
```
2018-03-12 10:28:16 +00:00
jetstack-ci-bot
e8d0d21164
Merge pull request #382 from whereisaaron/patch-1
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Document common ingressShim.extraArgs use case in chart

**What this PR does / why we need it**:

Lots of new users don't realize:
(a) They need to create a Issuer/ClusterIssuer themselves
(b) They need to tell `ingress-shim` the name via `extra-args`
This PR adds a comment to the helm chart `values.yaml` to address these issues.

(Ideally the `helm` would create an ClusterIssuer for you by default, and set these options, if you specify and email address to use with LE.)

Release note:
```release-note
NONE
```
2018-03-12 10:28:06 +00:00
jetstack-ci-bot
ce9e5ede2b
Merge pull request #351 from jonboulle/master
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Fix various typos in spelling of Certificate
2018-03-12 10:14:09 +00:00
James Munnelly
af05ca81cb
Fix plural of ClusterIssuer 2018-03-12 09:54:13 +00:00
Aaron Roydhouse
f117e6e833
Merge branch 'master' into patch-1 2018-03-09 22:44:56 -05:00
Aaron Roydhouse
57f248ae94 Bump chart version and run ./hack/update-deploy-gen.sh again 2018-03-09 22:40:16 -05:00
Aaron Roydhouse
96c4f9e145 Run ./hack/update-deploy-gen.sh 2018-03-09 22:18:54 -05:00
Louis Taylor
801888f0f0
Reconfigure certs when ingress config changes 2018-03-08 21:08:22 +00:00
jetstack-ci-bot
3a0d72c7a2
Merge pull request #381 from euank/minikube-docs
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

 docs/devel: add 'deploy to minikube' docs 

**What this PR does / why we need it**:

I felt that the steps to deploy/run/test cert-manager in minikube were non-trivial enough that it was worth documenting.

Let me know if this should live somewhere else in the repo or if you have suggestions for how to better document this.

```release-note
NONE
```
2018-03-08 16:57:37 +00:00
jetstack-ci-bot
5eefe871a8
Merge pull request #350 from kiall/chart-scheduling
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Helm Chart: Add support for affinity and tolerations

Adds support for setting the node affinity and tolerations scheduling options

```release-note
Add support for node affinity and tolerations in Helm chart
```
2018-03-08 16:40:09 +00:00
jetstack-ci-bot
fff6596bc9
Merge pull request #385 from jetstack/munnerz-patch-3
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Fix .gitlab-ci.yml build

Since #372 merged, builds of master (which lead to releases) have been failing.

Technically, the PULL_BASE_SHA should be set to the SHA value of the branch this PR is being *merged into*. Because we don't actually test these on GitLab, this workaround is okay (setting it to the value of the current commit).


**Release note**:
```release-note
NONE
```
2018-03-08 13:47:03 +00:00
jetstack-ci-bot
ecedad896a
Merge pull request #384 from jetstack/munnerz-patch-2
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Add missing apiVersion to Issuer sample docs

**What this PR does / why we need it**:

This PR is in response to #379

```release-note
NONE
```
2018-03-08 13:38:27 +00:00
James Munnelly
e50f75011d
Fix .gitlab-ci.yml build 2018-03-08 13:29:21 +00:00
James Munnelly
6215ff692c
Add missing apiVersion to Issuer sample docs 2018-03-08 13:17:36 +00:00
Kiall Mac Innes
640991c099 Run hack/update-deploy-gen.sh 2018-03-06 13:44:15 +00:00
Aaron Roydhouse
0b5042c657
Bump chart version for documentation update 2018-03-06 00:20:11 -05:00
Aaron Roydhouse
386a0ec54e
Document common use case options in values.yaml
Lots of new users don't realize:
(a) They need to create a Issuer/ClusterIssuer themselves
(b) They need to tell `ingress-shim` the name via `extra-args`

(Ideally the `helm` would create an ClusterIssuer for you by default, and set these options, if you specify and email address to use with LE.)
2018-03-06 00:19:05 -05:00
Euan Kemp
c82226c7d1 docs/examples: fix typo in example cert 2018-03-05 17:09:51 -08:00
Euan Kemp
4736c4fe27 docs/devel: add 'deploy to minikube' docs
The rbac and docker-env bits are tricky enough that I think it's worth
documenting this.
2018-03-05 17:09:50 -08:00
James Munnelly
4e262ee1d7
Clarify ClusterIssuer resource namespace 2018-03-02 11:12:11 +00:00
jetstack-ci-bot
24f0bbe1f3
Merge pull request #372 from munnerz/verify-chart-version
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Verify helm chart version is bumped when a chart is changed

**What this PR does / why we need it**:

Verifies that the Helm chart version is bumped when a file in the chart is changed.

**Release note**:
```release-note
NONE
```
2018-03-02 10:57:40 +00:00
James Munnelly
b425d77f1e Verify helm chart version is bumped when a chart is changed 2018-03-02 10:01:53 +00:00
jetstack-ci-bot
35fd53028e
Merge pull request #359 from wmedlar/document-route53-policy
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Document the minimum necessary permissions for using cert-manager with Route53

**What this PR does / why we need it**: Necessary permissions previously not documented.

**Release note**:

```release-note
Document the minimum necessary permissions for using cert-manager with Route53
```
2018-03-01 15:24:06 +00:00
Will Medlar
ffeedf7d5d Remove non-recommended hostedZoneID from Route53 example 2018-03-01 09:21:13 -05:00
jetstack-ci-bot
09fbbb4d4a
Merge pull request #361 from hackcave/fix/google-dns-ip
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Use Google's DNS IPs instead of domain

**What this PR does / why we need it**:
If /etc/resolv.conf does not have any entries, then its unlikely
that the domain name representation of google's DNS would get
resolved too. Hence using IP address directly makes sense.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #360

**Special notes for your reviewer**:

**Release note**:
```release-note
NONE
```
2018-03-01 12:40:01 +00:00
jetstack-ci-bot
0b9ce0cf3b
Merge pull request #356 from munnerz/rbac-disable
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Remove old deployment manifests. Update RBAC disable advice.

**What this PR does / why we need it**:

Since #352 merged, we now use the k/charts chart in the deployment guide. This PR updates our deploying docs to reflect the options on the upstream k/charts chart.

It also removes some old and unused deployment files to reduce confusion for new users.

**Special notes for your reviewer**:

**Release note**:
```release-note
NONE
```

/assign
2018-02-28 11:31:01 +00:00
Adarsh J
c4a93bcff5 Use Google's DNS IPs instead of domain
If /etc/resolv.conf does not have any entries, then its unlikely
that the domain name representation of google's DNS would get
resolved too. Hence using IP address directly makes sense.
2018-02-28 02:06:02 +05:30
Will Medlar
b65cdde8a9 Document the minimum permissions for using cert-manager with Route53 2018-02-27 14:56:21 -05:00
James Munnelly
b98f3e64cb Remove old deployment manifests. Update RBAC disable advice. 2018-02-27 08:34:43 +00:00
jetstack-ci-bot
8022e6ab93
Merge pull request #352 from hvaara/guides-charts-repo
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Update guides to use official Charts repository

**What this PR does / why we need it**:
Updates docs to use Chart from kubernetes/charts in the installation/migration guides. This makes it less confusing which Chart to use. There was a short discussion about this with @ahmetb and @munnerz on Slack https://kubernetes.slack.com/archives/C4NV3DWUC/p1519675336000598

**Which issue this PR fixes**
No issue filed.

**Special notes for your reviewer**:
None.

**Release note**:
```release-note
NONE
```
2018-02-27 08:32:17 +00:00
Roy Hvaara
87fa7b170b
Update guides to use official Charts repository 2018-02-26 21:39:41 +01:00