Skip to content

Commit

Permalink
updated to latest kubefox with release changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xadhatter committed Jan 24, 2024
1 parent 4e560a0 commit 80bc991
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion efs/hello-world/hack/environments/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: prod
spec:
releasePolicy:
versionRequired: true
type: Stable
data:
vars:
subPath: prod
Expand Down
2 changes: 1 addition & 1 deletion efs/hello-world/hack/environments/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: qa
spec:
releasePolicy:
versionRequired: false
type: Testing
data:
vars:
who: World
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ require (
github.com/go-git/go-billy/v5 v5.5.0
github.com/go-git/go-git/v5 v5.11.0
github.com/go-logr/logr v1.4.1
github.com/google/uuid v1.5.0
github.com/moby/patternmatcher v0.6.0
github.com/spf13/cobra v1.8.0
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.18.2
github.com/xigxog/kubefox v0.4.0-alpha.0.20240122171618-f572b27afaea
github.com/xigxog/kubefox v0.4.0-alpha.0.20240124182404-4c4bc88a5b9f
gopkg.in/yaml.v2 v2.4.0
k8s.io/api v0.29.1
k8s.io/apimachinery v0.29.1
Expand Down Expand Up @@ -53,6 +52,7 @@ require (
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/uuid v1.5.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/imdario/mergo v0.3.16 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM=
github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw=
github.com/xigxog/kubefox v0.4.0-alpha.0.20240122171618-f572b27afaea h1:+ZvwUaXzjAIKISp5zCkvMjy1MJZ0atCFFVDQaehDlu8=
github.com/xigxog/kubefox v0.4.0-alpha.0.20240122171618-f572b27afaea/go.mod h1:yAM9kmrDh2o+ynzpKsLavRwYrS36L5MYBmUxXjYrjIw=
github.com/xigxog/kubefox v0.4.0-alpha.0.20240124182404-4c4bc88a5b9f h1:V5SPccuSGVuj6bEsrAKowRZoH/qhtD0K5+9Vh681kF8=
github.com/xigxog/kubefox v0.4.0-alpha.0.20240124182404-4c4bc88a5b9f/go.mod h1:yAM9kmrDh2o+ynzpKsLavRwYrS36L5MYBmUxXjYrjIw=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
Expand Down
2 changes: 0 additions & 2 deletions internal/repo/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"strconv"
"time"

"github.com/google/uuid"
"github.com/xigxog/fox/internal/log"
"github.com/xigxog/fox/internal/utils"
"github.com/xigxog/kubefox/api"
Expand Down Expand Up @@ -71,7 +70,6 @@ func (r *repo) Release(appDepId string) *v1alpha1.VirtualEnvironment {
if ve.Spec.Release == nil {
ve.Spec.Release = &v1alpha1.Release{}
}
ve.Spec.Release.Id = uuid.NewString()

if ve.Spec.Release.Apps == nil {
ve.Spec.Release.Apps = map[string]v1alpha1.ReleaseApp{}
Expand Down

0 comments on commit 80bc991

Please sign in to comment.