You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some modules need cluster-specific install values (ingress class, base
domain, storage class, TLS issuer). These are properties of the CLUSTER,
not per module, so set them once and every install inherits them.
- --ingress-class / --domain / --storage-class / --cluster-issuer on
'tiny up' and 'tiny install'. Persisted as annotations on the
tinysystems namespace (they travel with the cluster; no local dotfile).
- provision.Settings loads/saves them; module installs read them and set
managerIngress.ingress.{enabled,className}, global.defaultDomainSuffix,
the cert-manager.io/(cluster-)issuer ingress annotation, and
storage.{enabled,storageClassName,size} — gated by the catalog's
per-module requires_ingress / requires_storage flags.
- Agent install-on-the-fly inherits the same saved settings.
Zero-config on kind/minikube (no ingress class → ingress stays off,
port-forward). Verified live: flags persist to ns annotations; http-module
got a class=nginx ingress with cert-manager.io/cluster-issuer=<name>
(escaping correct); modules that don't need ingress didn't get one.
root.PersistentFlags().BoolVar(&flagNoRegister, "no-register", false, "don't auto-add the MCP endpoint to Claude Code on serve")
51
58
root.PersistentFlags().StringVarP(&flagProject, "project", "p", "", "active project for this session (created if missing); scopes the MCP endpoint + editor")
59
+
// Cluster install settings (persisted to the namespace; set once).
60
+
root.PersistentFlags().StringVar(&flagIngressClass, "ingress-class", "", "ingress controller class for modules that expose HTTP (e.g. nginx)")
61
+
root.PersistentFlags().StringVar(&flagDomain, "domain", "", "base domain suffix for module ingress hostnames")
62
+
root.PersistentFlags().StringVar(&flagStorageClass, "storage-class", "", "storage class for modules that need a PVC")
63
+
root.PersistentFlags().StringVar(&flagClusterIssuer, "cluster-issuer", "", "cert-manager ClusterIssuer name to annotate ingresses for TLS")
52
64
// --print is local to bare `tiny` (the serve command): dump the client
53
65
// config and exit instead of serving.
54
66
root.Flags().BoolVar(&flagPrint, "print", false, "print the MCP client config and exit (don't serve)")
0 commit comments