Skip to content

Commit

Permalink
Merge pull request #649 from BlakeHolifield/mbop-update
Browse files Browse the repository at this point in the history
Update mbop image tag
  • Loading branch information
psav authored Jul 4, 2022
2 parents daa10d8 + 2ae298a commit 8bedc68
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 1 addition & 3 deletions controllers/cloud.redhat.com/pod_mutator.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ import (
"sigs.k8s.io/controller-runtime/pkg/webhook/admission"
)

var IMAGE_MUTATE_CADDY_SIDECAR = "quay.io/cloudservices/crc-caddy-plugin:d3d0597"

type mutantPod struct {
Client client.Client
Recorder record.EventRecorder
Expand Down Expand Up @@ -52,7 +50,7 @@ func (p *mutantPod) Handle(ctx context.Context, req admission.Request) admission
return admission.Errored(http.StatusBadRequest, fmt.Errorf("pod does not specify authsidecar config"))
}

image := IMAGE_MUTATE_CADDY_SIDECAR
image := utils.IMAGE_MUTATE_CADDY_SIDECAR

if clowderconfig.LoadedConfig.Images.Caddy != "" {
image = clowderconfig.LoadedConfig.Images.Caddy
Expand Down
2 changes: 1 addition & 1 deletion controllers/cloud.redhat.com/providers/deployment/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func initDeployment(app *crd.ClowdApp, env *crd.ClowdEnvironment, d *apps.Deploy
pod := deployment.PodSpec
if env.Spec.Providers.Web.Mode == "local" && (deployment.WebServices.Public.Enabled || bool(deployment.Web)) {
annotations := map[string]string{
"clowder/authsidecar-image": "a76bb81",
"clowder/authsidecar-image": utils.IMAGE_MUTATE_CADDY_SIDECAR,
"clowder/authsidecar-enabled": "true",
"clowder/authsidecar-port": strconv.Itoa(int(env.Spec.Providers.Web.Port)),
"clowder/authsidecar-config": fmt.Sprintf("caddy-config-%s-%s", app.Name, deployment.Name),
Expand Down
4 changes: 2 additions & 2 deletions controllers/cloud.redhat.com/providers/web/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
)

var KEYCLOAK_VERSION = "15.0.2"
var IMAGE_WEB_MBOP = "quay.io/cloudservices/mbop:dd6c49a"
var IMAGE_WEB_MBOP = "quay.io/cloudservices/mbop:0d3f99f"
var IMAGE_WEB_MOCKTITLEMENTS = "quay.io/cloudservices/mocktitlements:130433d"

func makeService(cache *rc.ObjectCache, deployment *crd.Deployment, app *crd.ClowdApp, env *crd.ClowdEnvironment) error {
Expand Down Expand Up @@ -463,7 +463,7 @@ func makeMocktitlements(o obj.ClowdObject, objMap providers.ObjectMap, usePVC bo
dd.Spec.Template.ObjectMeta.Labels = labels

annotations := map[string]string{
"clowder/authsidecar-image": "a76bb81",
"clowder/authsidecar-image": utils.IMAGE_MUTATE_CADDY_SIDECAR,
"clowder/authsidecar-enabled": "true",
"clowder/authsidecar-port": "8090",
"clowder/authsidecar-config": "caddy-config-mocktitlements",
Expand Down
2 changes: 2 additions & 0 deletions controllers/cloud.redhat.com/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
)

var IMAGE_MUTATE_CADDY_SIDECAR = "quay.io/cloudservices/crc-caddy-plugin:3ba6be7"

const rCharSet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
const lCharSet = "abcdefghijklmnopqrstuvwxyz0123456789"

Expand Down

0 comments on commit 8bedc68

Please sign in to comment.