Skip to content

Commit

Permalink
package clean up && docker cacheing work
Browse files Browse the repository at this point in the history
  • Loading branch information
pthomison committed Mar 24, 2024
1 parent fdf4e26 commit cb1ff8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
push: true
tags: ${{ env.IMAGE_REF }}
cache-from: type=registry,ref=${{ env.IMAGE_REF }}-buildcache
cache-from: type=registry,ref=${{ env.IMAGE_REF }}-buildcache,mode=max,image-manifest=true,oci-mediatypes=true
cache-to: type=registry,ref=${{ env.IMAGE_REF }}-buildcache,mode=max,image-manifest=true,oci-mediatypes=true

- name: Task Test
Expand Down
5 changes: 2 additions & 3 deletions cmd/k3auto.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"

ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
ctrlclient "sigs.k8s.io/controller-runtime/pkg/client"

"sigs.k8s.io/controller-runtime/pkg/log/zap"
Expand Down Expand Up @@ -170,7 +169,7 @@ func k3AutoRun(cmd *cobra.Command, args []string) {

logrus.Info("Deploying: ", objType)

err = k8sC.Create(ctx, obj.(client.Object))
err = k8sC.Create(ctx, obj.(ctrlclient.Object))
checkError(err)
}
}
Expand All @@ -197,7 +196,7 @@ func k3AutoRun(cmd *cobra.Command, args []string) {

logrus.Info("Deploying: ", objType)

err = k8sC.Create(ctx, obj.(client.Object))
err = k8sC.Create(ctx, obj.(ctrlclient.Object))
checkError(err)
}
}
Expand Down

0 comments on commit cb1ff8c

Please sign in to comment.