Documentation
¶
Overview ¶
Copyright 2025 Matrix Origin
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2025 Matrix Origin ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2025 Matrix Origin ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
const ( PodNameEnvKey = "POD_NAME" HeadlessSvcEnvKey = "HEADLESS_SERVICE_NAME" NamespaceEnvKey = "NAMESPACE" PodIPEnvKey = "POD_IP" )
Variables ¶
This section is empty.
Functions ¶
func HaKeeperSvcAddrs ¶
HaKeeperSvcAddrs returns the HAKeeper service addresses for the currently running LogStore pods, correctly skipping ordinal holes specified by reservedOrdinals (mirrors StatefulSet.spec.reserveOrdinals set during failover). Use this instead of HaKeeperAdds when the caller can supply the reserved-ordinal list from the underlying kruise StatefulSet (sts.Spec.ReserveOrdinals).
func LogSetStsName ¶
LogSetStsName returns the name of the kruise StatefulSet managed for the given LogSet. Exported so that other controllers (e.g. dnset, cnset) can look up the STS to read ReserveOrdinals without requiring a CRD change.
Types ¶
type Actor ¶
type Actor struct {
FailoverEnabled bool
}
type WithResources ¶
type WithResources struct {
*Actor
// contains filtered or unexported fields
}