Skip to content

Commit

Permalink
add kubectl license
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg committed Mar 8, 2024
1 parent 09cd707 commit 85edd13
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions go-license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,26 @@ header: |
// See the License for the specific language governing permissions and
// limitations under the License.
custom-headers:
- name: kubectl
header: |
// Copyright The Cryostat Authors.
// Copyright 2016 The Kubernetes 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.
paths:
- internal/test/scorecard/common_utils.go

exclude:
names:
- '.*generated.*'
2 changes: 2 additions & 0 deletions internal/test/scorecard/common_utils.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright The Cryostat Authors.
// Copyright 2016 The Kubernetes Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -417,6 +418,7 @@ func updateAndWaitTillCryostatAvailable(cr *operatorv1beta1.Cryostat, resources
}
}

// Derived from kubectl: https://github.com/kubernetes/kubectl/blob/24d21a0/pkg/polymorphichelpers/rollout_status.go#L75-L91
// Check for deployment condition
if deploy.Generation <= deploy.Status.ObservedGeneration {
for _, condition := range deploy.Status.Conditions {
Expand Down

0 comments on commit 85edd13

Please sign in to comment.