Skip to content
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

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

spchortis
Copy link
Contributor

@@ -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",
Copy link
Member

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: ""

Copy link
Contributor Author

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"
Copy link
Member

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

Copy link
Contributor Author

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..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify developer experience, no need for curl -H just browse a url
2 participants