Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Add comments to packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Manno committed Dec 10, 2020
1 parent 06e9a4c commit 19bc6c4
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cmd/argtoenv.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package cmd provides viper/cobra for shared command line flags
package cmd

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package config provides the common configuration of the Quarks operators
package config

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/crd/crd.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package crd handles the creation and updating of our CRDs in the cluster
package crd

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/credsgen/generator.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package credsgen is an interface for generating different kinds of credentials
package credsgen

const (
Expand Down
1 change: 1 addition & 0 deletions pkg/kubeconfig/getter.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package kubeconfig gets a valid kube config
package kubeconfig

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/logger/logger.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package logger creates a logger for operators
package logger

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/meltdown/meltdown.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package meltdown is used by reconcilers to delay reconciling if too many updates happen to a resource
package meltdown

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/monitorednamespace/predicate.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package monitorednamespace returns a predicate to filter for resources with the right monitored label, it enables one operator to act on multiple, labeled namespace
package monitorednamespace

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/names/names.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package names has helpers for naming resources and generating strings
package names

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/pod/util.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package pod has helpers to deal with the Pod struct
package pod

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/pointers/pointers.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package pointers has helpers to return pointers for basic types
package pointers

// Int returns a pointer to the int value provided
Expand Down
1 change: 1 addition & 0 deletions pkg/ratelimiter/slow.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package ratelimiter provides custom controller-runtime ratelimiters
package ratelimiter

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/skip/skip.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package skip helps with skiping reconciles for stale resources
package skip

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/util/util.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package util has helpers for dealing with maps and integers
package util

// UnionMaps creates a new map with all values contained in the maps passed to this function
Expand Down
1 change: 1 addition & 0 deletions pkg/versionedsecretstore/versioned_secret.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package versionedsecretstore impements versioned secrets, by appending a version suffix to their name
package versionedsecretstore

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/webhook/webhook.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package webhook contains shared infrastructure for setting up webhook configs and certificates
package webhook

import (
Expand Down
1 change: 1 addition & 0 deletions testing/command_helper.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package testing provides helpers for tests, like wrappers for kubectl and helm
package testing

import (
Expand Down
1 change: 1 addition & 0 deletions testing/e2ehelper/e2e_helper.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package e2ehelper has common functionality for the end-to-end test suites
package e2ehelper

import (
Expand Down
1 change: 1 addition & 0 deletions testing/integration/environment.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package environment adds everything around mgr.Start() to run a local operator for the integration test suites
package environment

import (
Expand Down
1 change: 1 addition & 0 deletions testing/machine/machine.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package machine builds k8s resources for use in integration tests
package machine

import (
Expand Down
1 change: 1 addition & 0 deletions testing/testhelper/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package testhelper has common helpers for tests
package testhelper

import (
Expand Down

0 comments on commit 19bc6c4

Please sign in to comment.