Comments (4)
👋 Is there a particular subcommand you are having issues with, looking at it the --context
flag exists for subcommands that interact with Kubernetes.
For example:
$ kubectl cert-manager upgrade migrate-api-version --help 2>&1 | grep -- "--context"
--context string The name of the kubeconfig context to use
$ kubectl cert-manager check api --help 2>&1 | grep -- "--context"
--context string The name of the kubeconfig context to use
from cert-manager.
... huh. It looks like when I was testing it I had the command wrong, and it works if I don't. For example:
$ kubectl cert-manager --context cluster3 check
.... (help stuff)
error: unknown flag: --context
however
$ kubectl cert-manager --context cluster3 check api
The cert-manager API is ready
So it looks like the actual bug is that if there is any syntax error and the context flag is present it will incorrectly report that the flag isn't supported =] much less critical, but confusing.
from cert-manager.
Yea, the flag is only on the subcommands that talk to Kubernetes.
kubeclt cert-manager check
does not, but kubeclt cert-manager check api
does.
I think the confusion lies in the fact kubectl has the flag as a "global" flag available everywhere, where the cert-manager plugin does not.
I have noticed an inconsistency in that the kubectl cert-manager experimental install
command has a different name for the flag:
kubectl cert-manager experimental install --help 2>&1 | grep context
--kube-context string name of the kubeconfig context to use
But that seems like a different issue
from cert-manager.
I am not familiar enough with the internals to be sure where the error is coming from, but just to be clear here is the full output:
$ kubectl cert-manager --context cluster3 check
Usage: kubectl cert-manager [command]
Available Commands:
api Check if the cert-manager API is ready
Flags:
-h, --help help for check
Global Flags:
--log-flush-frequency duration Maximum number of seconds between log flushes (default 5s)
--logging-format string Sets the log format. Permitted formats: "json" (gated by LoggingBetaOptions), "text". (default "text")
-v, --v Level[=2] number for the log level verbosity
--vmodule pattern=N,... comma-separated list of pattern=N settings for file-filtered logging (only works for text log format)
Use "kubectl cert-manager [command] --help" for more information about a command.
error: unknown flag: --context
It looks very much like the error "unknown flag: --context" is coming from the cert-manager plugin. Whether that's true or an illusion, I don't know =] Whatever the cause, the result is a help screen which appears to be very clearly explaining that --context
is not a valid flag, hence my confusion.
from cert-manager.
Related Issues (20)
- Update Certificate API definition on key length
- Intermediate certificate is not updated in child certificates
- ImagePullBackOff error Failed to pull image "quay.io/jetstack/cert-manager-controller:v1.13.3": x509: certificate signed by unknown authority HOT 2
- Add TLS support for /metrics prometheus server HOT 1
- Make Service Port and Webhook Service Port Configurable in Helm Chart HOT 4
- Add documentation for istio-csr and ingress with istio
- DNS01 challenge propagation check failed HOT 1
- Attempting to update Cert-Manager through TrueNAS via TrueCharts repository HOT 10
- api server request get through the proxy in cert manager HOT 2
- Warn users not to use insecure TSIG algorithms when using DNS UPDATE and ACME DNS01
- Consolidate duplicate functions: `RandStringRunes` and `RandStringBytes`
- `global.logLevel` is not documented in the Helm README file HOT 1
- Release cert-manager v1.14.0
- Waiting for DNS-01 challenge propagation: DNS record for 'hmccloud.com' not yet propagated.
- The startupapicheck image isn't published to quay.io, so the standard Helm install fails. HOT 1
- Cert manager not retrying after initial issuance is failed
- Add the ability to communicate with Vault via mTLS when strict client certificates is enabled at Vault server side
- HTTP01 Config Map Challenge Flow
- Certificate Issue in Bare metal server - http01 HOT 1
- [release-1.14-alpha] Certificate is not renewed when changing OtherName/ NameConstraints HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cert-manager.