Documentation ¶
Index ¶
- Constants
- func CapVerFromFileName(name string) (tailcfg.CapabilityVersion, error)
- func DNSCfgIsReady(cfg *tsapi.DNSConfig) bool
- func ProxyClassIsReady(pc *tsapi.ProxyClass) bool
- func RemoveConnectorCondition(conn *tsapi.Connector, conditionType tsapi.ConnectorConditionType)
- func SetConnectorCondition(cn *tsapi.Connector, conditionType tsapi.ConnectorConditionType, ...)
- func SetDNSConfigCondition(dnsCfg *tsapi.DNSConfig, conditionType tsapi.ConnectorConditionType, ...)
- func SetProxyClassCondition(pc *tsapi.ProxyClass, conditionType tsapi.ConnectorConditionType, ...)
- func TailscaledConfigFileNameForCap(cap tailcfg.CapabilityVersion) string
- type Records
Constants ¶
const ( Alpha1Version = "v1alpha1" DNSRecordsCMName = "dnsrecords" DNSRecordsCMKey = "records.json" )
Variables ¶
This section is empty.
Functions ¶
func CapVerFromFileName ¶ added in v1.66.2
func CapVerFromFileName(name string) (tailcfg.CapabilityVersion, error)
CapVerFromFileName parses the capability version from a tailscaled config file name previously generated by TailscaledConfigFileNameForCap.
func DNSCfgIsReady ¶ added in v1.66.0
func ProxyClassIsReady ¶ added in v1.60.0
func ProxyClassIsReady(pc *tsapi.ProxyClass) bool
func RemoveConnectorCondition ¶
func RemoveConnectorCondition(conn *tsapi.Connector, conditionType tsapi.ConnectorConditionType)
RemoveConnectorCondition will remove condition of the given type if it exists.
func SetConnectorCondition ¶
func SetConnectorCondition(cn *tsapi.Connector, conditionType tsapi.ConnectorConditionType, status metav1.ConditionStatus, reason, message string, gen int64, clock tstime.Clock, logger *zap.SugaredLogger)
SetConnectorCondition ensures that Connector status has a condition with the given attributes. LastTransitionTime gets set every time condition's status changes.
func SetDNSConfigCondition ¶ added in v1.66.0
func SetDNSConfigCondition(dnsCfg *tsapi.DNSConfig, conditionType tsapi.ConnectorConditionType, status metav1.ConditionStatus, reason, message string, gen int64, clock tstime.Clock, logger *zap.SugaredLogger)
SetDNSConfigCondition ensures that DNSConfig status has a condition with the given attributes. LastTransitionTime gets set every time condition's status changes
func SetProxyClassCondition ¶ added in v1.60.0
func SetProxyClassCondition(pc *tsapi.ProxyClass, conditionType tsapi.ConnectorConditionType, status metav1.ConditionStatus, reason, message string, gen int64, clock tstime.Clock, logger *zap.SugaredLogger)
SetProxyClassCondition ensures that ProxyClass status has a condition with the given attributes. LastTransitionTime gets set every time condition's status changes.
func TailscaledConfigFileNameForCap ¶ added in v1.66.2
func TailscaledConfigFileNameForCap(cap tailcfg.CapabilityVersion) string
TailscaledConfigFileNameForCap returns a tailscaled config file name in format expected by containerboot for the given CapVer.
Types ¶
type Records ¶ added in v1.66.0
type Records struct { // Version is the version of this Records configuration. Version is // written by the operator, i.e when it first populates the Records. // k8s-nameserver must verify that it knows how to parse a given // version. Version string `json:"version"` // IP4 contains a mapping of DNS names to IPv4 address(es). IP4 map[string][]string `json:"ip4"` }