Skip to content

Commit 9a2660f

Browse files
authored
Merge pull request crossplane#6296 from jbw976/xpkg-default
Update default registry to xpkg.crossplane.io
2 parents 5b00c33 + ff8fec2 commit 9a2660f

File tree

26 files changed

+80
-54
lines changed

26 files changed

+80
-54
lines changed

.github/workflows/promote.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ env:
2626
# a step 'if env.AWS_USR' != ""', so we copy these to succinctly test whether
2727
# credentials have been provided before trying to run steps that need them.
2828
DOCKER_USR: ${{ secrets.DOCKER_USR }}
29+
GHCR_USR: ${{ github.actor }}
2930
AWS_USR: ${{ secrets.AWS_USR }}
3031
UPBOUND_MARKETPLACE_PUSH_ROBOT_USR: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR }}
3132

@@ -52,6 +53,15 @@ jobs:
5253
--secret DOCKER_PASSWORD=${{ secrets.DOCKER_PSW }} \
5354
+ci-promote-image --CHANNEL=${{ inputs.channel }} --CROSSPLANE_VERSION=${{ inputs.version }} --CROSSPLANE_REPO=docker.io/crossplane/crossplane
5455
56+
- name: Promote Image to ghcr.io/crossplane/crossplane:${{ inputs.channel }}
57+
if: env.GHCR_USR != ''
58+
run: |
59+
earthly --strict \
60+
--push \
61+
--secret DOCKER_USER=${{ github.actor }} \
62+
--secret DOCKER_PASSWORD=${{ secrets.GITHUB_TOKEN }} \
63+
+ci-promote-image --CHANNEL=${{ inputs.channel }} --CROSSPLANE_VERSION=${{ inputs.version }} --CROSSPLANE_REPO=ghcr.io/crossplane/crossplane
64+
5565
- name: Promote Image to xpkg.upbound.io/crossplane/crossplane:${{ inputs.channel }}
5666
if: env.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR != ''
5767
run: |

Earthfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ ci-version:
372372
ci-artifacts:
373373
BUILD +multiplatform-build \
374374
--CROSSPLANE_REPO=index.docker.io/crossplane/crossplane \
375+
--CROSSPLANE_REPO=ghcr.io/crossplane/crossplane \
375376
--CROSSPLANE_REPO=xpkg.upbound.io/crossplane/crossplane
376377

377378
# ci-codeql-setup sets up CodeQL for the ci-codeql target.

cluster/charts/crossplane/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ and their default values.
8080
| `function.packages` | A list of Function packages to install | `[]` |
8181
| `hostNetwork` | Enable `hostNetwork` for the Crossplane deployment. Caution: enabling `hostNetwork` grants the Crossplane Pod access to the host network namespace. Consider setting `dnsPolicy` to `ClusterFirstWithHostNet`. | `false` |
8282
| `image.pullPolicy` | The image pull policy used for Crossplane and RBAC Manager pods. | `"IfNotPresent"` |
83-
| `image.repository` | Repository for the Crossplane pod image. | `"xpkg.upbound.io/crossplane/crossplane"` |
83+
| `image.repository` | Repository for the Crossplane pod image. | `"xpkg.crossplane.io/crossplane/crossplane"` |
8484
| `image.tag` | The Crossplane image tag. Defaults to the value of `appVersion` in `Chart.yaml`. | `""` |
8585
| `imagePullSecrets` | The imagePullSecret names to add to the Crossplane ServiceAccount. | `[]` |
8686
| `leaderElection` | Enable [leader election](https://docs.crossplane.io/latest/concepts/pods/#leader-election) for the Crossplane pod. | `true` |
@@ -164,7 +164,7 @@ replicas: 1
164164
deploymentStrategy: RollingUpdate
165165

166166
image:
167-
repository: xpkg.upbound.io/crossplane/crossplane
167+
repository: xpkg.crossplane.io/crossplane/crossplane
168168
tag: alpha
169169
pullPolicy: Always
170170
```

cluster/charts/crossplane/README.md.gotmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ replicas: 1
9393
deploymentStrategy: RollingUpdate
9494

9595
image:
96-
repository: xpkg.upbound.io/crossplane/crossplane
96+
repository: xpkg.crossplane.io/crossplane/crossplane
9797
tag: alpha
9898
pullPolicy: Always
9999
```

cluster/charts/crossplane/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ deploymentStrategy: RollingUpdate
1212

1313
image:
1414
# -- Repository for the Crossplane pod image.
15-
repository: xpkg.upbound.io/crossplane/crossplane
15+
repository: xpkg.crossplane.io/crossplane/crossplane
1616
# -- The Crossplane image tag. Defaults to the value of `appVersion` in `Chart.yaml`.
1717
tag: ""
1818
# -- The image pull policy used for Crossplane and RBAC Manager pods.

cmd/crank/beta/convert/deploymentruntime/converter_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func TestNewDeploymentTemplateFromControllerConfig(t *testing.T) {
3939
user := int64(33)
4040
saName := "sa-name"
4141
className := "className"
42-
image := "xpkg.upbound.io/crossplane/crossplane:latest"
42+
image := "xpkg.crossplane.io/crossplane/crossplane:latest"
4343
timeNow := metav1.NewTime(time.Now())
4444

4545
type args struct {
@@ -311,7 +311,7 @@ func TestControllerConfigToRuntimeDeploymentConfig(t *testing.T) {
311311
}
312312

313313
func TestNewContainerFromControllerConfig(t *testing.T) {
314-
image := "xpkg.upbound.io/crossplane/crossplane:latest"
314+
image := "xpkg.crossplane.io/crossplane/crossplane:latest"
315315
priv := false
316316
pullAlways := corev1.PullAlways
317317

cmd/crank/beta/validate/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Examples:
6868
crossplane beta validate extensions.yaml resources.yaml
6969
7070
# Validate all resources in the resources.yaml file against the extensions in the extensions.yaml file using a specific Crossplane image version
71-
crossplane beta validate extensions.yaml resources.yaml --crossplane-image=xpkg.upbound.io/crossplane/crossplane:v1.16.0
71+
crossplane beta validate extensions.yaml resources.yaml --crossplane-image=xpkg.crossplane.io/crossplane/crossplane:v1.20.0
7272
7373
# Validate all resources in the resourceDir folder against the extensions in the extensionsDir folder and skip
7474
# success logs

internal/xpkg/name.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const (
6161

6262
// DefaultRegistry is the registry name that will be used when no registry
6363
// is provided.
64-
DefaultRegistry string = "xpkg.upbound.io"
64+
DefaultRegistry string = "xpkg.crossplane.io"
6565
)
6666

6767
const (

internal/xpkg/upbound/credhelper/credhelper_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import (
3535
var _ credentials.Helper = &Helper{}
3636

3737
func TestGet(t *testing.T) {
38-
testServer := "xpkg.upbound.io"
38+
testServer := "xpkg.crossplane.io"
3939
testProfile := "test"
4040
testSecret := "supersecretvalue"
4141
errBoom := errors.New("boom")

test/e2e/manifests/pkg/configuration/dependency/configuration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ kind: Configuration
77
metadata:
88
name: depends-on-provider-nop
99
spec:
10-
package: crossplane/e2e-depends-on-provider-nop:v0.3.0
10+
package: crossplane/e2e-depends-on-provider-nop:v0.3.1

0 commit comments

Comments
 (0)