Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions api/v1/ptpconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ type PtpProfile struct {
Phc2sysOpts *string `json:"phc2sysOpts,omitempty"`
Ts2PhcOpts *string `json:"ts2phcOpts,omitempty"`
Synce4lOpts *string `json:"synce4lOpts,omitempty"`
ChronydOpts *string `json:"chronydOpts,omitempty"`
Ptp4lConf *string `json:"ptp4lConf,omitempty"`
Phc2sysConf *string `json:"phc2sysConf,omitempty"`
Ts2PhcConf *string `json:"ts2phcConf,omitempty"`
Synce4lConf *string `json:"synce4lConf,omitempty"`
ChronydConf *string `json:"chronydConf,omitempty"`
// +kubebuilder:validation:Enum=SCHED_OTHER;SCHED_FIFO;
PtpSchedulingPolicy *string `json:"ptpSchedulingPolicy,omitempty"`
// +kubebuilder:validation:Minimum=1
Expand Down
10 changes: 10 additions & 0 deletions api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions bundle/manifests/ptp.openshift.io_ptpconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ spec:
profile:
items:
properties:
chronydConf:
type: string
chronydOpts:
type: string
interface:
type: string
name:
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/ptp.openshift.io_ptpconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ spec:
profile:
items:
properties:
chronydConf:
type: string
chronydOpts:
type: string
interface:
type: string
name:
Expand Down
5 changes: 3 additions & 2 deletions controllers/ptpoperatorconfig_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"net/url"
"os"
"path/filepath"
"sort"
"strings"
"time"

Expand Down Expand Up @@ -246,9 +247,9 @@ func (r *PtpOperatorConfigReconciler) syncLinuxptpDaemon(ctx context.Context, de
pluginList = append(pluginList, k)
}
} else {
pluginList = []string{"e810"} // Enable e810 by default if plugins not specified
pluginList = []string{"e810", "ntpfailover"} // Enable e810 by default if plugins not specified
}

sort.Strings(pluginList)
enabledPlugins := strings.Join(pluginList, ",")
data.Data["EnabledPlugins"] = enabledPlugins
if enabledPlugins != "" {
Expand Down
4 changes: 4 additions & 0 deletions manifests/stable/ptp.openshift.io_ptpconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ spec:
profile:
items:
properties:
chronydConf:
type: string
chronydOpts:
type: string
interface:
type: string
name:
Expand Down