Skip to content

Commit f32826e

Browse files
authored
Merge pull request #28 from posit-dev/fix-ci-unit-tests
fix(ci): add Keycloak CRDs and fix flightdeck workflow
2 parents 2339b67 + f6163ff commit f32826e

File tree

206 files changed

+7824
-34
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+7824
-34
lines changed

.github/workflows/flightdeck.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,12 @@ jobs:
136136
username: ${{ github.actor }}
137137
password: ${{ secrets.GITHUB_TOKEN }}
138138

139+
- name: Push to GHCR (main branch)
140+
if: github.ref == 'refs/heads/main'
141+
run: docker push "${{ env.GHCR_REGISTRY }}/flightdeck:${{ steps.metadata.outputs.version }}"
142+
139143
- name: Push to GHCR (for PRs - adhoc testing)
140144
if: github.event_name == 'pull_request'
141-
working-directory: flightdeck/
142145
run: |
143146
ADHOC_TAG="${{ steps.adhoc-tag.outputs.tag }}"
144147
docker tag "${{ env.GHCR_REGISTRY }}/flightdeck:${{ steps.metadata.outputs.version }}" "${{ env.GHCR_REGISTRY }}/flightdeck:${ADHOC_TAG}"

api/core/v1beta1/connect_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"context"
1010
"fmt"
1111

12-
"github.com/rstudio/goex/ptr"
1312
"github.com/posit-dev/team-operator/api/product"
13+
"github.com/rstudio/goex/ptr"
1414
corev1 "k8s.io/api/core/v1"
1515
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1616
v1 "sigs.k8s.io/secrets-store-csi-driver/apis/v1"

api/core/v1beta1/keycloak.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"strings"
66

7-
"github.com/rstudio/goex/ptr"
87
"github.com/posit-dev/team-operator/api/product"
8+
"github.com/rstudio/goex/ptr"
99
appsv1 "k8s.io/api/apps/v1"
1010
corev1 "k8s.io/api/core/v1"
1111
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

api/core/v1beta1/packagemanager_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ package v1beta1
88
import (
99
"fmt"
1010

11-
"github.com/rstudio/goex/ptr"
1211
"github.com/posit-dev/team-operator/api/product"
12+
"github.com/rstudio/goex/ptr"
1313
v1 "k8s.io/api/core/v1"
1414
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1515
)

api/core/v1beta1/workbench_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111

1212
"github.com/go-logr/logr"
1313
"github.com/pkg/errors"
14-
"github.com/rstudio/goex/ptr"
1514
"github.com/posit-dev/team-operator/api/product"
15+
"github.com/rstudio/goex/ptr"
1616
corev1 "k8s.io/api/core/v1"
1717
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1818
)

api/core/v1beta1/zz_generated.deepcopy.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/keycloak/v2alpha1/zz_generated.deepcopy.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/localtest/local.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ package localtest
22

33
import (
44
"context"
5-
"fmt"
6-
"os"
75
"path/filepath"
86

97
"github.com/go-logr/logr"
@@ -21,16 +19,10 @@ type LocalTestEnv struct {
2119
}
2220

2321
func (lte *LocalTestEnv) makeEnv() error {
24-
topDir, ok := os.LookupEnv("TOP")
25-
if !ok {
26-
fmt.Printf("TOP environment variable not set, guessing...\n")
27-
topDir = filepath.Join(RootDir, "../")
28-
}
29-
3022
lte.env = &envtest.Environment{
3123
CRDDirectoryPaths: []string{
3224
filepath.Join(RootDir, "config", "crd", "bases"),
33-
filepath.Join(topDir, "keycloak", "kustomization", "crds"),
25+
filepath.Join(RootDir, "hack", "keycloak", "crds"),
3426
filepath.Join(RootDir, "hack", "traefik", "crds"),
3527
},
3628
ErrorIfCRDPathMissing: true,

api/product/zz_generated.deepcopy.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client-go/applyconfiguration/core/v1beta1/apisettingsconfig.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)