Skip to content

Commit b6b3d25

Browse files
b4nstsudermanjr
andauthored
fix: add inline struct tag (#401)
* fix: add inline struct tag * fmt --------- Co-authored-by: Andy Suderman <[email protected]>
1 parent a4641ab commit b6b3d25

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Diff for: pkg/apis/rbacmanager/v1beta1/rbacdefinition_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
// Subject is an expansion on the rbacv1.Subject to allow definition of ImagePullSecrets for a Service Account
2525
type Subject struct {
26-
rbacv1.Subject
26+
rbacv1.Subject `json:",inline"`
2727
ImagePullSecrets []string `json:"imagePullSecrets"`
2828
AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"`
2929
}

Diff for: pkg/apis/rbacmanager/v1beta1/zz_generated.deepcopy.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pkg/reconciler/reconciler.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ type Reconciler struct {
4040
var mux = sync.Mutex{}
4141

4242
// ReconcileNamespaceChange reconciles relevant portions of RBAC Definitions
43-
// after changes to namespaces within the cluster
43+
//
44+
// after changes to namespaces within the cluster
4445
func (r *Reconciler) ReconcileNamespaceChange(rbacDef *rbacmanagerv1beta1.RBACDefinition, namespace *v1.Namespace) error {
4546
mux.Lock()
4647
defer mux.Unlock()
@@ -117,7 +118,8 @@ func (r *Reconciler) ReconcileOwners(ownerRefs []metav1.OwnerReference, kind str
117118
}
118119

119120
// Reconcile creates, updates, or deletes Kubernetes resources to match
120-
// the desired state defined in an RBAC Definition
121+
//
122+
// the desired state defined in an RBAC Definition
121123
func (r *Reconciler) Reconcile(rbacDef *rbacmanagerv1beta1.RBACDefinition) error {
122124
mux.Lock()
123125
defer mux.Unlock()

0 commit comments

Comments
 (0)