Skip to content

Conversation

@spchortis
Copy link
Contributor

},
{
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

3 participants