Skip to content

Commit

Permalink
Merge pull request #110 from briantkennedy/ptr
Browse files Browse the repository at this point in the history
Update API structs to not use slice of pointer.
  • Loading branch information
maxsmythe authored Apr 22, 2021
2 parents 4f80ac1 + 526012e commit 804ff2e
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 65 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ type CreateCRDError struct {
// an individual controller
type ByPodStatus struct {
// a unique identifier for the pod that wrote the status
ID string `json:"id,omitempty"`
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
Errors []*CreateCRDError `json:"errors,omitempty"`
ID string `json:"id,omitempty"`
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
Errors []CreateCRDError `json:"errors,omitempty"`
}

// ConstraintTemplateStatus defines the observed state of ConstraintTemplate
type ConstraintTemplateStatus struct {
Created bool `json:"created,omitempty"`
ByPod []*ByPodStatus `json:"byPod,omitempty"`
Created bool `json:"created,omitempty"`
ByPod []ByPodStatus `json:"byPod,omitempty"`
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file
}
Expand Down

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

18 changes: 4 additions & 14 deletions constraint/pkg/apis/templates/v1alpha1/zz_generated.deepcopy.go

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

Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ type CreateCRDError struct {
// an individual controller
type ByPodStatus struct {
// a unique identifier for the pod that wrote the status
ID string `json:"id,omitempty"`
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
Errors []*CreateCRDError `json:"errors,omitempty"`
ID string `json:"id,omitempty"`
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
Errors []CreateCRDError `json:"errors,omitempty"`
}

// ConstraintTemplateStatus defines the observed state of ConstraintTemplate
type ConstraintTemplateStatus struct {
Created bool `json:"created,omitempty"`
ByPod []*ByPodStatus `json:"byPod,omitempty"`
Created bool `json:"created,omitempty"`
ByPod []ByPodStatus `json:"byPod,omitempty"`
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file
}
Expand Down

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

18 changes: 4 additions & 14 deletions constraint/pkg/apis/templates/v1beta1/zz_generated.deepcopy.go

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

10 changes: 5 additions & 5 deletions constraint/pkg/core/templates/constrainttemplate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ type CreateCRDError struct {
// an individual controller
type ByPodStatus struct {
// a unique identifier for the pod that wrote the status
ID string `json:"id,omitempty"`
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
Errors []*CreateCRDError `json:"errors,omitempty"`
ID string `json:"id,omitempty"`
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
Errors []CreateCRDError `json:"errors,omitempty"`
}

// ConstraintTemplateStatus defines the observed state of ConstraintTemplate
type ConstraintTemplateStatus struct {
Created bool `json:"created,omitempty"`
ByPod []*ByPodStatus `json:"byPod,omitempty"`
Created bool `json:"created,omitempty"`
ByPod []ByPodStatus `json:"byPod,omitempty"`
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file
}
Expand Down
18 changes: 4 additions & 14 deletions constraint/pkg/core/templates/zz_generated.deepcopy.go

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

0 comments on commit 804ff2e

Please sign in to comment.