Skip to content

Commit 23943db

Browse files
committed
Updates by the codespell with local pre-commit config
Signed-off-by: Vara Bonthu <[email protected]>
1 parent 6913807 commit 23943db

File tree

14 files changed

+16
-16
lines changed

14 files changed

+16
-16
lines changed

api/v1alpha1/localbuild_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const (
2020
)
2121

2222
// ArgoPackageConfigSpec Allows for configuration of the ArgoCD Installation.
23-
// If no fields are specified then the binary embedded resources will be used to intall ArgoCD.
23+
// If no fields are specified then the binary embedded resources will be used to install ArgoCD.
2424
type ArgoPackageConfigSpec struct {
2525
// Enabled controls whether to install ArgoCD.
2626
Enabled bool `json:"enabled,omitempty"`

examples/basic/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The [package1 directory](./package1) is an example of a custom package that you
1010
This configuration instructs idpbuilder to:
1111

1212
1. Create a Gitea repository.
13-
2. Sync the contents of the [manifests](./package1/manifests) directory to the repostiory.
13+
2. Sync the contents of the [manifests](./package1/manifests) directory to the repository.
1414
3. Replace the `spec.Source(s).repoURL` field with the Gitea repository URL.
1515

1616
### Remote manifests

examples/ref-implementation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ You can click on the ArgoCD Application name to see more details.
117117

118118
In this example, we will deploy a simple Apache Spark job through Argo Workflows.
119119

120-
Click on the `Create...` button on the left, then select the `Basic Argo Workflow witha Spark Job` template.
120+
Click on the `Create...` button on the left, then select the `Basic Argo Workflow with a Spark Job` template.
121121

122122
![img.png](images/backstage-templates-spark.png)
123123

examples/terraform-integrations/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ idpbuilder create \
1313

1414
As you see above, this add-on to `idpbuilder` has a dependency to the [reference implementation](../ref-implementation/). This command primarily does the following:
1515

16-
1. Installs `fluxcd` source respository controller as an `argo` application.
16+
1. Installs `fluxcd` source repository controller as an `argo` application.
1717
2. Installs `tofu-controller` for managing the lifecycle of terraform deployments from your Kubernetes cluster for operations such as create, delete and update.
1818
3. Finally, this stack add-on goes together with the work done under [backstage-terraform-integrations](https://github.com/cnoe-io/backstage-terraform-integrations/). Once the add-on is enabled, the user will need to follow the setup discussed in the [backstage-terraform-integrations](https://github.com/cnoe-io/backstage-terraform-integrations/) repo for the remainder of the configuration, and terraform integrations should work.

pkg/cmd/create/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func getPackageCustomFile(input string) (v1alpha1.PackageCustomization, error) {
160160
// the format should be `<package-name>:<path-to-file>`
161161
s := strings.Split(input, ":")
162162
if len(s) != 2 {
163-
return v1alpha1.PackageCustomization{}, fmt.Errorf("ensure %s is formated as <package-name>:<path-to-file>", input)
163+
return v1alpha1.PackageCustomization{}, fmt.Errorf("ensure %s is formatted as <package-name>:<path-to-file>", input)
164164
}
165165

166166
paths, err := helpers.GetAbsFilePaths([]string{s[1]}, false)

pkg/cmd/helpers/validation.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ func ValidateKubernetesYamlFile(absPath string) error {
2424
for i := range n {
2525
obj := n[i]
2626
if obj.IsNilOrEmpty() {
27-
return fmt.Errorf("given file %s contains an invalid kubenretes manifest", absPath)
27+
return fmt.Errorf("given file %s contains an invalid kubernetes manifest", absPath)
2828
}
2929
if obj.GetKind() == "" || obj.GetApiVersion() == "" {
30-
return fmt.Errorf("given file %s contains an invalid kubenretes manifest", absPath)
30+
return fmt.Errorf("given file %s contains an invalid kubernetes manifest", absPath)
3131
}
3232
}
3333

pkg/controllers/custompackage/test/resources/customPackages/testDir/app2/two/busybox.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: busybox
55
namespace: argocd
66
labels:
7-
abc: ded
7+
abc: dead
88
notused: remove-me
99
spec:
1010
containers:

pkg/controllers/localbuild/argo_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func TestGetRawInstallResources(t *testing.T) {
3030
resourcePrefix := "# UCP ARGO INSTALL RESOURCES\n"
3131
checkPrefix := resources[1][0:len(resourcePrefix)]
3232
if resourcePrefix != string(checkPrefix) {
33-
t.Fatalf("GetRawInstallResources() exptected 1 resource with prefix %q, got %q", resourcePrefix, checkPrefix)
33+
t.Fatalf("GetRawInstallResources() expected 1 resource with prefix %q, got %q", resourcePrefix, checkPrefix)
3434
}
3535
}
3636

pkg/controllers/resources/idpbuilder.cnoe.io_localbuilds.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ spec:
4242
argoPackageConfigs:
4343
description: |-
4444
ArgoPackageConfigSpec Allows for configuration of the ArgoCD Installation.
45-
If no fields are specified then the binary embedded resources will be used to intall ArgoCD.
45+
If no fields are specified then the binary embedded resources will be used to install ArgoCD.
4646
properties:
4747
enabled:
4848
description: Enabled controls whether to install ArgoCD.

pkg/k8s/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func EnsureObject(ctx context.Context, kubeClient client.Client, obj client.Obje
3737
return err
3838
}
3939

40-
// hacky way to restore the GVK for the object after create corrupts it. didnt dig. not sure why?
40+
// hacky way to restore the GVK for the object after create corrupts it. didn't dig. not sure why?
4141
obj.GetObjectKind().SetGroupVersionKind(curObj.GroupVersionKind())
4242
return nil
4343
}

0 commit comments

Comments
 (0)