Skip to content

Commit dc11a19

Browse files
authored
Merge pull request #14 from IBM/anncy
Code improvements for internal pipeline
2 parents 3ae9f5a + 617044d commit dc11a19

36 files changed

+161
-68
lines changed

.gosec.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

.nancy-ignore

Whitespace-only changes.

api/v1alpha1/common.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
// Package v1alpha1 ...
12
package v1alpha1
23

4+
// DriverPhase ...
35
type DriverPhase string
46

57
const (
6-
DriverPhaseNone DriverPhase = ""
8+
// DriverPhaseNone ...
9+
DriverPhaseNone DriverPhase = ""
10+
// DriverPhaseCreating ...
711
DriverPhaseCreating DriverPhase = "Creating"
8-
DriverPhaseRunning DriverPhase = "Running"
9-
DriverPhaseFailed DriverPhase = "Failed"
12+
// DriverPhaseRunning ...
13+
DriverPhaseRunning DriverPhase = "Running"
14+
// DriverPhaseFailed ...
15+
DriverPhaseFailed DriverPhase = "Failed"
1016
)

api/v1alpha1/ibmobjectcsi_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
// Package v1alpha1 ...
1718
package v1alpha1
1819

1920
import (
@@ -118,6 +119,7 @@ type IBMObjectCSIList struct {
118119
Items []IBMObjectCSI `json:"items"`
119120
}
120121

122+
// CSISidecar ...
121123
type CSISidecar struct {
122124
// The name of the csi sidecar image
123125
Name string `json:"name"`

api/v1alpha1/recoverstalevolume_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
// Package v1alpha1 ...
1718
package v1alpha1
1819

1920
import (
@@ -24,12 +25,12 @@ import (
2425
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
2526

2627
// RecoverStaleVolumeSpec defines the desired state of RecoverStaleVolume
27-
2828
type RecoverStaleVolumeSpec struct {
2929
NoOfLogLines int64 `json:"noOfLogLines,omitempty"`
3030
Deployment []DeploymentData `json:"deploymentData,omitempty"`
3131
}
3232

33+
// DeploymentData ...
3334
type DeploymentData struct {
3435
DeploymentName string `json:"deploymentName,omitempty"`
3536
DeploymentNamespace string `json:"deploymentNamespace,omitempty"`

controllers/fake/client_create/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
// Package fake ...
1718
package fake
1819

1920
import (

controllers/fake/client_delete/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
// Package fake ...
1718
package fake
1819

1920
import (

controllers/fake/client_get/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
// Package fake ...
1718
package fake
1819

1920
import (

controllers/fake/client_get/csidriver/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
// Package fake ...
1718
package fake
1819

1920
import (

controllers/fake/client_get/deployment/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
// Package fake ...
1718
package fake
1819

1920
import (

0 commit comments

Comments
 (0)