@@ -22,12 +22,12 @@ import (
22
22
"github.com/coreos/operator-sdk/pkg/util/k8sutil"
23
23
)
24
24
25
- // Get gets the kubernetes object and then unmarshals the retrieved data into the "into" object.
25
+ // Get gets the specified object and unmarshals the retrieved data into the "into" object.
26
26
// "into" is a sdkTypes.Object that must have
27
27
// "Kind" and "APIVersion" specified in its "TypeMeta" field
28
28
// and "Name" and "Namespace" specified in its "ObjectMeta" field.
29
- // Those fields are used to construct the underlying resource client.
30
29
// "opts" configures the Get operation.
30
+ // When passed With WithGetOptions(o), the specified metav1.GetOptions is set.
31
31
func Get (into sdkTypes.Object , opts ... GetOption ) error {
32
32
name , namespace , err := k8sutil .GetNameAndNamespace (into )
33
33
if err != nil {
@@ -55,8 +55,8 @@ func Get(into sdkTypes.Object, opts ...GetOption) error {
55
55
// "namespace" indicates which kubernetes namespace to look for the list of kubernetes objects.
56
56
// "into" is a sdkType.Object that must have
57
57
// "Kind" and "APIVersion" specified in its "TypeMeta" field
58
- // Those are used to construct the underlying resource client.
59
58
// "opts" configures the List operation.
59
+ // When passed With WithListOptions(o), the specified metav1.ListOptions is set.
60
60
func List (namespace string , into sdkTypes.Object , opts ... ListOption ) error {
61
61
gvk := into .GetObjectKind ().GroupVersionKind ()
62
62
apiVersion , kind := gvk .ToAPIVersionAndKind ()
0 commit comments