Skip to content

Commit

Permalink
Merge pull request #216 from flux-framework/fix-controller-gen
Browse files Browse the repository at this point in the history
update controller gen
  • Loading branch information
vsoch authored Feb 22, 2024
2 parents a684fd3 + c9b690d commit 97b1244
Show file tree
Hide file tree
Showing 11 changed files with 721 additions and 530 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ^1.18.1
go-version: ^1.20
- name: GHCR Login
if: (github.event_name != 'pull_request')
uses: docker/login-action@v2
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ^1.18.1
go-version: ^1.20
- name: GHCR Login
if: (github.event_name != 'pull_request')
uses: docker/login-action@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ^1.18.1
go-version: ^1.20
- name: GHCR Login
if: (github.event_name != 'pull_request')
uses: docker/login-action@v2
Expand Down Expand Up @@ -44,4 +44,4 @@ jobs:
PKG_RESPONSE=$(helm package ./chart)
echo "$PKG_RESPONSE"
CHART_TAR_GZ=$(basename "$PKG_RESPONSE")
helm push "$CHART_TAR_GZ" oci://ghcr.io/flux-framework/flux-operator-helm
helm push "$CHART_TAR_GZ" oci://ghcr.io/flux-framework/flux-operator-helm
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
echo "tag=${{ inputs.release_tag }}" >> ${GITHUB_ENV}
- uses: actions/setup-go@v3
with:
go-version: ^1.18.1
go-version: ^1.20
- name: GHCR Login
uses: docker/login-action@v2
with:
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ^1.18.1
go-version: ^1.20
- name: Set tag
run: |
echo "Tag for release is ${{ inputs.release_tag }}"
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ^1.18.1
go-version: ^1.20
- name: Set tag
run: |
echo "Tag for release is ${{ inputs.release_tag }}"
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ SWAGGER_API_JSON ?= ./api/${API_VERSION}/swagger.json

## Tool Versions
KUSTOMIZE_VERSION ?= v3.8.7
CONTROLLER_TOOLS_VERSION ?= v0.9.0
CONTROLLER_TOOLS_VERSION ?= v0.14.0

KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
.PHONY: kustomize
Expand Down
1 change: 0 additions & 1 deletion api/v1alpha2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

305 changes: 178 additions & 127 deletions chart/templates/minicluster-crd.yaml

Large diffs are not rendered by default.

308 changes: 178 additions & 130 deletions config/crd/bases/flux-framework.org_miniclusters.yaml

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: manager-role
rules:
- apiGroups:
Expand Down
309 changes: 178 additions & 131 deletions examples/dist/flux-operator-arm.yaml

Large diffs are not rendered by default.

309 changes: 178 additions & 131 deletions examples/dist/flux-operator.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/flux/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func getRequiredRanks(cluster *api.MiniCluster) string {
if cluster.Spec.MaxSize == cluster.Spec.Size {
return requiredRanks
}

// This is the quorum - the nodes required to be online - so we can start
// This can be less than the MaxSize
return fmt.Sprintf("%d", cluster.Spec.Size)
Expand Down

0 comments on commit 97b1244

Please sign in to comment.