Skip to content

Commit

Permalink
add license
Browse files Browse the repository at this point in the history
Signed-off-by: zhzhuang-zju <[email protected]>
  • Loading branch information
zhzhuang-zju committed Jan 19, 2024
1 parent 6ac3601 commit d3980ea
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/detector/detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ func (d *ResourceDetector) HandleClusterPropagationPolicyDeletion(policyName str
errs = append(errs, err)
} else if len(rbs.Items) > 0 {
for index := range rbs.Items {
if err = d.cleanupPolicyRefNamespaceScopeResources("", policyName, &rbs.Items[index]); err != nil{
if err = d.cleanupPolicyRefNamespaceScopeResources("", policyName, &rbs.Items[index]); err != nil {
errs = append(errs, err)
}
}
Expand Down
16 changes: 16 additions & 0 deletions pkg/detector/helper.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
Copyright 2024 The Karmada Authors.
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.
*/

package detector

import policyv1alpha1 "github.com/karmada-io/karmada/pkg/apis/policy/v1alpha1"
Expand Down

0 comments on commit d3980ea

Please sign in to comment.