-
Notifications
You must be signed in to change notification settings - Fork 3
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
chore: Simplify developer experience, no need for curl -H just browse a url #123
base: main
Are you sure you want to change the base?
Conversation
@@ -133,6 +161,21 @@ func (c icli) InitCMD() *cli.Command { | |||
Action: c.InitServiceAccountCMD, | |||
Before: c.baseBeforeFunc, | |||
}, | |||
{ | |||
Name: "knative-domain", | |||
Usage: "updates knative service default domain", |
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.
Can we make clear that a positional argument is required here?
PS. I've tried it with test.example.com
and the config map now has both the domains, is this expected?
➜ initium-cli git:(chore/knative_domain) ✗ kubectl get cm config-domain -n knative-serving -o yaml
apiVersion: v1
data:
example.com: ""
test.example.com: ""
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 have added a condition to look for an argument and if not to error out with a msg.
- The behaviour is what I mentioned yesterday when you suggested that maybe tilt or argocd reverts to example.com. Will investigate..
func DomainUpd(kn_domain string, config *rest.Config) error { | ||
// Default Knative values | ||
configMapName := "config-domain" | ||
namespace := "knative-serving" |
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 should not be hardcoding this imho, it limits the options in case someone has knative deployed in a different namespace.
Let me see if we can set the right default for the namespace
flag
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.
checking if we can use namespace flag..
Closes Simplify developer experience, no need for curl -H just browse a url one.