-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Venafi CertificateRequest controller #1968
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JoshVanL The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I guess the venafi e2e tests are still broken? |
go.mod
Outdated
@@ -104,6 +104,7 @@ require ( | |||
k8s.io/kube-aggregator v0.0.0-20190222095010-0b78038fe9e5 | |||
k8s.io/kube-openapi v0.0.0-20190228160746-b3a7cee44a30 | |||
k8s.io/utils v0.0.0-20190607212802-c55fbcfc754a | |||
launchpad.net/gocheck v0.0.0-20140225173054-000000000087 // indirect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs removing 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can also use a replace
directive to fix this once and for all and it fetching that repo actually work
pkg/util/api/api.go
Outdated
"github.com/jetstack/cert-manager/pkg/apis/certmanager/v1alpha1" | ||
) | ||
|
||
func DefaultCertDuration(d *metav1.Duration) time.Duration { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to put this into pkg/api/util
? Seems odd to define a new package just for this.
/retest |
1 similar comment
/retest |
af9b939
to
601701d
Compare
/hold |
/hold cancel |
default: | ||
message := "Failed to obtain venafi certificate" | ||
|
||
v.reporter.Pending(cr, err, "RetrieveError", message) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be Failed
? Else we're defaulting to retrying on failure...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather fail-safe 😬
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense
return v.ReadZoneConfigurationFn() | ||
} | ||
|
||
func (v *Venafi) SetClient(endpoint.Connector) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use in a test
/test all |
/retest |
1 similar comment
/retest |
/lgtm |
/retest |
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
CertificateRequests Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
/test pull-cert-manager-e2e-v1-15 |
/lgtm |
What this PR does / why we need it:
Adds the Venafi
CertificateRequest
controller.-->
/assign